buildserver.registerAgent3 java.net.SocketTimeout Exception: Read timed out

Subj occurs quite often, non-peridocally at some of my agents which have hanged builds. Builds are hanging because of some third-party code analysis tool hangs, so it's not a TC fault.
But it is not only agent problem. When I see this exception at my agent (it uses agent.bat start to start TC) I know if I reboot/stop TC service of any other agent it won't connect to TC back with the same message in log/console.
What helps is TC server restart. Disconnected agents are being back and hanged builds are disappearing from that agents. Before restart they say that hanged builds cannot be stopped.
My guess is something happens to TC RPC service or something with agent. I turned on debug mode for rpc, nothing usefull happened insode the log, just bunch of messages from agents who were connected and no any info from disconnected agents. On the agent site I didn't see any useful inside the log file either. Even if I do enabling debug for xml rpc at log4j configuration.

For this time it works well, I've recently restarted server. I had this problem with 8.0.6 and then with 8.1.2, 8.1.3 versions. With 7.x I had not

4 comments
Comment actions Permalink

Hi,

Please attach teamcity-server.log and teamcity-agent.log from agent which cannot connect.

0
Comment actions Permalink

It's happend again and I've got the log files you asked me before.



Attachment(s):
warn.png
teamcity-server.log.zip
teamcity-agent.log.zip
0
Comment actions Permalink

The server logs start later and do not cover the issue, we need to compare logs from agent and server when the issue is reproduced. To avoid it next time please turn off debug logging on server.
If the issue is reproduced please attach server and agent logs one more time, or better the whole logs folders from agent and server.

0
Comment actions Permalink

Alina, here you are, all logs I can get
I hope it helps to find out waht is happening



Attachment(s):
logs_agent.7z.zip
logs.7z.zip
0

Please sign in to leave a comment.