Import project from MKS to SVN

Eugene1985
Posts: 5
Joined: Fri May 27, 2011 9:54 am

Import project from MKS to SVN

Postby Eugene1985 » Mon May 30, 2011 7:46 am

Hi Team,

I am looking forward to perform the data import on projects from MKS to SVN. \

Background: SVN (version 1.6.16), MKS Integrity Client 2006, Windows XP ver. 2002 SP3 (Bit 32).

Please refer to config.properties file setting on MKS and SVN credentials: 'config.properties'

Code: Select all

--------------------------------------------------------------------------------------------------------------------------------------
srcprovider=mks
....
#######################################################################################
svnadmin.executable=svnadmin.exe
svnadmin.repository_path=http://svn.pxl.int:8080/svn/Testing/
svnadmin.parent_dir=.
svnadmin.tempdir=c:/temp/local
svnclient.executable=svn.exe
svnadmin.verbose_exec=yes
#svnadmin.import_timeout=1800000

svnadmin.path_not_exist_signature=non-existent in that revision
#svnadmin.path_not_exist_signature=existiert nicht in dieser Revision
.....
#################################################################################
########################## MKS PROVIDER CONFIGURATION ###########################
#################################################################################
mks.class=org.polarion.svnimporter.mksprovider.MksProvider
mks.executable=C:/Program Files/MKS/IntegrityClient/bin/si.exe
mks.project=C:/MKS/project.pj
mks.log.dateformat=MMM dd, yyyy - hh:mm aa
mks.log.datelocale=en
mks.log.encoding=ibm866
mks.tempdir=c:/temp/local
mks.verbose_exec=yes
mks.tag.option=label_with_number
mks.orphan.branches=no
mks.orphan.prefix=orphan
mks.exec.limit=0
mks.exec.continue=no
mks.root.dir=
mks.no.split.branch.on.delete=
--------------------------------------------------------------------------------------------------------------------------------------


Problem: after starting the import process - Run svnimporter: > 'run.bat full config.properties' MKS application is being
started and and connect to RC server (it can be seen in 'svnimport.log' file) and after that no action happens - question,
what can it be the problem???

Please refer to 'svnimport.log' file extract:

Code: Select all

--------------------------------------------------------------------------------------------------------------------------------------
23:27:41,080 [main]  INFO MainConfig:84 - ****************************************************************************
23:27:41,080 [main]  INFO MainConfig:84 - *** Global options ***
23:27:41,080 [main]  INFO MainConfig:84 - Mode = create full dump
23:27:41,080 [main]  INFO MainConfig:84 - Import dump into svn = "true"
23:27:41,080 [main]  INFO MainConfig:84 - Import dump only if svn repository exist = "true"
23:27:41,080 [main]  INFO MainConfig:84 - Full dump path = "full_dump_%date%.txt"
23:27:41,080 [main]  INFO MainConfig:84 - Incremental dump path = "incr_dump_%date%.txt"
23:27:41,080 [main]  INFO MainConfig:84 - Incremental history path = "incr_history.txt"
23:27:41,080 [main]  INFO MainConfig:84 - Save files list to = "files_20110526_232741.txt"
23:27:41,080 [main]  INFO MainConfig:84 - Source provider's class = "org.polarion.svnimporter.mksprovider.MksProvider"
23:27:41,080 [main]  INFO MainConfig:84 - Size limit for dump files (in MB): 400
23:27:41,080 [main]  INFO MksConfig:84 - *** Mks provider configuration ***
23:27:41,080 [main]  INFO MksConfig:84 - executable = "C:/Program Files/MKS/IntegrityClient/bin/si.exe"
23:27:41,080 [main]  INFO MksConfig:84 - projectPath = "C:/MKS/project.pj"
23:27:41,080 [main]  INFO MksConfig:84 - temp dir  = "c:\temp\local\mks.tempdir"
23:27:41,080 [main]  INFO MksConfig:84 - log date format = "MMM dd, yyyy - hh:mm aa"
23:27:41,080 [main]  INFO MksConfig:84 - log date locale = "en"
23:27:41,080 [main]  INFO MksConfig:84 - log encoding = "ibm866"
23:27:41,096 [main]  INFO MksConfig:84 - verbose exec = "true"
23:27:41,096 [main]  INFO ProviderConfig:84 - svnimporter_user_name = "SvnImporter"
23:27:41,096 [main]  INFO ProviderConfig:84 - only_trunk = "false"
23:27:41,096 [main]  INFO ProviderConfig:84 - trunk_path = "trunk"
23:27:41,096 [main]  INFO ProviderConfig:84 - branches_path = "branches"
23:27:41,096 [main]  INFO ProviderConfig:84 - tags_path = "tags"
23:27:41,096 [main]  INFO ProviderConfig:84 - use_only_last_revision_content = "false"
23:27:41,096 [main]  INFO ProviderConfig:84 - file_description_property_key = "null"
23:27:41,096 [main]  INFO ProviderConfig:84 - use_file_copy = "false"
23:27:41,096 [main]  INFO SvnAdminConfig:84 - *** SvnAdmin configuration ***
23:27:41,096 [main]  INFO SvnAdminConfig:84 - svnadmin executable = "svnadmin.exe"
23:27:41,096 [main]  INFO SvnAdminConfig:84 - svn executable = "svn.exe"
23:27:41,096 [main]  INFO SvnAdminConfig:84 - repositoryPath = "http:\svn.pxl.int:8080\svn\Testing"
23:27:41,096 [main]  INFO SvnAdminConfig:84 - parent dir = "."
23:27:41,096 [main]  INFO SvnAdminConfig:84 - temp dir = "c:\temp\local\svnadmin.tempdir"
23:27:41,096 [main]  INFO SvnAdminConfig:84 - verbose exec = "true"
23:27:41,096 [main]  INFO SvnAdminConfig:84 - path_not_exist signature = "non-existent in that revision"
23:27:41,096 [main]  INFO MainConfig:84 - ****************************************************************************
23:27:41,096 [main]  INFO historyLogger:84 - **********************************************************************
23:27:41,096 [main]  INFO historyLogger:84 - date: May 26, 2011 11:27:41 PM
23:27:41,096 [main]  INFO historyLogger:84 - mode: create full dump
23:27:41,096 [main]  INFO historyLogger:84 - src provider: class org.polarion.svnimporter.mksprovider.MksProvider
23:27:41,096 [main]  INFO historyLogger:84 - creating full svn model...
23:27:41,096 [main]  INFO MksProvider:84 - Shutting down MKS client
23:27:53,831 [stderr]  INFO Exec:84 - Waiting for commands to complete ...
23:27:53,831 [main] DEBUG Exec:80 - Process exit value: 0
23:27:55,862 [main] DEBUG MksProvider:80 - MKS Exec count:0  Limit:0
23:27:55,862 [main]  INFO Exec:84 - exec C:/Program Files/MKS/IntegrityClient/bin/si.exe viewprojecthistory -P C:/MKS/project.pj --fields=revision,author,date,labels,description
23:28:25,893 [stderr]  INFO Exec:84 - Connecting to de-ber-ap500:7001 ...
--------------------------------------------------------------------------------------------------------------------------------------


