teamcity and linux clearcase

Hi

We have TeamCity and ClearCase on a ReadHat server. Created a clearcase snapshot view of the integration stream. When I try to setup a VCS root to that view I get the following error:

jetbrains.buildServer.vcs.VcsException: Invalid path: '/opt/install/cc_views/build'; cannot find view root, directory containing 'view.dat' file

ls of the directory:

drwxrwxr-x 3 svn cc_users 4096 Mar 27 14:14 .
drwx------ 3 svn cc_users 4096 Mar 14 13:37 ..
drwx------ 3 svn cc_users 4096 Mar 14 13:41 CI_VOB
-rw------- 1 svn cc_users 611 Mar 14 13:39 update.2008-03-14T13:39:25+02.updt
-rw------- 1 svn cc_users 910573 Mar 14 13:41 update.2008-03-14T13:41:18+02.updt
-rw------- 1 svn cc_users 910520 Mar 14 13:45 update.2008-03-14T13:44:58+02.updt
-rw------- 1 svn cc_users 260937 Mar 27 14:15 update.2008-03-27T14:14:46+02.updt
-r----


1 svn cc_users 82 Mar 14 13:37 .view.dat

Can anyone help?

13 comments

try /opt/install/cc_views/build/CI_VOB

Gilles

0

Thanks Gilles

Now I get:

Cannot get version in view '/opt/install/cc_views/build/CI_VOB' for this directory

0

Can you :
- start teamcity with -Dcc.log.commands=true in runAll.sh or runAll.bat
- set debug level on VCS logging (in TEAMCITY_HOME/conf/teamcity-server-log4j.xml):

]]>

And then attach your VCS log file (TEAMCITY_HOME/logs/teamcity-vcs.log) ?

0

Here you go.

INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool lsstream -fmt %En#--#%[found_bls]p
INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool catcs
INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool update -force -rename -log teamcity.clearcase.update.result
.log
INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool lsstream -long
INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool lshistory -all -since 27-March-2008.16:18:41 -fmt %u#--#%Nd
##%En##%m##%Vn##%o##%e##%Nc##%[activity]p###--###\n /opt/install/cc_views/build/CI_VOB
INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool lsvtree -obs -all /opt/install/cc_views/build/CI_VOB
INFO - jetbrains.buildServer.VCS - ClearCase executing cleartool quit
WARN - jetbrains.buildServer.VCS - Error occured in test connection
jetbrains.buildServer.vcs.VcsException: Cannot get version in view '/opt/install/cc_views/build/CI_VOB' for this directory
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.testConnection(ClearCaseConnection.java:27)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.testConnection(ClearCaseSupport.java:103)
at jetbrains.buildServer.controllers.admin.projects.EditVcsRootsController.doPost(EditVcsRootsController.java:79)
at jetbrains.buildServer.controllers.BaseFormXmlController$1.handleRequest(BaseFormXmlController.java:2)
at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(AjaxRequestProcessor.java:15)
at jetbrains.buildServer.controllers.BaseFormXmlController.doHandle(BaseFormXmlController.java:0)
at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:38)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:4)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)

0

in practice, you should declare as VCS root a directory that contains your src directory.
What is the content of CI_VOB ?

0

$ cd /opt/install/cc_views/build/CI_VOB/Wiz_CMP/SmartWizard/
$ ls -la
total 72
drwx------ 10 svn cc_users 4096 Mar 27 14:15 .
drwx------ 3 svn cc_users 4096 Mar 14 13:41 ..
-rrr-- 1 svn cc_users 47 Mar 27 14:15 build_clean_eclipse.bat
-rrr-- 1 svn cc_users 54 Mar 27 14:15 build_clean_eclipse_offline.bat
-rrr-- 1 svn cc_users 74 Mar 27 14:14 build_clean_eclipse_skiptest.bat
-rrr-- 1 svn cc_users 75 Mar 27 14:14 build_clean_eclipse_skiptest_offline.bat
-rrr-- 1 svn cc_users 31 Mar 27 14:15 build_dev_clean.bat
-rrr-- 1 svn cc_users 70 Mar 27 14:14 build_eclipse_skiptest.bat
-rrr-- 1 svn cc_users 70 Mar 27 14:14 build_eclipse_skiptest_offline.bat
-rrr-- 1 svn cc_users 2533 Mar 27 14:15 pom.xml
drwx------ 3 svn cc_users 4096 Mar 27 14:14 promo-mgr
drwx------ 3 svn cc_users 4096 Mar 27 14:14 smartwizard-config
drwx------ 2 svn cc_users 4096 Mar 27 14:14 smartwizard-ear
drwx------ 3 svn cc_users 4096 Mar 27 14:14 smartwizard-ejbs
drwx------ 3 svn cc_users 4096 Mar 27 14:14 smartwizard-mgt
drwx------ 3 svn cc_users 4096 Mar 27 14:14 smartwizard-servlets
drwx------ 3 svn cc_users 4096 Mar 27 14:14 smartwizard-web-ui
drwx------ 3 svn cc_users 4096 Mar 27 14:15 utils

0

Have you tried to declare cd /opt/install/cc_views/build/CI_VOB/Wiz_CMP/SmartWizard/ as CVS root ?

0

I get the same error as with /opt/install/cc_views/build/CI_VOB/ and the same when I try /opt/install/cc_views/build/CI_VOB/Wiz_CMP/
The log look the same too

0

Hello,

I maybe wrong but can it be a file access problem? Does the user under which TeamCity server is running has necessary rights to list files in these directories?

--
Pavel Sher

0

Hi Pavel

It is the same user.

0

Hello,
what TeamCity server version do you use? The problem should be fixed in TeamCity 3.1

0

I was having this issue on a windows installation attempting to integrate with ClearCase. I am running TeamCity 3.1 and I think a combination of the comments in this thread helped resolve my issue. For my view path I had to include the directory containing the src folder (example: c:/view//]]>). The other thing I did was update the account that the two services run under to my LAN account vs. local system. Both of these changes produced a successful connection test.

0

Hi Andy,

Could you pls share your experience about VCS configuration in the windows? I have tried many times but failed. the exception message same as the first post. thanks.

0

Please sign in to leave a comment.