Teamcity v5.1 and GIT timeout problem



Hi all,
 
We have updated the TeamCity v 4.5 to the newest verion - 5.1. Then we have moved the TeamCity server to a different machine and recreated the database etc.
It all worked fine... for 5 minutes. The problem we are facing is to do with connecting to git that is located on a different server. We have a timeout error whenever we try to connect or test the connection. We have checked on the old TeamCity server and it was still possible to connect using the old plugin. When using inbuilt version of GIT on the old server we are not able to connect.
 
On thew new server we have removed the old plugin from the 'plugins' folder. Still not able to connect with the inbuilt version. Connection timeout.
 
We have copied the old plugin back in and now it is not being seen by TeamCity server (does not appear in the dropdown box when editing VCS connection details).
 
Any ideas would be much appreciated.
 
 
Regards,
Tom

13 comments
Comment actions Permalink

Could you please provide server logs and build log where you see the timeout?


0
Comment actions Permalink

Hi,
Please find the build log attached. What other logs would be usefull? By server log. do you mean TeamCity server log?

Thanks



Attachment(s):
build log.txt.zip
0
Comment actions Permalink

Entries from TeamCity VCS log


[2010-01-18 11:33:06,421]   WARN [oader 3 {id=13}] -      jetbrains.buildServer.VCS - Error while
loading changes for root ssh://git@xxx.xxx.xxx.xxx/~/project/project.git#beta_v1 {id=13}, cause:
The retrieving current version failed: java.io.InterruptedIOException: Read timed out
[2010-01-18 11:33:06,421]   WARN [loader 4 {id=9}] -      jetbrains.buildServer.VCS - Error while
loading changes for root ssh://git@xxx.xxx.xxx.xxx/~/gjp.git#master {id=9}, cause: The retrieving
current version failed: java.io.InterruptedIOException: Read timed out

But for Visual Source safe it works:

[2010-01-18 11:40:38,171]   INFO [loader 5 {id=3}] -      jetbrains.buildServer.VCS - Collecting
changes: root=vss: \\xxx.xxx.xxx.xx\Data\Dev\VSS\srcsafe.ini $/projects/project1/projectxxx/
{id=3}, fromVersion=1262877320970, toVersion=1263814838156

for some reason some entries for GIT logs shows [oader x {id=y}] instead of [loader ...]

also another message:

[2010-01-18 12:10:40,687]   WARN [pool executor 8] -      jetbrains.buildServer.VCS - Error while

loading vcs version for root 'ssh://git@xxx.xxx.xxx.xxx/~/xxxproject.git#master {id=15}', id=15:
The repository at Z:\.BuildServer\system\caches\git\git-3D24425B.git cannot be opened or created:
java.io.IOException: Cannot read Z:\.BuildServer\system\caches\git\git-3D24425B.git\config

0
Comment actions Permalink

Could you send a complete stacktrace for the git errors? From message it looks like the file Z:\.BuildServer\system\caches\git\git-3D24425B.git\config exists, but it could not be opened from account from which teamcity is running.

0
Comment actions Permalink

Attaching the build log.

The user that TeamCity is running under has full rights to access the Teamcity and BuildServer path.

Thanks,
Tom



Attachment(s):
buildLOG.txt.zip
0
Comment actions Permalink

We have tried to create a GIT repository on a Windows machine and connect to it from TeamCity.It connects fine. It just does not want to work when trying to connect over ssh with Linux box where our current repository resides.

Any clues?

Thanks,
Tom

0
Comment actions Permalink

We have managed to find the workaround.
Instead of connecting using SSH, we have started GIT daemon on the Linux server and now connecting from TeamCity using GIT protocol works.

There is still an issue with connection over SSH to the Linux machine as it does not work.

Tom

0
Comment actions Permalink

Hi

We are seen the exact same problem. However it started after one week of problem free operation. It occurs after one run of the build configuration using git and is temporarly fixed after a reboot of the server.

Did some one get to the bottom of the problem?

0
Comment actions Permalink

Hello Aslak,
which version of git-plugin do you use? Could you please provide TeamCity server and vcs logs.

0
Comment actions Permalink

Thanks for the reply;

We are using
VCS support: Git version 13430 from JetBrains

We now see that it is sufficiant to restart the AgentMachine via web UI to get the git integration running agian. Please post back if you need more information

I have attached the build log.



Attachment(s):
ETF_ETF_508.log.zip
0
Comment actions Permalink

Aslak, version 13430 is rather old. Could you please install the latest build (you can find it here) and see if it helps.

0
Comment actions Permalink

Aha!

I'll try that out... first thing tomorroy.

Thanks

0
Comment actions Permalink

Thanks Dmitry, a new version of the git plugin worked like a charm!


0

Please sign in to leave a comment.