Please guide me through what should be done to perform the import.

Thanks for advice!
Kind regards,
Evgen.

kencorbin
Posts: 197
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Import project from MKS to SVN

Postby kencorbin » Tue Jul 05, 2011 5:19 pm

It may be waiting for some authorization information???

The log tells what svnimporter was trying to do, namely
C:/Program Files/MKS/IntegrityClient/bin/si.exe viewprojecthistory -P C:/MKS/project.pj --fields=revision,author,date,labels,description

I would try entering that command from a command shell and see what happens.

The svnimporter does expect a lot of setup information has already been provided. Stuff that would be done automatically if you ever run the GUI MKS client on this account. But if you haven't done that, all bets are off.

Good luck,
-Ken

Eugene1985
Posts: 5
Joined: Fri May 27, 2011 9:54 am

Re: Import project from MKS to SVN

Postby Eugene1985 » Tue Jul 05, 2011 6:05 pm

Hello Ken,

First thanks for your reply. I got some progress here - I did as you adviced:

Code: Select all

C:\Program Files\MKS\IntegrityClient\bin>si.exe viewprojecthistory -P C:/MKS/pro
ject.pj --fields=revision,author,date,labels,description

After the run of this command I got able to login under my account - however got this response:

Code: Select all

Connecting to de-ber-ap500:7001 ...
Enter password for LazoreE on de-ber-ap500:7001:
Connecting to de-ber-ap500:7001 as LazoreE ...
*** The project C:/MKS/project.pj could not be located on the server de-ber-ap50
0:7001: The project file c:/MKS/project.pj is not registered with the current se
rver.

And I got stucked, can you advice me what next should be done?
I have made some investigations and found out that such issue has been already discussed:
http://forums.polarion.com/viewtopic.php?f=4&t=10684&p=14539&hilit=not+registered#p14539
According to it's description I have added 2 properties to config.properties file:

Code: Select all

mks.username=<username>
mks.password=<network_password>

and updated property (as in production I am going to Import very large projects):

Code: Select all

mks.exec.limit=10

However I failed to do on this updated config.properties file too. I wonder, if there is need to perform an update on MksProvider.jar,
and if yes - then how to do this (cause actually I not familiar to work on *.jar file)?

Thank you for your help!
Kind regards,
Evgen.

kencorbin
Posts: 197
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Import project from MKS to SVN

Postby kencorbin » Thu Jul 14, 2011 4:29 am

You have to set the mks.project property to the MKS project that you want to migrate. You have it set to C:/MKS/project.pj and the MKS server is saying that that project is registered with it. You need to figure out what the target MKS project is called, the GUI interface should tell you that, and update the config.properties file with the correct project name.

