TeamCity Stops Checking For Changes (VCS - Visual Source Safe)
I'm having an odd issue with 6.0.3, though it started to happen in 6.0.2 before our upgrade.
Every once in awhile, TeamCity just stops checking for new changes, all my projects will have 0 pending changes, clicking "check for pending changes" does nothing (not even anything in the log) and restarting TeamCity causes all the changes to show up!
Files I checked in 2 hours ago just showed up with the most recent TeamCity restart, check interval is 60 seconds.
Where should I start gathering logs other than teamcity-vcs.log in order to figure out why this isn't working? I just turned on debug-vcs and will be getting dumps when this happens again, if it's a problem with TeamCity and not my config I'll submit a bug report.
TC Server Info:
TeamCity 6.0.3 (also did it in 6.0.2)
OS: Windows Server 2008 R2
VCS: Visual Source Safe
Thanks. :)
Please sign in to leave a comment.
Alright, this is interesting:
What I immediately notice is that the ChangeCollectionPolicy isn't being updated until after I restart, of course there are no changes when comparing a version with itself.
Is this a bug that has to do with TeamCity? Or is the VSS component more hands off than that?
Ok, it's confirmed, the trigger just stops running.
I have on 3/22 the vss runner running every minute (or so... there are two projects).
Then nothing after 10:28 on 3/22.
We get one call at midnight at 3/24 and one at 3/26.
Basically the VCS triggers are messed up.
Please try checking you VSS database.
Have you changes/update VSS related software on TeamCity server?
Check server time to be the same as VSS share holding machine.
Please try checking you VSS database.
Everything seems in order, we're constantly using it and haven't had issues outside of TeamCity.
Have you changes/update VSS related software on TeamCity server?
We haven't made any changes to our VSS server, however I did go ahead and reinstall the VSS tools to confirm it isn't an issue there.
Check server time to be the same as VSS share holding machine.
Both are observing DST and are the same.
I think the biggest flag is that TeamCity isn't even checking anymore, VCS log is blank for days on end, when TeamCity is restarted it checks the VSS fine.
Please check Checkout rules in the build configurations. Checkout rules are processes with respect to case, while VSS is case _in_sensitive. If you used wrong case in checkout rules, that could make all changes filtered away.
Could you please check VSS database with VSS admin tools. There could be some errors in the database that make TeamCity fail to detect changes.
Wow, I feel bad, just because I thought they both were pointed at the same network time server doesn't mean I should believe the time was the same. I don't actually have access to our VSS server (it does various other things of company importance), so I had to kind of make an assumption when I asked if they both were observing the same time frame and was set "nearly" to be the same, didn't think the constraints on the VSS checkout were that tight (apparently by domain default the variance in that can be up to 5 minutes which is unacceptable for me, but that is something I can fix myself).
Alright so here is the situation:
TeamCity box is virtualized (on ESXi), and is pointed to a network time server that it CANNOT connect to (whoops, by default).
Over the course of the past few months and various downtime for upgrades on the hypervisor the kernel time clock has drifted due to virtualization, the clock has been moving forward.
Being as it checks between the latest minute or so interval, it wasn't reaching far back enough to find the checkins.
Pointed it at the domain controller for our network, everything is fine now.
Of course though, doesn't that mean that VSS won't work across a VPN that may span a timezone?
Everything seems to be working top notch now, sorry for the trouble, hopefully if this happens to anyone else they'll stumble on this thread.
Glad to read the problem is resolved.
TeamCity uses current time to query VSS history. If you run it over VPN connection with different timezones you need to ensure VSS report date and time in server's time zone.
It seems VSS2005 had such option in the settings.