2 Teamcity Web applications have problems accessing git repository

I have 2 separate Teamcity web application instances running on separate servers accessing the same git repository.

This seems to be causing issues with the VCS root configuration.

The specific error message is:

Error collecting changes for VCS repository ... 'git fetch' command failed... 301 Moved permanently

I get this message for every build configuration with every teamcity project in my installation.

I must maintain 2 separate teamcity application instances on different servers - one that builds Microsoft Windows software artifacts and the other that build Linux based artifacts.

The only workaround that I currently have for this problem is to delete the VCS root and set it up again - only to discover that the next day the problem is back.

I can't keep doing this forever - there must be a better way to address this.

Does anyone know how?

0
2 comments
Avatar
Permanently deleted user

I am running Teamcity 2018.1.2 on both servers.

0

Hi Rohit,

 

This error feels pretty strange, but it shouldn't be because of maintaining two different servers, unless you are sharing any configuration between them in unsupported forms (shared data directory, for example). The 301 error message seems to imply that it's more of an issue with the remote server, or maybe a proxy in between, but if recreating the VCS Root works, then it is a strange error. A suggestion to test this would be to stop one of the servers (or its access to this VCS Root) and attempt accessing the server with the initial one.

 

We have noticed some issues recently with many VCS Roots pointing at the same server. It can be dealt with by reducing the amount of VCS Roots or increasing the polling period, but the issues were usually intermittent and the error messages were usually server timeouts. A 301 error message is very specific, and should be returned from the remote server.

 

If you can't find any other issue in proxies, firewalls or the remote server, please send us the teamcity-vcs.log files on your server installation directory using the "Submit a request" button on top of this page to keep them private.

0

Please sign in to leave a comment.