move to another server (cvs checkout problem)

Hello,
Today I tried to move our corporate teamcity server to more powefull hardware to improove performance. Everything was fine but as a result I got following error :

build: Configs, T nightly build: Grids, T nightly build: Scripts, T build: Sets]
jetbrains.buildServer.vcs.VcsException: Error collecting changes for VCS root 'cvs: :pserver:teamcity@cvs.domain:/var/repository modulname' #29
java.lang.NoClassDefFoundError: Could not initialize class com.intellij.cvsSupport2.connections.CvsMethod
        at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:96)
        at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:563)
        at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:61)
        at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:3)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.intellij.cvsSupport2.connections.CvsMethod
        at com.intellij.cvsSupport2.connections.CvsRootParser.extractMethod(CvsRootParser.java:197)
        at com.intellij.cvsSupport2.connections.CvsRootParser.valueOf(CvsRootParser.java:61)
        at com.intellij.cvsSupport2.connections.RootFormatter.createConfiguration(RootFormatter.java:22)
        at jetbrains.buildServer.buildTriggers.vcs.cvs.CvsUtil.getRootData(CvsUtil.java:210)
        at jetbrains.buildServer.buildTriggers.vcs.cvs.CvsSettings.<init>(CvsSettings.java:47)
        at jetbrains.buildServer.buildTriggers.vcs.cvs.CheckoutRulesSettings.<init>(CheckoutRulesSettings.java:29)
        at jetbrains.buildServer.buildTriggers.vcs.cvs.CvsUtil.createCvsSettings(CvsUtil.java:282)
        at jetbrains.buildServer.buildTriggers.vcs.cvs.CvsSupport.collectRawChanges(CvsSupport.java:107)
        at jetbrains.buildServer.buildTriggers.vcs.cvs.CvsSupport.collectBuildChanges(CvsSupport.java:170)
        at jetbrains.buildServer.buildTriggers.vcs.cvs.CvsSupport.collectBuildChanges(CvsSupport.java:88)
        at jetbrains.buildServer.vcs.VcsSupport.collectChanges(VcsSupport.java:50)
        at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges(VcsChangesLoader.java:118)
        at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:202)
        at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChangesForRule(VcsChangesLoader.java:212)
        at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges4CommonCheckoutRule(VcsChangesLoader.java:23)
        at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:139)

Operation system is : Ubuntu x64, jdk /opt/jdk1.6.0_10. cvs package is installed.

Could someone assist me to resolve my cvs issue.


Alexey

10 comments
Comment actions Permalink

It looks like not all parts of TeamCity were copied. Could you please describe how did you install TeamCity on a new server?

0
Comment actions Permalink

Here it is :

1. Move mysql database to another server.
2. Move home directory for teamcity user.
3. Move /opt/teamcity (application server) to new server.

4. Setup application server,mysql database,home directory on new server.

0
Comment actions Permalink

Do you have some plugins in .BuildServer/plugins directory?


0
Comment actions Permalink

no, we I don't have files in this folder on new server as well as on old one.

0
Comment actions Permalink

Is it possible to compare old and new installation directories? Can there be issues with file permissions? Is it possible that not all of the files are available for read by teamcity on the new server?

0
Comment actions Permalink

Pavel, could you please say, where this class (com.intellij.cvsSupport2.connections.CvsMethod) should be, in any jar or somewhere else? I'd like to check whether we had copied it.

0
Comment actions Permalink

On the server it should be in: WEB-INF/plugins/cvs/server/cvs_util.jar

0
Comment actions Permalink

As far as I see we have this jar exectly there. Should path to this jar be set anywhere?
How cab we find, where is the problem? Just compare all directories of our old server and a new one?

0
Comment actions Permalink

Is it possible that there is another cvs_util.jar file in the server installation directory? Or another jar containing this class (however this can be hard to check)?

0
Comment actions Permalink

Problem is resolved. There were no libs libxext6, libxtst6 and libxi6. And there was an error message about this libs, but I missed it firstly. So after installing this libs teamcity server started working correctly.
Thanks for your help!

0

Please sign in to leave a comment.