13 Replies Last post: Sep 23, 2013 11:28 PM by Klas Mellbourn  
Klas Mellbourn Newbie 18 posts since
Mar 11, 2008
Currently Being Moderated

Apr 19, 2013 12:25 PM

'git fetch' command failed. stderr: Socket Closed

We have been working for several weeks with git as version control system.

I have set up integration with TeamCity and that has been working fine.

We have four different projects that use git

 

Yesterday afternoon one of the projects stopped working.

The build fails to start. The message "Failed to start build #1094 on Teamcityagent8_Continuous5 (and 1 more)" is shown in red.

The build log says very little. Just

 

[16:12:46]Checking for changes

[16:12:49]Failed to start build

[16:12:49]Failed to collect changes, error: Error collecting changes for VCS repository 'http://foo-app-sprint:7990/scm/BAR/qux.git#master'

'git fetch' command failed.

stderr: Socket Closed

[16:12:49]Cannot calculate build metric 'percent of class coverage' - no value

 

Strangely the other projects that have very similar configuration all work just fine. They use the same build agents.

 

We use Atlassian Stash as Git server. I have looked at all the logs there, and nothing at all happens when I force a run in team city. So, it would seem that TeamCity does not even reach the Git server.

 

If I test the VCS connection in TeamCity it works.

 

I have tested restarting Stash. It did not help.

 

We are working with feature branches. But I have tested turning those of and it did not help.

 

Today the build has actually worked a couple of times, but the problem returns. The problem now also occurrs intermittently on another one of our projects.

Dmitry Neverov JetBrains 300 posts since
Mar 29, 2010
Currently Being Moderated
Apr 23, 2013 9:39 PM in response to: Klas Mellbourn
Re: 'git fetch' command failed. stderr: Socket Closed

Hi,

 

sorry for delay. I suspect that the error comes from Stash, it seems like it closes connection for some reason. Please check Stash logs, do they contain something regarding this error?

Dmitry Neverov JetBrains 300 posts since
Mar 29, 2010
Currently Being Moderated
Apr 24, 2013 4:27 PM in response to: Klas Mellbourn
Re: 'git fetch' command failed. stderr: Socket Closed

Ok, let's also dig deeper into TeamCity. Please enable 'debug-vcs' logging preset at Administration > Diagnostics, reproduce the problem and attach teamcity-vcs.log here or send it to teamcity-feedback@jetbrains.com with a link to this thread.

Dmitry Neverov JetBrains 300 posts since
Mar 29, 2010
Currently Being Moderated
Apr 25, 2013 11:01 AM in response to: Klas Mellbourn
Re: 'git fetch' command failed. stderr: Socket Closed

OK, please send us teamcity-vcs.log.

Tim Williams Newbie 2 posts since
Sep 20, 2013
Currently Being Moderated
Sep 20, 2013 6:07 PM in response to: Klas Mellbourn
Re: 'git fetch' command failed. stderr: Socket Closed

Hi Klas, did you ever get a resolution to this problem? We are having the exact same issue with TeamCity and Git

Dmitry Neverov JetBrains 300 posts since
Mar 29, 2010
Currently Being Moderated
Sep 20, 2013 7:40 PM in response to: Tim Williams
Re: 'git fetch' command failed. stderr: Socket Closed

Hi Tim,

 

please attach teamcity-server.log and teamcity-vcs.log debug logs here or send them to teamcity-feedback@jetbrains.com.

Tim Williams Newbie 2 posts since
Sep 20, 2013
Currently Being Moderated
Sep 23, 2013 2:31 PM in response to: Klas Mellbourn
Re: 'git fetch' command failed. stderr: Socket Closed

Thanks for getting back to me Klas, we are using GitStack rather than Stash. If you don't mind me asking, what did you move to instead of Stash, and are you still using TeamCity to monitor Git repositories?

More Like This

  • Retrieving data ...