Page 1 of 1

CVS to SVN Conversion

Posted: Mon Feb 01, 2010 9:48 am
by Anna
Hi

I am trying to migrate the CVS to Subversion and I am getting the following error message. Please look at my Testing 1 and Testing 2 as mentioned below…


Testing 1
---------------

config.properties file

#################################################################################
########################## CVS PROVIDER CONFIGURATION ###########################
#################################################################################

cvs.class=org.polarion.svnimporter.cvsprovider.CvsProvider
cvs.username=<User Name>
cvs.password=<Password>
cvs.hostname=<Server Name>
cvs.repository=/export/home/cvs/cvsroot

# 1) Module name can contains filename nfs/fs10/prod/cvs/cvsrootin tail (ex.: 'test4/dir/file')
# then dump will be built for single file
# 2) If modulename=* (or .) then all modules from the repository will be converted

cvs.modulename=MessagingAggregator


Error Message


04:31:34,933 [main] ERROR CvsUtil:96 - Wrong absoluteFilepath '/nfs/fs10/prod/cvs/cvsroot/MessagingAggregator/AggregatorResources/uat/build/delete_resources.jacl,v': it doesn't start with repositoryPath + module name
04:31:34,933 [main] ERROR CvsProvider:96 - Skip file: /nfs/fs10/prod/cvs/cvsroot/MessagingAggregator/AggregatorResources/uat/build/delete_resources.jacl,v
04:31:34,933 [main] ERROR CvsLogListener:96 - CVS error: cvs rlog: Logging MessagingAggregator/AggregatorResources/uat/resources
04:31:34,949 [main] ERROR CvsUtil:96 - Wrong absoluteFilepath '/nfs/fs10/prod/cvs/cvsroot/MessagingAggregator/AggregatorResources/uat/resources/AggregatorProperties.xml,v': it doesn't start with repositoryPath + module name
04:31:34,949 [main] ERROR CvsProvider:96 - Skip file: /nfs/fs10/prod/cvs/cvsroot/MessagingAggregator/AggregatorResources/uat/resources/AggregatorProperties.xml,v
04:31:35,167 [main] ERROR CvsUtil:96 - Wrong absoluteFilepath '/nfs/fs10/prod/cvs/cvsroot/MessagingAggregator/AggregatorResources/uat/resources/log4j.properties,v': it doesn't start with repositoryPath + module name
04:31:35,167 [main] ERROR CvsProvider:96 - Skip file: /nfs/fs10/prod/cvs/cvsroot/MessagingAggregator/AggregatorResources/uat/resources/log4j.properties,v
04:31:35,167 [main] INFO Model:84 - Summary:
04:31:35,167 [main] INFO Model:84 - Files: 0
04:31:35,167 [main] INFO Model:84 - Revisions: 0
04:31:35,167 [main] INFO Model:84 - Commits: 0
04:31:35,183 [main] INFO CvsProvider:84 - Svn model has been created
04:31:35,183 [main] INFO CvsProvider:84 - total number of revisions in svn model: 0
04:31:35,183 [main] INFO historyLogger:84 - empty svn model - nothing to import
04:31:35,183 [main] INFO historyLogger:84 - successfully finished
04:31:35,183 [main] DEBUG CvsProvider:80 - cleanup
04:31:35,183 [main] DEBUG SvnAdmin:80 - cleanup
04:31:35,183 [main] INFO historyLogger:84 - duration: 3 seconds


Testing 2
------------
config.properties file

#################################################################################
########################## CVS PROVIDER CONFIGURATION ###########################
#################################################################################

cvs.class=org.polarion.svnimporter.cvsprovider.CvsProvider
cvs.username=<User Name>
cvs.password=<Password>
cvs.hostname=<Server Name>
cvs.repository=/ nfs/fs10/prod/cvs/cvsroot

# 1) Module name can contains filename nfs/fs10/prod/cvs/cvsrootin tail (ex.: 'test4/dir/file')
# then dump will be built for single file
# 2) If modulename=* (or .) then all modules from the repository will be converted

cvs.modulename=MessagingAggregator


Error Message


