setup-java: setup_java not finding Java 16 (regression)

Description: In the last hour actions using ‘setup_java’ are failing with:

 'Could not find satisfied version for SemVer '16'. '

Task version: v2 (all that is specified)

Platform:

  • Ubuntu (default GitHub runner)
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Run a ci/cd workflow with the setup_java action ie https://github.com/odpi/egeria/actions/runs/1093904854

Expected behavior: Build to work with java 16 (adopt)

Actual behavior: Run actions/setup-java@v2 2 with: 3 distribution: adopt 4 java-version: 16 5 java-package: jdk 6 architecture: x64 7 check-latest: false 8 server-id: github 9 server-username: GITHUB_ACTOR 10 server-password: GITHUB_TOKEN 11 overwrite-settings: true 12 Trying to resolve the latest version from remote 13 Error: Could not find satisfied version for SemVer ‘16’.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 15
  • Comments: 25 (2 by maintainers)

Most upvoted comments

It’s look like that the backend https://api.adoptopenjdk.net/ has some problems…

same for ubuntu

     - name: Set up JDK
        uses: actions/setup-java@v2.1.0
        with:
          java-version: '15'
          distribution: 'adopt'

Error: Could not find satisfied version for SemVer ‘15’.

Chances are this is because the Java 16 JREs are not going to be released.

Cheers, Martijn

On Thu, 26 Aug 2021 at 11:15, MichaIng @.***> wrote:

I’m still facing this issue on ubuntu-latest with:

  uses: ***@***.***
  with:
    distribution: 'temurin'
    java-version: '16'
    java-package: jre
    check-latest: true

=>

Trying to resolve the latest version from remote Error: Could not find satisfied version for SemVer ‘16’. Available versions: 8.0.302+8

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/actions/setup-java/issues/203#issuecomment-906276144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABME2CZ7LAR7NHGBZVGBITT6YH4TANCNFSM5BOXZR3Q .

Didn’t spot this issue until after it was fixed - we were doing some moves related to AdoptOpenJDK->Temurin but it didn’t seem to cause an outage that I had noticed myself. We’re not expecting any more imminent changes so hopefully this will not recur

it seems it was some temporary issue, everything works again: https://github.com/valfirst/slf4j-test/runs/3231193254?check_suite_focus=true

quick hotfix, you can use Zulu openjdk! For now, we have to wait untill the url is updated to api.adoptium.net!