Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occassional cloudfront captcha when fetching Zulu 8 JDK from macOS-11 #334

Closed
2 of 5 tasks
Kantis opened this issue May 27, 2022 · 16 comments
Closed
2 of 5 tasks

Occassional cloudfront captcha when fetching Zulu 8 JDK from macOS-11 #334

Kantis opened this issue May 27, 2022 · 16 comments
Assignees
Labels
bug Something isn't working

Comments

@Kantis
Copy link

Kantis commented May 27, 2022

Description:
Occassional cloudfront captcha when fetching Zulu 8 JDK from macOS-11 during Trying to resolve the latest version from remote step

Here one out of 4 macos builds got hit with captcha.
And another one..

Task version:
v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Every build in Kotest is having issues with this ATM.

Expected behavior:
Zulu 8 should consistently get setup correctly on macOS

Actual behavior:
Zulu 8 setup sometimes fails builds due to a captcha

@Kantis Kantis added bug Something isn't working needs triage labels May 27, 2022
@mandrachek
Copy link

mandrachek commented May 27, 2022

I'm running into this as well, but adopt jdk 11:

      - uses: actions/setup-java@v3
        with:
          distribution: 'adopt'
          java-version: '11'
          check-latest: true

@utzcoz
Copy link

utzcoz commented May 28, 2022

I'm running into this as well with a large possibility recent days, but Zulu JDK 11.0.14 on GitHub's macOS:

- name: Set up JDK 11
  uses: actions/setup-java@v3
  with:
      distribution: 'zulu'
      java-version: 11.0.14

@albertus82
Copy link

Same here, today is impossible to build anything using Zulu.

@gciatto
Copy link

gciatto commented May 28, 2022

This occasionally happens to me as well, both with adopt-hostspot and adopt-openj9

@gciatto
Copy link

gciatto commented May 28, 2022

I guess a nice workaround would be #333

@albertus82
Copy link

A better solution might be an agreement between the providers of the JDK and GitHub so that the IP addresses of the runners can be whitelisted.

@e-korolevskii
Copy link
Contributor

Hello @Kantis
Thank you for your report!
We will investigate this issue and come back to you with updates as soon as possible!

@ImSejin
Copy link

ImSejin commented May 30, 2022

Similar to me.

Occasionally I encounter the error on macos-latest and jdk 8.0.232.

    strategy:
      fail-fast: true
      max-parallel: 3
      matrix:
        java: [8, 8.0.232, 11, 11.0.4, 17]
        os: [ubuntu-latest, macos-latest, windows-latest]

    runs-on: ${{ matrix.os }}
    
    steps:
    - uses: actions/checkout@v3
    - name: Set up JDK ${{ matrix.java }}
      uses: actions/setup-java@v3
      with:
        java-version: ${{ matrix.java }}
        distribution: "zulu"
        cache: "maven"

@liamsharp
Copy link

liamsharp commented May 30, 2022

Similar issue in #336.

@giltene
Copy link
Contributor

giltene commented May 30, 2022

FYI there was a Cloudfront issue that is now resolved. The Zulu CDN and API paths used by GitHub actions/setup-java are now explicitly whitelisted to prevent captcha introduction.

@dmitry-shibanov
Copy link
Contributor

Thank you for your response and help @giltene!

@Kantis
Copy link
Author

Kantis commented May 31, 2022

@giltene could you please link a source? I'd like to confirm it before closing

@giltene
Copy link
Contributor

giltene commented Jun 1, 2022

@giltene could you please link a source? I'd like to confirm it before closing

@Kantis unfortunately there is no public link for the issue or cloudflare config change involved. I can confirm that an actual change was made to resolve what we believe was the root cause that started this behavior. Should probably keep this open for a couple of days to see if any more problems are reported, then close.

@e-korolevskii
Copy link
Contributor

Hello @Kantis,

Could you please confirm that giltene's solution works for you?

@e-korolevskii
Copy link
Contributor

Hi @Kantis,

Just a gentle ping.

@Kantis
Copy link
Author

Kantis commented Jun 9, 2022

Hi! Sorry for the delay. It seems stable now, so closing this. Thanks for the help!

@Kantis Kantis closed this as completed Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants