Skip to content

Error: Java setup failed due to network issue or timeout: read ECONNRESET #923

@snago

Description

@snago

Description:
Sometimes setup-java fails with Error: Java setup failed due to network issue or timeout: read ECONNRESET
We use distribution: 'corretto' and java-version: '25', but it also happened on earlier Java versions.
The error is rare and seems to vary from day to day, probably ~.1-5%, but for a workflow with 20+ jobs even a 1% error probability means the probability that any of the jobs fail is over 18%.
It would be nice if there was some built-in retries.

Task version:
actions/setup-java@v5
Also happened on actions/setup-java@v4.

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Run setup-java many times (?).

Expected behavior:
No errors.

Actual behavior:
Sometimes fails with ECONNRESET.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions