I have a some projects with a total of 9 build configurations. For the most part everything works well.
However, it seems that randomly when TeamCity is polling the VCS -- in my case, GitHub -- and it will get the following error:
Failed for the root 'animalcrossingcommunity' #10: jetbrains.buildServer.vcs.VcsRootVcsException: List remote refs failed: java.net.ConnectException: Connection time out: github.com
(I also have and can provide the stack trace if that will help.)
This isn't a major issue for the most part, because once it polls the VCS again within a mintue or so, it eventually is able to connect.
The bigger issue, though, is due to three of my build configurations being triggered on a schedule. So if they happen to not be able to connect to the VCS when the job runs, the job fails and will not run again until it is scheduled to run again (in this case, either once daily or weekly). Here is the error that is thrown for the build runs:
[07:41:04]TeamCity server version is 8.0.5 (build 27692)
[07:41:04]Checking for changes
[07:41:26]Failed to collect changes, error: List remote refs failed: java.net.ConnectException: Connection time out: github.com
I know I can set the configuration up to retry, and I can consider this as an option. However, I want to try figure out why this is happening and try to address the root cause before I implement a workaround.
The server is a Windows Server Hyper-V 2012 box with 5 VMs, and the TeamCity build is on a dedicated VM. I'm not aware of any other network issues, and while this is going on, I'm able to connect and use the server via Remote Desktop, so I don't feel this is a network issue on the server end.
I've searched TeamCity community as well as Google in general, and have found a few threads on this error, but they all seem to be persistent connection issues, whereas mine are very intermittent.
If there's any other information I can provide to help diagnose the issue, just let me know.