ClearCase error - Cannot get version in view

Hi,

We have a .NET application stored in a branch in ClearCase.
The client is installed and the view is on the localdrive (BASE method). TeamCity server and agent are run as the user that has rwx rights to it.
When trying to get sources or test the VCS connection I get an error (full log in attachment):

Error while applying patch: Getting sources for checkout rule '.=>.' failed with erorr: Cannot get version in view 'D:\Clearc...

The strange thing is though that it works fine for other branches of the same code (takes over 30 minutes to get the sources...but does not fail at least).

Any idea how to get this running ?

Thanks,
Adam



Attachment(s):
teamcity.log
9 comments
Comment actions Permalink

I checked the new TeamCity 4.0 EAP (build 7757) on a different Windows machine.
The issue still exists.

Some ideas where to start ?

Thanks,
Adam

0
Comment actions Permalink

Adam,

Sorry for the delay in replying.

Please watch the issue in our tracker:
http://jetbrains.net/tracker/issue/TW-5931

Could you please describe there what are your settings for the ClearCase root?

0
Comment actions Permalink

Adam,

Can you please run the command "cleartool catcs" in the command line and attach/write here its output?

0
Comment actions Permalink

Hi!

I do have the same problem with TeamCity 4.5.4 and ClearCase 7.1.0.0.

cats results:
element * CHECKEDOUT
element \SET\... /main/LATEST
element \SET_tools\... SET_TOOLS_A1.0
load \SET_tools\Templates\C#Solution
load \SET\Legacy\GOOSEObs
load \SET\Prototype\ArchiProto


Error:
[2009-07-31 15:06:02,285]   WARN [  Cached pool 1] -      jetbrains.buildServer.VCS - Failed to build patch for build #10, build id: 53, VCS root: ClearCase VCS root C# Template, due to error: Cannot get version in view 'E:\ccase\ic_prod_set_view\SET_tools\Templates\C#Solution\Build\StyleCop' for the directory E:\ccase\ic_prod_set_view\SET_tools\Templates\C#Solution\Build\StyleCop
jetbrains.buildServer.vcs.VcsException: Cannot get version in view 'E:\ccase\ic_prod_set_view\SET_tools\Templates\C#Solution\Build\StyleCop' for the directory E:\ccase\ic_prod_set_view\SET_tools\Templates\C#Solution\Build\StyleCop
    at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.prepare(ClearCaseConnection.java:728)


My view is here:
E:\ccase\ic_prod_set_view

This is not a view:
'E:\ccase\ic_prod_set_view\SET_tools\Templates\C#Solution\Build\StyleCop'

I've attached clearcase and VCS file (DEBUG activated).

Regards,

Olivier.



Attachment(s):
#10 teamcity.zip
0
Comment actions Permalink

Maybe TeamCity doesn't retrieve new changes for its patch, as it considers it's up to date.

I've remove the following folders content on server:

- system\caches\clearCase

- system\caches\sources

But it seems that something's not clear (maybe in database).

Is there a way to reset VCS state? A date in a table? ...

Regards,

Olivier.

0
Comment actions Permalink

Some more info.

Between the config that used to work and the config that is no KO, changes are:
- change on ClearCase View config spec to use a LABEL instead of /main/LATEST for one of the VOB
- addition of a file

So I wonder if it is necessary to remove and create again VCS root when changing ClearCase config spec?

Regards,

Olivier.

0
Comment actions Permalink

It seems that droping and creating again ClearCase snapshot view has solved the problem.
Thus, the error message about view path and folder is not enough clear in TeamCity.

Olivier.

0
Comment actions Permalink

element \SET\... /main/LATEST
element \SET_tools\... SET_TOOLS_A1.0

this is a problem.

The TC plugin fails without element *

0

Please sign in to leave a comment.