TeamCity could not get sources by using ClearCase as version control
Hello,
For our project team we are looking for a CI enviroment and teamcity got our attention. We have got the following error if we run the build agent :
: Could not get project sources: for build #14
: jetbrains.buildServer.vcs.VcsException: Getting sources for checkout rule '.=>.' failed with erorr: java.io.IOException:
jetbrains.buildServer.vcs.VcsException: Getting sources for checkout rule '.=>.' failed with erorr: java.io.IOException: ...rest of the exception.
: Could not get project sources
: Error while applying patch: Getting sources for checkout rule '.=>.' failed with erorr: java.io.IOException:
We don't know why this error occurs. If we test the connection from with the "Test connection" button it says the connection is fine so the problem must be elsewhere.
Here is what we've got:
1. Installed TeamCity 3.1 on D:\TeamCity on WinXP
2. Changed the accounts which the services TeamCity Webserver and TeamCity Build Agent Services runs to the user whove got rights to the ClearCase view/vob.
3. Created a View with the ClearCase explorer onto D:\AOS_TEAMCITY2\VS2008FINALTEST
4. Opened the TeamCity Web en create a new build configuration.
I pasted a few off the I think important screens in.
-SCREEN--Edit VCS Root
VCS root name: testconn
Type of VCS : ClearCase
ClearCase Settings
View path : D:\AOS_TEAMCITY2\VS2008FINALTEST
Use ClearCase : BASE
Changes Checking Interval
Checking interval: use global server setting (60 seconds)
I tested the connection an no errors came up!
-SCREEN--Version Control Settings
Checkout Settings
VCS checkout mode : Automatically on server
Checkout directory : D:\CHECKOUTS
Clean all files before build: Yes
VCS Labeling
VCS labeling mode: Do not label
Choose VCS roots to label: testconn
--SCREEN-BUILD-RUNNER
Build RunnerBuild runner: sln2008
Solution file path: \AOS.sln
Working directory:
Targets: Build
Configuration: Debug
Platform: ]]>
5. Saved all and run the build.
result:
WARN - jetbrains.buildServer.VCS -
jetbrains.buildServer.vcs.VcsException: Getting sources for checkout rule '.=>.' failed with erorr: java.io.IOException:
at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:8)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:94)
at jetbrains.buildServer.serverSide.impl.projectSources.SmallPatchCache.getCachedCleanPatch(SmallPatchCache.java:34)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchCacheImpl.buildCleanPatch(PatchCacheImpl.java:19)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:126)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:31)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:41)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:453)
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:18)
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$$9c33cd0.buildPatch(]]>)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:1)
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:
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.getLastVersion(ClearCaseConnection.java:38)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.prepare(ClearCaseConnection.java:135)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:43)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheElement.processAllVersions(CacheElement.java:32)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:99)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.buildPatch(CCPatchProvider.java:26)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:12)
at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:34)
... 22 more
Caused by: java.io.IOException:
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection$ClearCaseInteractiveProcess.isEndOfCommandOutput(ClearCaseConnection.java:27)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.process.InteractiveProcess.readFromProcessInput(InteractiveProcess.java:19)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.process.InteractiveProcess.executeAndReturnProcessInput(InteractiveProcess.java:12)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.executeAndReturnProcessInput(ClearCaseConnection.java:263)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.readVersionTree(ClearCaseConnection.java:168)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.getLastVersion(ClearCaseConnection.java:256)
... 29 more
Does anybody know what we do wrong?
Thanks in advance,
Martijn Burgers
The Netherlands
Please sign in to leave a comment.
In addition i've got the following log from the build agent.
INFO - jetbrains.buildServer.AGENT - Found runner sln2008 for
INFO - jetbrains.buildServer.AGENT - Getting sources...
INFO - jetbrains.buildServer.AGENT - Requesting patch from server, cleanPatch=true
INFO - jetbrains.buildServer.AGENT - Copying patch to temp file...
WARN - jetbrains.buildServer.AGENT - Exception occured while patch applying:Getting sources for checkout rule '.=>.' failed with erorr: java.io.IOException:
jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException: Getting sources for checkout rule '.=>.' failed with erorr: java.io.IOException:
at jetbrains.buildServer.vcs.patches.AbstractPatcher$1.exit(AbstractPatcher.java:114)
at jetbrains.buildServer.vcs.patches.LowLevelPatcher.applyPatch(LowLevelPatcher.java:105)
at jetbrains.buildServer.vcs.patches.AbstractPatcher.applyPatch(AbstractPatcher.java:56)
at jetbrains.buildServer.agent.impl.patch.ApplyPatch.execute(ApplyPatch.java:20)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.applyPatch(GetProjectSources.java:231)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.checkPatchInFileIsCompleted(GetProjectSources.java:374)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.copyPatchToTempFile(GetProjectSources.java:470)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.loadAndApplyPatch(GetProjectSources.java:188)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.access$300(GetProjectSources.java:23)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources$3.execute(GetProjectSources.java:337)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.executePatchProcess(GetProjectSources.java:132)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.applyPatch(GetProjectSources.java:335)
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.execute(GetProjectSources.java:94)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$BuildRunAction.run(BuildAgentImpl.java:1034)
at java.lang.Thread.run(Thread.java:595)
INFO - jetbrains.buildServer.AGENT - Sources loaded for 5 seconds
INFO - jetbrains.buildServer.AGENT - Publishing artifacts 'teamcity-info.xml' to root artifacts directory
INFO - jetbrains.buildServer.AGENT - Artifacts path teamcity-info.xml not found
INFO - jetbrains.buildServer.AGENT - Done publishing artifacts teamcity-info.xml, total files published: 0
INFO - jetbrains.buildServer.AGENT - Build finished: 16
Hello,
sorry for delay with the answer.
Please clear clearcase caches (system/clearCaseCaches directory content) and rerun the build.
If the problem reproduces please create new issue (http://jetbrains.net/tracker/_htmlTemplate/Workspace).
What server version do you use?
Thanks!
The problem stil exists. I created a new isue TW - 4717 http://jetbrains.net/tracker/_htmlTemplate/Issue?issue=25-4633
Our clearcase version is : 2003.06.16.910.008 (this is with the latest patch of 2008)