base clearcase

I've got a win clearcase instalation and have checkout problem:

INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool lsvtree -obs -all
apdbuild8\autobuild\tcprojects\apdbuild_tc_2008.1_Bugfix\nextgen

INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool lsvtree -obs -all
apdbuild8\autobuild\tcprojects\apdbuild_tc_2008.1_Bugfix\nextgen@@\main\2008.1_Bugfix\4\src

INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool quit

DEBUG - jetbrains.buildServer.VCS - VCS connection problem: Failed for the root '2008.1_Bugfix' #1: Checking changes for checkout rule '.=>.' failed with erorr: jetbrains.buildServer.vcs.VcsException: java.io.IOException: cleartool: Error: Unable to access "
apdbuild8\autobuild\tcprojects\apdbuild_tc_2008.1_Bugfix\nextgen@@\main\2008.1_Bugfix\4\src": ClearCase object not found.

From this log I see that TC is trying to access nextgen@@\main\2008.1_Bugfix\4\src
but should: nextgen\src
Can this be a config problem (some known workaround for this) or it's just a bug?

Thanks,
Michal

7 comments

Did you try to map the View locally?

0

Yes, this is mapped to the local snapshot view (the same drive I mean).

0

This was the result of making this directly in local way:

jetbrains.buildServer.vcs.VcsException: Getting sources for checkout rule '.=>.' failed with erorr: java.io.IOException: Error executing lsvtree -obs -all C:\autobuild\tcprojects\apdbuild_tc_2008.1_Bugfix\nextgen:
jetbrains.buildServer.vcs.VcsException: Getting sources for checkout rule '.=>.' failed with erorr: java.io.IOException: Error executing lsvtree -obs -all C:\autobuild\tcprojects\apdbuild_tc_2008.1_Bugfix\nextgen:
at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:25)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:74)
at jetbrains.buildServer.serverSide.impl.projectSources.SmallPatchCache.getCachedCleanPatch(SmallPatchCache.java:25)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchCacheImpl.buildCleanPatch(PatchCacheImpl.java:44)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:58)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:127)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:75)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:185)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$FastClassByCGLIB$$a84db719.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:696) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:5) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:578) at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$EnhancerByCGLIB$$36090de7.buildPatch(]]>)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:27)
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)
Caused by: jetbrains.buildServer.vcs.VcsException: java.io.IOException: Error executing lsvtree -obs -all C:\autobuild\tcprojects\apdbuild_tc_2008.1_Bugfix\nextgen:
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.getLastVersion(ClearCaseConnection.java:164)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.prepare(ClearCaseConnection.java:298)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:268)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheElement.processAllVersions(CacheElement.java:18)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:289)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.buildPatch(CCPatchProvider.java:28)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:123)
at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:33)
... 22 more
Caused by: java.io.IOException: Error executing lsvtree -obs -all C:\autobuild\tcprojects\apdbuild_tc_2008.1_Bugfix\nextgen:
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection$ClearCaseInteractiveProcess.isEndOfCommandOutput(ClearCaseConnection.java:28)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.process.InteractiveProcess.readFromProcessInput(InteractiveProcess.java:60)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.process.InteractiveProcess.executeAndReturnProcessInput(InteractiveProcess.java:34)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.executeAndReturnProcessInput(ClearCaseConnection.java:17)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.readVersionTree(ClearCaseConnection.java:212)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.getLastVersion(ClearCaseConnection.java:176)
... 29 more

0

Hi!
I've got the same problem,

Our TeamCity server runs in a VM Windows server 2003. And the "TeamCity Web Server" and "TeamCity Build Agent Service" services are launched by a windows service account.

This service account is member of the same Clearcase group as my windows user account. So these two accounts have the same rights RWX on the snapshot view that I created (with my windows user account) to be used by TeamCity.

The snapshot view is on the same VM as the TC server.

When I configure the VCS settings, there's no problem, the connection test is succesful, but the build always fails getting the project sources.


And I have the same problem shown above.

Any idea, or workaround?

Regards,

Xavier

0

Hello, I think the problem comes from the checkout rules, when no one is set (i.e ".=>.") TC fails getting sources.

So a workaround could be to add checkout rules like this :
folder1 => folder1
folder2 =>folder2
...

It works on Windows2k3 server, but not with RedHat?!!

Under Redhat, not any sources are copied... Don't know why. Any ideas?


Regards,

Xavier

0

up!

Because far from now, you can't say that you support Clearcase, because that's A LIE!

0

Xavier,

Do you have the problem only under Linux now?
Can you please provide more details on your configuration and exact errors you get?

I suppose it's more appropriate to create an issue in our tracker and gather all the details there.

--
Best regards,

Yegor Yarko
Project Manager (TeamCity)
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.