docker build agent
Hi, i'm trying to create a new build agent from docker with following command. I can see the agent in registration page and authorizing it, it's perfectly works for couple minutes and after a while it's get listed as disconnected.
sudo docker run -e SERVER_URL="https://c....com/" \
-v docker_volumes:/var/lib/docker \
--privileged -e DOCKER_IN_DOCKER=start \
jetbrains/teamcity-agent:2020.2-linux-sudo
After some investigation i see a "testLocal" command is executed and gets disconnected after execution. Agent log;
[2020-12-02 15:41:49,344] INFO - buildServer.AGENT.registration - Server supports the following communication protocols: [polling]
[2020-12-02 15:41:49,349] INFO - buildServer.AGENT.registration - Trying to register on server using 'polling' protocol.
[2020-12-02 15:41:50,697] INFO - dDirectoryBasedCleanupRegistry - Removing files from /opt/buildagent/temp/.old
[2020-12-02 15:41:50,698] INFO - dDirectoryBasedCleanupRegistry - Removing files from /opt/buildagent/work/.old
[2020-12-02 15:41:50,765] INFO - l.directories.DirectoryMapImpl - Cleaning up old checkout directories. Default lifetime = 192 hour(s)
[2020-12-02 15:42:01,461] INFO - buildServer.AGENT.registration - Registered on server with id 10 and authorization token 'bf...11'
[2020-12-02 15:42:01,462] INFO - buildServer.AGENT.registration - If this is the first time this agent registered on the server make sure it is authorized by administrator in the server web UI.
[2020-12-02 15:42:01,464] INFO - jetbrains.buildServer.AGENT - Agent name was '', but server returned new name 'ip_172.17.0.1'. Agent name will be updated.
[2020-12-02 15:42:01,466] INFO - ldServer.AGENT.PollingProtocol - Start polling server for commands
[2020-12-02 15:42:01,529] INFO - ldServer.AGENT.PollingProtocol - New command is received from server "testLocal" {id = 1} (enable debug to see command body)
[2020-12-02 15:42:02,108] WARN - ldServer.AGENT.PollingProtocol - The command "testLocal" {id = 1} has been already executed, continue polling.
[2020-12-02 15:42:03,468] INFO - jetbrains.buildServer.AGENT - Updating agent parameters on the server: AgentDetails{Name='ip_172.17.0.1', AgentId=10, BuildId=null, AgentOwnAddress='null', AlternativeAddresses=[172.17.0.1], Port=9090, Version='85487', PluginsVersion='85487-md5-cdad6d6f5286707b6bb12998428ab9a7', AvailableRunners=[Ant, cargo-deploy-runner, DockerCommand, DockerCompose, dotnet, Duplicator, ftp-deploy-run
ner, gradle-runner, Inspection, jetbrains_powershell, JPS, Maven2, python-runner, rake-runner, SBT, simpleRunner, smb-deploy-runner, ssh-deploy-runner, ssh-exec-runner], AvailableVcs=[tfs, cvs, jetbrains.git, mercurial, svn, perforce], AuthorizationToken='bf.....9011', PingCode='HCI....Tzkl'}
[2020-12-02 15:42:07,174] WARN - ldServer.AGENT.PollingProtocol - The command "testLocal" {id = 1} has been already executed, continue polling.
[2020-12-02 15:42:12,212] WARN - ldServer.AGENT.PollingProtocol - The command "testLocal" {id = 1} has been already executed, continue polling.
[2020-12-02 15:42:17,266] WARN - ldServer.AGENT.PollingProtocol - The command "testLocal" {id = 1} has been already executed, continue polling.
[2020-12-02 15:42:22,317] WARN - ldServer.AGENT.PollingProtocol - The command "testLocal" {id = 1} has been already executed, continue polling.
Please sign in to leave a comment.
Hi!
It looks like the server did not remove the "testLocal" command from the queue for whatever reason. Do you see anything related in teacmity-server.log during that time?
-Anatoly