Skip to content

action sometimes throws "Could not load manifest for Microsoft Build of OpenJDK" #645

@Bestyan

Description

@Bestyan

Description:
Sometimes the action fails with an error message like this (output from the github workflow):

Run actions/setup-java@v4
  with:
    java-version: 21.0.1
    distribution: microsoft
    java-package: jdk
    check-latest: false
    server-id: github
    server-username: GITHUB_ACTOR
    server-password: GITHUB_TOKEN
    overwrite-settings: true
    job-status: success
  env:
    GH_TOKEN: ***
Installed distributions
  Trying to resolve the latest version from remote
  Error: Could not load manifest for Microsoft Build of OpenJDK

It is only sometimes though, if I wait an hour and try it again, chances are, it's working again.
When I try to download the .tar.gz archive manually during a period where the action is not working, the download link is working fine.

Task version:
v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
I am unable to consistently reproduce this behaviour as it only happens sometimes and I don't know why.
I haven't encountered any problems so far if I manually download the .tar.gz archive and feed that into the setup-java action.

Expected behavior:
Work consistently.

Actual behavior:
Works sometimes, sometimes not for unknown reasons.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions