TC 3.1.2 VCS error: Problems with VCS connection

Hello,

I came in this morning and looked at the Projects page. It displays "Problems with VCS connection" errors in most of my build configs that use a particular branch of Perforce (main). The strangest part of this problem is that there are several different client specs (mappings) used in these build configs and most don't include the files it complains about.

The details of the error are (I have changed parts of the path for simplicity):
Failed for the root 'myproject_main' #68: Date 2008/09/08 10:07:40: Operation: user-describe Librarian diff depot/services/project/main/DCG/UserRefDeploy/webapps/project/dialogs/error.jsp failed. checkout 1.2 failed no revision after 1.3! Date 2008/09/08 10:07:40: Operation: user-describe Librarian diff project/services/project/main/DCG/UserRefDeploy/webapps/project/dialogs/genericPage.jsp failed. checkout 1.2 failed no revision after 1.3!
« Hide details
jetbrains.buildServer.vcs.VcsException: Date 2008/09/08 10:07:40:
Operation: user-describe
Librarian diff depot/services/project/main/DCG/UserRefDeploy/webapps/project/dialogs/error.jsp failed.
checkout 1.2 failed
no revision after 1.3!
Date 2008/09/08 10:07:40:
Operation: user-describe
Librarian diff depot/services/project/main/DCG/UserRefDeploy/webapps/project/dialogs/genericPage.jsp failed.
checkout 1.2 failed
no revision after 1.3!

The current versions of the files mentioned are v1.3. I don't understand why TC thinks there is a problem.
I tried saving the VCS Roots without changing them. I tried restarting the TC server.

Changing the user of some of the VCS roots made some of the errors go way but most are still there.
Is there a way to make these msgs go away?

Thanks,
-Dave

5 comments

The only solution that was successful was to delete the problematic TC VCS Roots and remake them exactly the same way.

Not an ideal solution but it worked.

-Dave

0

Hello Dave,

Could you please post a related exception (it should be available in teamcity-vcs.log file).
Thanks!
KIR

0

Kir,

Here is the exception from the teamcity-vcs.log (I changed the path names a bit):

jetbrains.buildServer.vcs.VcsException: Date 2008/09/08 08:56:03:
Operation: user-describe
Librarian diff depot/services/project/main/DCG/UserRefDeploy/webapps/project/dialogs/error.jsp failed.
checkout 1.2 failed
no revision after 1.3!
Date 2008/09/08 08:56:03:
Operation: user-describe
Librarian diff depot/services/project/main/DCG/UserRefDeploy/webapps/project/dialogs/genericPage.jsp failed.
checkout 1.2 failed
no revision after 1.3!

at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceConnection.runCommand(PerforceConnection.java:226)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceConnection.runCommand(PerforceConnection.java:129)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceConnection.describeChangeList(PerforceConnection.java:45)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceSupport.loadChanges(PerforceSupport.java:16)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceSupport.getChanges(PerforceSupport.java:122)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceSupport.collectChanges(PerforceSupport.java:130)
at jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceSupport.collectBuildChanges(PerforceSupport.java:179)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:77)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:5)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:38)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:670)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:20)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

-Dave

0

Hello Dave,

Please check if you can checkout 1.2 version of the problematic file. I'm afraid, there could be some data corruption in P4 repository.

Regards,

KIR

0

There is no version 1.2 or 1.3 of any of the files in this code path. The specific files mentioned in my post (TC complains about 2 files)
has revisions 1 though 8.

Output of "p4 filelog genericPage.jsp" without details:
... #8 change 58956 add on 2008/09/10
... #7 change 58955 delete on 2008/09/10
... #6 change 58951 edit on 2008/09/10
... #5 change 58950 purge on 2008/09/10
... #4 change 58945 purge on 2008/09/10
... #3 change 58904 purge on 2008/09/05
... #2 change 58895 purge on 2008/09/05
... #1 change 58858 purge on 2008/08/28

Changes 4-8 were attempts of a developer to get past the error in TeamCity by submitting the file again, changing the file type, then deleting and re-adding the file. The only solution was to delete the VCS Root in TeamCity and remake it.

-Dave

0

Please sign in to leave a comment.