Connecting to ClearCase from TeamCity Professional 3.0.1

Hi

Whilst trying to connect to ClearCase on Unix, I'm getting this error message whatever I try.

Failed for the root 'IndigoClearCase' #17: Checking changes for checkout rule '.=>.' failed with erorr: jetbrains.buildServer.vcs.VcsException: com.intellij.execution.process.ProcessNotCreatedException: CreateProcess: cleartool lsstream -fmt %En#--#%[found_bls]p error=2

Can anybody help me out here with how I can troubleshoot this.

Thanks!

10 comments

Craig,

It seems that "cleartool" cannot be found in the PATH.

Do you have ClearCase client installed on the machine?

--
Best regards,

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

0

Hi Yegor

Many thanks for getting back to me. I opened up a command window on the client and checked the path. It can see the cleartool exe, but when I run "cleartool lsstream" which i believe is what is being run, I get this

cleartool: error : cannot determine view context

which is obviously the source of the issue. How do I go about providing this context?

Thanks!
Craig

0

Craig,

The error message suggests the command cannot be found ("error=2" part) by the TeamCity agent.

In your test, did you use the same user TeamCity agents works under?

The message you got in the test probably means that you were invoking the command from the directory that is not in the view.

--
Best regards,

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

0

Hi Yegor

Ok, let me give you some further information which I hope will be useful.

In answer to your questions

- In your test, did you use the same user TeamCity agents works under? --> Yes
- The message you got in the test probably means that you were invoking the command from the directory that is not in the view. --> Yes, understand now

Once I moved to a directory that was in the view and re-ran the cleartool lsstream command, I didn't get the error. However, at the same time I didn't get any output at all, just returns to the prompt.

In addition

We have the team city main server setup on a different server to the build agent.

- TeamCity Server is running as localsystem I believe
- TeamCity build agent is running as a domain account for which clearcase client has been installed, and a view has been created on the c: drive under the same account. This is also the account under which i logged on locally to run the cleartool test.


Questions

- what rights do the TeamCity Server account need. Its running a local system at the moment -> would this present an issue?

- I notice that with the clearcase VCS option, you only have the option to 'Checkout on server' and not 'checkout on agent'. However, the view I have created is on the build agent (and therefore the source code files are on the build agent). I have the 'Checkout on server' option selected, but then if my source is on the agent, how does this work? I'm confused about this which means its likely to be something to do with the problems I'm having.


Thanks
Craig

0

Craig,

Actually, TeamCity works with the ClearCase on the server only and files get on agent thought the server.

I was inaccurate in my previous post mentioning TeamCity agent, it should read TeamCity server instead. You should check the ClearCase is installed on the server and check the cleartool is found in the PATH for the user TeamCity server runs under.

--
Best regards,

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

0

Hi Yegor

Thanks for getting back to me on that. I had already started going down that path, so now I have installed ClearCase on the server. Now when i try to create VCS root, I get this :

jetbrains.buildServer.vcs.VcsException: Process cleartool lsstream -fmt %En#--#%[found_bls]p returns 1

A different error message, which I'm taking as a positive sign. Can you tell me what this error message represents?

The one thing I'm not sure about here, is that I had already created the view the the Build Agent. This directory is shared on the build agent, however, do I need to create this view on the TC server?

Please let me know, maybe that's the next thing I should try.

Many thanks!
Craig

0

Hi

Ok, so, I've created the view on the TC Server and tried to configure VCS settings to there.

At present i'm getting
jetbrains.buildServer.vcs.VcsException: Process cleartool lsstream -fmt %En#--#%[found_bls]p returns 1

I have gone to the directory on the c: drive that holds the view and run cleartool directly from there. This is the error message I get back ...

cleartool: Error: Unable to determine VOB for pathname "."


Any ideas about where I go from here?

Many thanks!
Craig

0

Hello,

what directory is being used as view path? Could you attach its name here?
Could you also point what directory is the view root (contains .view.dat file)?

0

actual name of the directory on the server is that is being used is
c:\indigo\build\clearcase\svc_desk_dev_view

c:\indigo\build\clearcase\svc_desk_dev_view\TKY_EQ_PIT_POSITION is the view root.

The view.dat file can be seen in this directory via the clearcase explorer, but not in the physical directory on the c: drive.

In clearcase explorer, my view name is svc_desk_dev_view2 (different from dir name, does that matter?)
Therefore, the view.dat file can be found in svc_desk_dev_view2/TKY_EQ_PIT_POSITION under clearcase explorer

does that make sense?

Thanks
Craig

0

Hi Yegor,

May I ask if any document for describe error code when encountered error with connect to CC server? many thanks.

0

Please sign in to leave a comment.