Eugene1985
Posts: 5
Joined: Fri May 27, 2011 9:54 am

Re: Import project from MKS to SVN

Postby Eugene1985 » Tue Jul 19, 2011 3:22 pm

Hello Ken,

Thanks for a hint... It looks like I found something new here:
- I have checked for (project.pj) file location from server side, it stored on this link: 'C:/Projects/Testing/project.pj'. So as the result
I was able to get a callback from server:

Code: Select all

C:\Program Files\MKS\IntegrityClient\bin>si.exe viewprojecthistory -P C:/Project
s/Testing/project.pj --fields=revision,author,date,labels,description
Connecting to de-ber-ap500:7001 ...
Enter password for LazoreE on de-ber-ap500:7001:
Connecting to de-ber-ap500:7001 as LazoreE ...
c:/Projects/Testing/project.pj
1.2     Lazorenko, Evgen (LazoreE)      May 10, 2011 7:46:56 PM         first ch
eckpoint
1.1     Lazorenko, Evgen (LazoreE)      Apr 15, 2011 6:41:12 PM

After that I made an update on 'config.properties' file (as you have mentioned before):

Code: Select all

mks.class=org.polarion.svnimporter.mksprovider.MksProvider
mks.executable=C:/Program Files/MKS/IntegrityClient/bin/si.exe
mks.project=C:/Projects/Testing/project.pj
mks.log.dateformat=MMM dd, yyyy - hh:mm aa
mks.log.datelocale=en
mks.log.encoding=ibm866
mks.tempdir=c:/temp/local
mks.verbose_exec=yes
mks.tag.option=label_with_number
mks.orphan.branches=no
mks.orphan.prefix=orphan
mks.exec.limit=10
mks.exec.continue=no
mks.root.dir=C:/MKS/dump
mks.no.split.branch.on.delete=

However, when I run the utility on updated configuration - it still does not start the import as it does not login's on server (as a reference you may have a look on log file in my first post). My question, is there is a need to make some additional update on 'config.properties' file record?

Code: Select all

mks.project=C:/Projects/Testing/project.pj

Thanks!
Kind regards,
Evgen.

kencorbin
Posts: 197
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Import project from MKS to SVN

Postby kencorbin » Tue Aug 09, 2011 11:09 pm

It is probably still an authorization problem. Try logging on as you do when you run the migration and manually run one of the si commands. Something like

si projectinfo -P C:/Projects/Testing/project.p

If that works, the migration should be able to access the server project info. If it doesn't, you have to figure out why. My guess is that it will prompt you to enter a MKS account and password the first time you run it. This information is cached so you only have to enter it once. Once the client knows what account/password you are trying to use, my guess is everything will run.

Good luck,
-Ken

Eugene1985
Posts: 5
Joined: Fri May 27, 2011 9:54 am

Re: Import project from MKS to SVN

Postby Eugene1985 » Thu Aug 18, 2011 11:39 am

Hi Ken,
Thanks for your reply! I have successfully created a dump file from MKS - as later I found out the issues were based on auto- authorization to MKS and the second one was based on DATE character format that is retrived from system.
But I got another issue now: how to move extracted data to SVN repository?
The most difficult moment is that MKS ver.2006 is set on a platform Windows Server 2003 and SVN on UNIX platform - and it is that discrepancy that does not provides us a chanse to complete the import. The update that was done on configue.properties file doesn't gives us needed result, so maybe you guide me what was done wrong. From my side I suspect that problem is hidden on 'svnadmin.repository_path', please have a look to this extract:

Code: Select all

[quote]svnadmin.executable=svnadmin
svnadmin.repository_path=http://svn.pxl.int:8080/test/Testing/
svnadmin.parent_dir=.
svnadmin.tempdir=c:/temp/local
svnclient.executable=svn
svnadmin.verbose_exec=yes
#svnadmin.import_timeout=1800000

svnadmin.path_not_exist_signature=non-existent in that revision
#svnadmin.path_not_exist_signature=existiert nicht in dieser Revision[/quote]

Let me know if anything else needed. Thanks for a hint!
KInd regards,
Evgen.

Eugene1985
Posts: 5
Joined: Fri May 27, 2011 9:54 am

Re: Import project from MKS to SVN

Postby Eugene1985 » Thu Sep 08, 2011 2:10 pm

Hi Guys,
Any news on my last post?
Thanks!
Kind regards,
Evgen.

kencorbin
Posts: 197
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Import project from MKS to SVN

Postby kencorbin » Wed Sep 21, 2011 8:01 pm

That's actually an easy problem. You tell svnimporter to not load the dump files. Instead they are zipped up and move to the target system where they can be unzipped and manually loaded into your subversion archive. You use the "svnadmin load" subcommand to do this. The target project is the first command parameter. Redirect stdin to the dump file and stdout to a log file.

Good luck,
-Ken


Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: Google [Bot] and 7 guests