Description
Description:
We are running self hosted runners of github and somethimes the setup-java actions fails without any clear error or warning. Even when running the scripts in debug mode we are just seeing that the sripts stops with exit code 1 and trying to list the versions. To be able to further investigate it we would need to see on with the actions fails.
Is it a connection timout, rejection, non valid http code returned, ...
2025-04-11T12:05:11.9410487Z Download action repository 'actions/setup-java@v4' (SHA:c5195efecf7bdfc987ee8bae7a71cb8b11521c00)
2025-04-11T12:05:12.6967746Z ##[debug]Download 'https://api.github.com/repos/actions/setup-java/tarball/c5195efecf7bdfc987ee8bae7a71cb8b11521c00' to '/runner/_work/_actions/_temp_585fd9f9-c3c9-4d04-b439-256fd8714e89/3e672265-6749-4484-8cfa-85e3449c9de0.tar.gz'
2025-04-11T12:05:12.7951388Z ##[debug]Unwrap 'actions-setup-java-c5195ef' to '/runner/_work/_actions/actions/setup-java/v4'
2025-04-11T12:05:12.8426656Z ##[debug]Archive '/runner/_work/_actions/_temp_585fd9f9-c3c9-4d04-b439-256fd8714e89/3e672265-6749-4484-8cfa-85e3449c9de0.tar.gz' has been unzipped into '/runner/_work/_actions/actions/setup-java/v4'.
2025-04-11T12:05:12.8571771Z ##[debug]action.yml for action: '/runner/_work/_actions/actions/setup-java/v4/action.yml'.
2025-04-11T12:05:12.9310731Z ##[debug]Set step '__actions_setup-java' display name to: 'Setup Java JDK'
2025-04-11T12:05:12.9313643Z Complete job name: setup-jdk
2025-04-11T12:05:12.9351234Z ##[debug]Collect running processes for tracking orphan processes.
2025-04-11T12:05:12.9469090Z ##[debug]Finishing: Set up job
2025-04-11T12:05:12.9600174Z ##[debug]Evaluating condition for step: 'Set up runner'
2025-04-11T12:05:12.9641019Z ##[debug]Evaluating: always()
2025-04-11T12:05:12.9647599Z ##[debug]Evaluating always:
2025-04-11T12:05:12.9658614Z ##[debug]=> true
2025-04-11T12:05:12.9668059Z ##[debug]Result: true
2025-04-11T12:05:12.9696427Z ##[debug]Starting: Set up runner
2025-04-11T12:05:12.9718096Z A job started hook has been configured by the self-hosted runner administrator
2025-04-11T12:05:12.9861375Z ##[group]Run '/etc/arc/hooks/job-started.sh'
2025-04-11T12:05:12.9874966Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2025-04-11T12:05:12.9876591Z ##[endgroup]
2025-04-11T12:05:12.9967036Z ##[debug]/usr/bin/bash -e /etc/arc/hooks/job-started.sh
2025-04-11T12:05:13.0137453Z �[0;37m2025-04-11 12:05:13.003 DEBUG --- Running ARC Job Started Hooks�[0m
2025-04-11T12:05:13.0139944Z �[0;37m2025-04-11 12:05:13.004 DEBUG --- Running hook: /etc/arc/hooks/job-started.d/update-status�[0m
2025-04-11T12:05:13.0196053Z ##[debug]Finishing: Set up runner
2025-04-11T12:05:13.0219466Z ##[debug]Evaluating condition for step: 'Setup Java JDK'
2025-04-11T12:05:13.0226172Z ##[debug]Evaluating: success()
2025-04-11T12:05:13.0227700Z ##[debug]Evaluating success:
2025-04-11T12:05:13.0237149Z ##[debug]=> true
2025-04-11T12:05:13.0238564Z ##[debug]Result: true
2025-04-11T12:05:13.0240395Z ##[debug]Starting: Setup Java JDK
2025-04-11T12:05:13.0319126Z ##[debug]Register post job cleanup for action: actions/setup-java@v4
2025-04-11T12:05:13.0343190Z ##[debug]Loading inputs
2025-04-11T12:05:13.0386491Z ##[debug]Evaluating: job.status
2025-04-11T12:05:13.0388033Z ##[debug]Evaluating Index:
2025-04-11T12:05:13.0390784Z ##[debug]..Evaluating job:
2025-04-11T12:05:13.0392489Z ##[debug]..=> Object
2025-04-11T12:05:13.0399609Z ##[debug]..Evaluating String:
2025-04-11T12:05:13.0401021Z ##[debug]..=> 'status'
2025-04-11T12:05:13.0406495Z ##[debug]=> 'success'
2025-04-11T12:05:13.0408272Z ##[debug]Result: 'success'
2025-04-11T12:05:13.0417615Z ##[debug]Evaluating: (((github.server_url == 'https://github.com') && github.token) || '')
2025-04-11T12:05:13.0419017Z ##[debug]Evaluating Or:
2025-04-11T12:05:13.0421863Z ##[debug]..Evaluating And:
2025-04-11T12:05:13.0424851Z ##[debug]....Evaluating Equal:
2025-04-11T12:05:13.0426741Z ##[debug]......Evaluating Index:
2025-04-11T12:05:13.0427608Z ##[debug]........Evaluating github:
2025-04-11T12:05:13.0428578Z ##[debug]........=> Object
2025-04-11T12:05:13.0429414Z ##[debug]........Evaluating String:
2025-04-11T12:05:13.0430286Z ##[debug]........=> 'server_url'
2025-04-11T12:05:13.0431798Z ##[debug]......=> 'https://github.com'
2025-04-11T12:05:13.0432720Z ##[debug]......Evaluating String:
2025-04-11T12:05:13.0433581Z ##[debug]......=> 'https://github.com'
2025-04-11T12:05:13.0437961Z ##[debug]....=> true
2025-04-11T12:05:13.0439007Z ##[debug]....Evaluating Index:
2025-04-11T12:05:13.0439852Z ##[debug]......Evaluating github:
2025-04-11T12:05:13.0440732Z ##[debug]......=> Object
2025-04-11T12:05:13.0441634Z ##[debug]......Evaluating String:
2025-04-11T12:05:13.0442471Z ##[debug]......=> 'token'
2025-04-11T12:05:13.0444128Z ##[debug]....=> '***'
2025-04-11T12:05:13.0445093Z ##[debug]..=> '***'
2025-04-11T12:05:13.0446365Z ##[debug]=> '***'
2025-04-11T12:05:13.0452010Z ##[debug]Expanded: ((('https://github.com' == 'https://github.com') && '***') || '')
2025-04-11T12:05:13.0453372Z ##[debug]Result: '***'
2025-04-11T12:05:13.0458572Z ##[debug]Loading env
2025-04-11T12:05:13.0484532Z ##[group]Run actions/setup-java@v4
2025-04-11T12:05:13.0485523Z with:
2025-04-11T12:05:13.0486224Z distribution: adopt
2025-04-11T12:05:13.0486968Z java-version: 21
2025-04-11T12:05:13.0487715Z java-package: jdk
2025-04-11T12:05:13.0488452Z check-latest: false
2025-04-11T12:05:13.0489200Z server-id: github
2025-04-11T12:05:13.0490098Z server-username: GITHUB_ACTOR
2025-04-11T12:05:13.0490937Z server-password: GITHUB_TOKEN
2025-04-11T12:05:13.0491751Z overwrite-settings: true
2025-04-11T12:05:13.0492556Z job-status: success
2025-04-11T12:05:13.0493690Z token: ***
2025-04-11T12:05:13.0494496Z ##[endgroup]
2025-04-11T12:05:13.2930482Z ::group::Installed distributions
2025-04-11T12:05:13.2932273Z ##[group]Installed distributions
2025-04-11T12:05:13.2938363Z Trying to resolve the latest version from remote
2025-04-11T12:05:13.2946614Z ##[debug]Gathering available versions from 'https://api.adoptopenjdk.net/v3/assets/version/%5B1.0,100.0%5D?project=jdk&vendor=adoptopenjdk&heap_size=normal&sort_method=DEFAULT&sort_order=DESC&os=linux&architecture=x64&image_type=jdk&release_type=ga&jvm_impl=hotspot&page_size=20&page=0'
2025-04-11T12:05:15.4642078Z ##[debug]Node Action run completed with exit code 1
Task version:
actions/setup-java@v4 => SHA:c5195efecf7bdfc987ee8bae7a71cb8b11521c00
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Repro steps:
We just have a setup-java action running on a schedule and every x time it just fails
Expected behavior:
An error that can help with investigating the problem.
Actual behavior:
We just see action run completed with exit code 1