Build agent docker exit code 125

I have a build agent running with the base command on Linux from the image, and it always returns a 125 exit code wheb trying to run Quodana tests, here's the log part : 00:39:26 Building Code Inspection in /opt/buildagent/work/aeb325dd71e255dd 00:39:26 Starting Code Inspection process 00:39:26 Plugin version : 1.0.0 00:39:26 Image : jetbrains/qodana-jvm:latest 00:39:26 Docker arguments : none 00:39:26 JVM arguments : none 00:39:26 Profile : default 00:39:26 Docker entry points : none 00:39:27 docker pull jetbrains/qodana-jvm:latest 00:39:27 latest: Pulling from jetbrains/qodana-jvm 00:39:27 Digest: sha256:d589543737ec8b056d62247ac19a073f1459437fcd8eb1c0709d09afe9087c02 00:39:27 Status: Image is up to date for jetbrains/qodana-jvm:latest 00:39:27 docker.io/jetbrains/qodana-jvm:latest 00:39:27 docker run --label org.jetbrains.analysis=inspection --rm -u 0:0 -v "/opt/buildagent/work/aeb325dd71e255dd":/data/project -v "/opt/buildagent/temp/buildTmp/Static_Analysis_Results/Code_Inspection":/data/results -e QODANA_ENV=teamcity:2022.10.3:117072 -e QODANA_JOB_URL="http://localhost:8111/viewLog.html?buildId=6&buildTypeId=ProjectApi_Build" jetbrains/qodana-jvm:latest --save-report --property qodana.format=SARIF_AND_PROJECT_STRUCTURE --property=idea.headless.enable.statistics=false 00:39:28 Docker exit code: 125 00:39:28 docker: Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown. 00:39:28 Docker exit with code: 125 00:39:28 Process exited with code 0 00:39:28 Reporting as tests is disabled

 

Here is the build agent run command I used :

docker run -e SERVER_URL="<url to TeamCity server>"  \
    -u 0 \
    -v <path to agent config folder>:/data/teamcity_agent/conf \
    -v docker_volumes:/var/lib/docker \
    --privileged -e DOCKER_IN_DOCKER=start \    
    jetbrains/teamcity-agent:2021.1.1-linux-sudo
1
1 comment
Hi! From this issue https://github.com/docker/for-linux/issues/219, there seems to be a problem with the Docker host. Some messages in that thread suggest workarounds, e.g.:
https://github.com/docker/for-linux/issues/219#issuecomment-978975307
https://github.com/docker/for-linux/issues/219#issuecomment-1379981461
You may find them useful.
0

Please sign in to leave a comment.