Weird ClearCase bug in TC 6.x - Dynamic view directories go missing now and then....

I have several build configs setup to check a dynamic view for changes and the problem I've run into is that now and then I get the error below, however I know for a fact the directory does exist, and my only workaround for now has been to run build config on my TC server that will do a 'stat' on all folders on my dynamic view every 5 minutes that used by my build configurations not a very nice solution but it at least prevents TC from locking up and not running any builds at all.

Anyone have any idea on how to resolve this problem?

Error collecting changes for VCS root 'clearcase: M:\main.abarans1\XXXXXXXX'
com.intellij.execution.ExecutionException: Cannot start process, the working directory M:\main.abarans1\XXXXXXXXXXXX      does not exist

jetbrains.buildServer.vcs.VcsException: Error collecting changes for VCS root 'clearcase: M:\main.abarans1\gmag\src\Interfaces'
com.intellij.execution.ExecutionException: Cannot start process, the working directory M:\main.abarans1\gmag\src\Interfaces does not exist
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.executeSimpleProcess(ClearCaseConnection.java:485)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.executeSimpleProcess(ClearCaseConnection.java:458)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.getViewTag(ClearCaseConnection.java:745)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.getConfigSpecInputStream(ClearCaseConnection.java:723)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.configSpec.ConfigSpecParseUtil.getConfigSpec(ConfigSpecParseUtil.java:45)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.<init>(ClearCaseConnection.java:164)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.doCreateConnectionWithViewPath(ClearCaseSupport.java:215)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.doCreateConnection(ClearCaseSupport.java:209)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.createConnection(ClearCaseSupport.java:191)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.collectChanges(ClearCaseSupport.java:690)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport$10.collectChanges(ClearCaseSupport.java:905)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader$1.collectBuildChanges(VcsChangesLoader.java:1)
at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:54)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChangesByIncludeRules(VcsChangesLoader.java:86)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges(VcsChangesLoader.java:78)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:119)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChangesForRule(VcsChangesLoader.java:76)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges4CommonCheckoutRule(VcsChangesLoader.java:133)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges(VcsChangesLoader.java:149)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:35)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:3)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:279)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:83)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:19)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.intellij.execution.ExecutionException: Cannot start process, the working directory M:\main.abarans1\gmag\src\Interfaces does not exist
at com.intellij.execution.configurations.GeneralCommandLine.checkWorkingDirectory(GeneralCommandLine.java:122)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:103)
at jetbrains.buildServer.CommandLineExecutor.runProcess(CommandLineExecutor.java:51)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection$1.execute(ClearCaseConnection.java:116)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.executeSimpleProcess(ClearCaseConnection.java:483)
... 29 more
com.intellij.execution.ExecutionException: Cannot start process, the working directory M:\main.abarans1\gmag\src\Interfaces does not exist
at com.intellij.execution.configurations.GeneralCommandLine.checkWorkingDirectory(GeneralCommandLine.java:122)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:103)
at jetbrains.buildServer.CommandLineExecutor.runProcess(CommandLineExecutor.java:51)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection$1.execute(ClearCaseConnection.java:116)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.executeSimpleProcess(ClearCaseConnection.java:483)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.executeSimpleProcess(ClearCaseConnection.java:458)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.getViewTag(ClearCaseConnection.java:745)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.getConfigSpecInputStream(ClearCaseConnection.java:723)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.configSpec.ConfigSpecParseUtil.getConfigSpec(ConfigSpecParseUtil.java:45)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.<init>(ClearCaseConnection.java:164)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.doCreateConnectionWithViewPath(ClearCaseSupport.java:215)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.doCreateConnection(ClearCaseSupport.java:209)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.createConnection(ClearCaseSupport.java:191)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.collectChanges(ClearCaseSupport.java:690)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport$10.collectChanges(ClearCaseSupport.java:905)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader$1.collectBuildChanges(VcsChangesLoader.java:1)
at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:54)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChangesByIncludeRules(VcsChangesLoader.java:86)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges(VcsChangesLoader.java:78)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:119)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChangesForRule(VcsChangesLoader.java:76)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges4CommonCheckoutRule(VcsChangesLoader.java:133)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges(VcsChangesLoader.java:149)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:35)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:3)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:279)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:83)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:19)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

7 comments
Comment actions Permalink

Antoni

I see you've resolved ClearCase-related issue in a parallel thread.
So, is this one still actual?

Thanks
Michael

0
Comment actions Permalink

Nope this is still very much an issue for me

The really annoying thing is that once TC get into this state where it claims that the directories don't exist it cannot recover from this state until the directories are 'pinged' in some way.

0
Comment actions Permalink

Antoni,

Did you start TC as service or from command line script?

Does this problem occur with other directories (on other disks)?

0
Comment actions Permalink

Started from the command prompt using the same user that started the dynamic view.

0
Comment actions Permalink

Can you please try to start TC as a service and/or use the directory on the other disk?

0
Comment actions Permalink

What do you mean by use directory on other disk? Dynamic views in ClearCase are created using the MVFS which is a virtual file system, if you mean do I see the same problem using a snapshot view then the answer is no I do not, snapshot views are polled just fine by TeamCity.

Unfortunately I cannot run TC as a service because the dynamic view is created using the %USERNAME% env variable which is not permissioned on a per machine level on our ClearCase servers. I therefore must run TC using a user account that is permissioned on our ClearCase servers to create/see the dynamic view.

0
Comment actions Permalink

Can it be some kind of network problems? Maybe there is some timeout for network connection that you can increase...

If you do not perform 'stat', is the folder actually available when TC cannot run the build? Can you please provide us some MVFS logs?

0

Please sign in to leave a comment.