actions icon indicating copy to clipboard operation
actions copied to clipboard

setup-gradle fails with exit code 1 and no additional information

Open blampe opened this issue 5 months ago • 0 comments

For some reason the setup-gradle action is failing when provisioning gradle, and it doesn't emit any logs to help diagnose the problem. Clearing the GitHub Actions cache doesn't seem to help.

2025-09-15T18:46:36.0021225Z ##[group]Run gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a
2025-09-15T18:46:36.0021752Z with:
2025-09-15T18:46:36.0022060Z   gradle-version: 7.6
2025-09-15T18:46:36.0022388Z   cache-disabled: false
2025-09-15T18:46:36.0022720Z   cache-read-only: true
2025-09-15T18:46:36.0023044Z   cache-write-only: false
2025-09-15T18:46:36.0023395Z   cache-overwrite-existing: false
2025-09-15T18:46:36.0023770Z   cache-cleanup: on-success
2025-09-15T18:46:36.0024370Z   gradle-home-cache-includes: caches
notifications

2025-09-15T18:46:36.0024800Z   add-job-summary: always
2025-09-15T18:46:36.0025164Z   add-job-summary-as-pr-comment: never
2025-09-15T18:46:36.0025765Z   dependency-graph: disabled
2025-09-15T18:46:36.0026187Z   dependency-graph-report-dir: dependency-graph-reports
2025-09-15T18:46:36.0026662Z   dependency-graph-continue-on-failure: true
2025-09-15T18:46:36.0027072Z   build-scan-publish: false
2025-09-15T18:46:36.0027422Z   validate-wrappers: true
2025-09-15T18:46:36.0027776Z   allow-snapshot-wrappers: false
2025-09-15T18:46:36.0028166Z   gradle-home-cache-strict-match: false
2025-09-15T18:46:36.0028595Z   workflow-job-context: {
  "language": "java"
}
2025-09-15T18:46:36.0029102Z   github-token: ***
2025-09-15T18:46:36.0029408Z env:
...
2025-09-15T18:46:36.0054977Z   JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.28-6/x64
2025-09-15T18:46:36.0055572Z   JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.28-6/x64
2025-09-15T18:46:36.0056051Z ##[endgroup]
2025-09-15T18:46:37.4920577Z Merged default JDK locations into /home/runner/.m2/toolchains.xml
2025-09-15T18:46:37.4924945Z ##[group]Restore Gradle state from cache
2025-09-15T18:46:37.7729248Z Gradle User Home cache not found. Will initialize empty.
2025-09-15T18:46:37.7730387Z ##[endgroup]
2025-09-15T18:46:37.8424796Z ##[group]All Gradle Wrapper jars are valid
2025-09-15T18:46:37.8425743Z 
2025-09-15T18:46:37.8426522Z ##[endgroup]
2025-09-15T18:46:37.9091616Z ##[group]Provision Gradle 7.6
2025-09-15T18:46:43.9162355Z ##[endgroup]
2025-09-15T18:46:43.9180641Z ##[error]Error: The process '/usr/bin/gradle' failed with exit code 1
2025-09-15T18:46:43.9260562Z Error: The process '/usr/bin/gradle' failed with exit code 1
2025-09-15T18:46:43.9262096Z     at ExecState._setResult (/home/runner/work/_actions/gradle/actions/ed408507eac070d1f99cc633dbcf757c94c7933a/dist/setup-gradle/main/index.js:12129:25)
2025-09-15T18:46:43.9264155Z     at ExecState.CheckComplete (/home/runner/work/_actions/gradle/actions/ed408507eac070d1f99cc633dbcf757c94c7933a/dist/setup-gradle/main/index.js:12112:18)
2025-09-15T18:46:43.9265536Z     at ChildProcess.<anonymous> (/home/runner/work/_actions/gradle/actions/ed408507eac070d1f99cc633dbcf757c94c7933a/dist/setup-gradle/main/index.js:12006:27)
2025-09-15T18:46:43.9266383Z     at ChildProcess.emit (node:events:524:28)
2025-09-15T18:46:43.9266829Z     at maybeClose (node:internal/child_process:1104:16)
2025-09-15T18:46:43.9267361Z     at ChildProcess._handle.onexit (node:internal/child_process:304:5)

blampe avatar Sep 15 '25 19:09 blampe