Help - Error 127 with TeamCity setup.

Hello. I have recently setup TeamCity, however, I am running into error 127 when running a docker container, the full error log says this: 

[Step 2/3] Running step within Docker container openjdk:17
[15:55:58][Step 2/3] Starting: /bin/sh -c ". /opt/buildagent/temp/agentTmp/docker-wrapper-15832394903536190054.sh && docker run --rm -w /opt/buildagent/work/581e1ceff4bd8411 --label jetbrains.teamcity.buildId=503 -v "/opt/buildagent/lib:/opt/buildagent/lib:ro" -v "/opt/buildagent/tools:/opt/buildagent/tools:ro" -v "/opt/buildagent/plugins:/opt/buildagent/plugins:ro" -v "/opt/buildagent/work/581e1ceff4bd8411:/opt/buildagent/work/581e1ceff4bd8411" -v "/opt/buildagent/temp/agentTmp:/opt/buildagent/temp/agentTmp" -v "/opt/buildagent/temp/buildTmp:/opt/buildagent/temp/buildTmp" -v "/opt/buildagent/system:/opt/buildagent/system" --env-file /opt/buildagent/temp/agentTmp/docker-wrapper-5885971147400689925.envList --entrypoint /bin/sh "openjdk:17" /opt/buildagent/temp/agentTmp/docker-shell-script-4717420634689573305.sh"
[15:55:58][Step 2/3] in directory: /opt/buildagent/work/581e1ceff4bd8411
[15:56:04][Step 2/3] /bin/sh: /opt/buildagent/temp/agentTmp/docker-shell-script-4717420634689573305.sh: No such file or directory
[15:56:06][Step 2/3] Process exited with code 127
[15:56:06][Step 2/3] Process exited with code 127 (Step: Run JAR (Command Line))
[15:56:11][Step 2/3] Step Run JAR (Command Line) failed
 
Am I missing something? Why is this error happening?
 
For reference, also leaving my docker-compose file here.

web_database:
image: mysql
container_name: web_database
restart: always
environment:
- MYSQL_DATABASE=webdata
- MYSQL_ROOT_PASSWORD=password
volumes:
- /home/web/db:/var/lib/mysql

teamcity-server:
image: jetbrains/teamcity-server
container_name: teamcity-server
volumes:
- /home/web/teamcity/data/:/data/teamcity_server/datadir
- /home/web/teamcity/logs/:/opt/teamcity/logs
environment:
- TEAMCITY_HTTPS_PROXY_ENABLED=true
restart: always

teamcity-agent-1:
image: jetbrains/teamcity-agent
container_name: teamcity_agent_1
privileged: true
restart: always
depends_on: [teamcity-server, web_database]
volumes:
- /home/web/teamcity/agents/agent-1/conf/:/data/teamcity_agent/conf
- /var/run/docker.sock:/var/run/docker.sock
- /opt/buildagent1/work:/opt/buildagent/work
- /opt/buildagent1/temp:/opt/buildagent/temp
- /opt/buildagent1/tools:/opt/buildagent/tools
- /opt/buildagent1/plugins:/opt/buildagent/plugins
- /opt/buildagent1/system:/opt/buildagent/system
environment:
- DOCKER_IN_DOCKER=start
- SERVER_URL=teamcity-server:8111

teamcity-agent-2:
image: jetbrains/teamcity-agent
container_name: teamcity_agent_2
privileged: true
restart: always
depends_on: [teamcity-server, web_database]
volumes:
- /home/web/teamcity/agents/agent-2/conf/:/data/teamcity_agent/conf
- /var/run/docker.sock:/var/run/docker.sock
environment:
- SERVER_URL=teamcity-server:8111

networks:
default:
driver: bridge

 

Anything I am missing here? I have tried a lot of different things but Error 127 always ends up happening. Thank you for any help.

0
1 comment
Avatar
Permanently deleted user

Resolved.

 

For any future experiencers of this issue, I followed this issue thread to fix it: https://youtrack.jetbrains.com/issue/TW-52017

 

0

Please sign in to leave a comment.