04:33:27,424 [main] INFO historyLogger:84 - mode: create full dump
04:33:27,424 [main] INFO historyLogger:84 - src provider: class org.polarion.svnimporter.cvsprovider.CvsProvider
04:33:27,424 [main] INFO historyLogger:84 - creating full svn model...
04:33:27,424 [main] INFO CvsProvider:84 - build cvs model for module MessagingAggregator
04:33:27,440 [main] DEBUG CvsProvider:80 - Execute command: rlog MessagingAggregator
04:33:28,283 [main] ERROR CvsProvider:96 - failed to exec command 'rlog MessagingAggregator ' : AuthenticationFailed
04:33:28,283 [main] INFO historyLogger:84 - EXCEPTION CAUGHT: org.polarion.svnimporter.cvsprovider.CvsException: failed to exec org.netbeans.lib.cvsclient.command.log.RlogCommand@1d85f79
at org.polarion.svnimporter.cvsprovider.CvsProvider.execCommand(CvsProvider.java:160)
at org.polarion.svnimporter.cvsprovider.CvsProvider.buildCvsModel(CvsProvider.java:133)
at org.polarion.svnimporter.cvsprovider.CvsProvider.buildSvnModel(CvsProvider.java:224)
at org.polarion.svnimporter.main.Main.buildFullSvnModel(Main.java:147)
at org.polarion.svnimporter.main.Main.run(Main.java:82)
at org.polarion.svnimporter.main.Main.main(Main.java:49)
Caused by: org.netbeans.lib.cvsclient.connection.AuthenticationException: AuthenticationFailed
at org.netbeans.lib.cvsclient.connection.PServerConnection.openConnection(PServerConnection.java:209)
at org.netbeans.lib.cvsclient.connection.PServerConnection.open(PServerConnection.java:298)
at org.netbeans.lib.cvsclient.Client.ensureConnection(Client.java:334)
at org.netbeans.lib.cvsclient.command.log.RlogCommand.execute(RlogCommand.java:263)
at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:611)
at org.polarion.svnimporter.cvsprovider.CvsProvider.execCommand(CvsProvider.java:157)
at org.polarion.svnimporter.cvsprovider.CvsProvider.buildCvsModel(CvsProvider.java:133)
at org.polarion.svnimporter.cvsprovider.CvsProvider.buildSvnModel(CvsProvider.java:224)
at org.polarion.svnimporter.main.Main.buildFullSvnModel(Main.java:147)
at org.polarion.svnimporter.main.Main.run(Main.java:82)
at org.polarion.svnimporter.main.Main.main(Main.java:49)

04:33:28,283 [main] DEBUG CvsProvider:80 - cleanup
04:33:28,283 [main] DEBUG SvnAdmin:80 - cleanup
04:33:28,283 [main] INFO historyLogger:84 - duration: 0 seconds

Re: CVS to SVN Conversion

Posted: Sat Feb 06, 2010 10:03 pm
by kencorbin
Hi Anna,

In the first test, we asked CVS to list the files in your specified repository (/export/home/cvs/cvsroot) and it found files that didn't start with that prefix (/nfs/fs10/prod/cvs/cvsroot/MessagingAggregator/AggregatorResources/uat/build/delete_resources.jacl,v). I don't know a whole lot about the CVS API, but my guess is that the path you specified contains a symlink somewhere that redirects to /nfs/fs10/.. and CVS resolved this to an absolute path. So the next to try is specifying the repository path at its "real" location, which looks like what you did in test 2.

Except that test 2 doesn't look like it got that far. It invoked the CVS rlog command with appears to be unhappy with your authentication (user/password) information.

That's about all I can tell you, good luck,
-Ken

Re: CVS to SVN Conversion

Posted: Fri Feb 18, 2011 3:43 pm
by KellySelvidge
So this issue was resolved when you put in the "real path" and proper username and login ?

Re: CVS to SVN Conversion

Posted: Fri Sep 28, 2012 1:01 pm
by randy112
I’m currently having a similar kind of problem, so maybe I can implement, though I’m not optimistic about it. :(

Re: CVS to SVN Conversion

Posted: Fri Mar 09, 2018 10:28 am
by Arynews
So this issue was resolved when you put in the "real path" Ary News and proper username and login ?