Runner freezes when compiling gradle
Greetings,
I have an issue with my teamcity agent trying to build a java Gradle 8.1.1 project.
The build process stops at:
22:24:02 kotlin scripting plugin: created the scripting discovery configuration: kotlinScriptDef
22:24:02 kotlin scripting plugin: created the scripting discovery configuration: testKotlinScriptDef
22:24:02 Compiling build file '/opt/buildagent/work/217665c686f6dec2/build.gradle' using BuildScriptTransformer.
I gave the runner several hours, but without luck.
This is the snippet from the teamcity agent log:
[2023-09-08 23:21:29,558] INFO - erStages.start.CallRunnerStage - ----------------------------------------- [ Step 1/2: 'Build & Test (Gradle)' (gradle-runner), Build "Thoriumreactors / Build" #8 {id=1726, buildTypeId='ThoriumReactors_Build'} ] -----------------------------------------
[2023-09-08 23:21:29,569] INFO - GenericCommandLineBuildProcess - Starting "bash /opt/buildagent/work/217665c686f6dec2/gradlew --init-script /opt/buildagent/plugins/gradle-runner/scripts/init.gradle -Dorg.gradle.daemon=false build --build-cache" in directory "/opt/buildagent/work/217665c686f6dec2"
[2023-09-08 23:21:29,603] INFO - nner2.OsProcessHandlerListener - bash /opt/buildagent/work/217665c686f6dec2/gradlew --init-script /opt/buildagent/plugins/gradle-runner/scripts/init.gradle -Dorg.gradle.daemon=false build --build-cache
The agent runs on a linux ubuntu 22 machine via docker using “docker in docker” and the 2023.05.3-linux-sudo image
Please sign in to leave a comment.
Hi Deniz,
Did you try to run the following command outside TeamCity to check if it also hangs?
You might also want to tick the
Log debug messages
andPrint stacktrace
in your Gradle runner build step configuration (under Advanced Options) to check the extra information helps to find what is going wrong.