Page 1 of 1

mks --password problem

Posted: Tue Sep 05, 2006 2:57 pm
by schoetbi
Hello,
I just tried to import from an mks repository but got this:

16:53:42,227 INFO [stderr] Exec:84 - Cannot ask for user input in batch mode; must use the option --password

What do I have to set here? Is this the password of the svn-repository or is it the mks password. How can I set this? mks.password didn't work.

Thank you,
Tobias

Here the full log:
C:\archive\03_DevelopmentTools\03Versionskontrolle\subversion\svn-importer-1.1-M7>run full config.dat

C:\archive\03_DevelopmentTools\03Versionskontrolle\subversion\svn-importer-1.1-M7>java -jar svnimporter.jar fu
ll config.dat
16:53:42,102 INFO [main] MainConfig:84 - ********************************************************************
********
16:53:42,102 INFO [main] MainConfig:84 - *** Global options ***
16:53:42,102 INFO [main] MainConfig:84 - Mode = create full dump
16:53:42,102 INFO [main] MainConfig:84 - Import dump into svn = "false"
16:53:42,102 INFO [main] MainConfig:84 - Import dump only if svn repository exist = "false"
16:53:42,102 INFO [main] MainConfig:84 - Full dump path = "c:/Temp/full_dump.txt"
16:53:42,102 INFO [main] MainConfig:84 - Incremental dump path = "c:/Temp/inc_dump.txt"
16:53:42,102 INFO [main] MainConfig:84 - Incremental history path = "c:/Temp/incr_hist.txt"
16:53:42,117 INFO [main] MainConfig:84 - Save files list to = "c:/Temp/files_20060905_165342.txt"
16:53:42,117 INFO [main] MainConfig:84 - Source provider's class = "org.polarion.svnimporter.mksprovider.MksP
rovider"
16:53:42,117 INFO [main] MainConfig:84 - Size limit for dump files (in MB): 100
16:53:42,117 INFO [main] MksConfig:84 - *** Mks provider configuration ***
16:53:42,117 INFO [main] MksConfig:84 - executable = "C:/Program Files/MKS2005/IntegrityClient/bin/si.exe"
16:53:42,117 INFO [main] MksConfig:84 - project = "C:/test.pj"
16:53:42,117 INFO [main] MksConfig:84 - temp dir = "c:\temp\mks\mks.tempdir"
16:53:42,117 INFO [main] MksConfig:84 - log date format = "MMM dd, yyyy - hh:mm aa"
16:53:42,117 INFO [main] MksConfig:84 - log date locale = "null"
16:53:42,117 INFO [main] MksConfig:84 - log encoding = "ibm866"
16:53:42,117 INFO [main] MksConfig:84 - verbose exec = "true"
16:53:42,117 INFO [main] ProviderConfig:84 - svnimporter_user_name = ""schoetbi""
16:53:42,117 INFO [main] ProviderConfig:84 - only_trunk = "false"
16:53:42,117 INFO [main] ProviderConfig:84 - trunk_path = "/trunk"
16:53:42,117 INFO [main] ProviderConfig:84 - branches_path = "/branches"
16:53:42,117 INFO [main] ProviderConfig:84 - tags_path = "/tags"
16:53:42,117 INFO [main] ProviderConfig:84 - use_only_last_revision_content = "false"
16:53:42,164 INFO [main] ProviderConfig:84 - file_description_property_key = "null"
16:53:42,164 INFO [main] ProviderConfig:84 - use_file_copy = "false"
16:53:42,164 INFO [main] MainConfig:84 - ********************************************************************
********
16:53:42,164 INFO [main] historyLogger:84 - *****************************************************************
*****
16:53:42,164 INFO [main] historyLogger:84 - date: 05.09.2006 16:53:42
16:53:42,164 INFO [main] historyLogger:84 - mode: create full dump
16:53:42,164 INFO [main] historyLogger:84 - src provider: class org.polarion.svnimporter.mksprovider.MksProvi
der
16:53:42,164 INFO [main] historyLogger:84 - creating full svn model...
16:53:42,164 DEBUG [main] MksProvider:80 - create sandbox
16:53:42,164 INFO [main] Exec:84 - exec C:/Program Files/MKS2005/IntegrityClient/bin/si.exe createsandbox --b
atch -R -P C:/Emsource/ts_software/Rn01/mmi_ps.pj
16:53:42,227 INFO [stderr] Exec:84 - Connecting to DE020146:7001 ...
16:53:42,227 INFO [stderr] Exec:84 - Cannot ask for user input in batch mode; must use the option --password
16:53:42,242 DEBUG [main] Exec:80 - Process exit value: 2
16:53:42,242 INFO [main] historyLogger:84 - EXCEPTION CAUGHT: org.polarion.svnimporter.mksprovider.MksExcepti
on: Process exit code: 2
at org.polarion.svnimporter.mksprovider.MksProvider.executeCommand(MksProvider.java:424)
at org.polarion.svnimporter.mksprovider.MksProvider.createSandbox(MksProvider.java:370)
at org.polarion.svnimporter.mksprovider.MksProvider.buildMksModel(MksProvider.java:172)
at org.polarion.svnimporter.mksprovider.MksProvider.buildSvnModel(MksProvider.java:289)
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)

16:53:42,242 DEBUG [main] MksProvider:80 - cleanup
16:53:42,242 INFO [main] historyLogger:84 - duration: 0 seconds

C:\archive\03_DevelopmentTools\03Versionskontrolle\subversion\svn-importer-1.1-M7>

Posted: Thu Sep 07, 2006 1:08 pm
by jsvazic
The password is referring to the MKS user password. I'm not sure how you can specify this, but it is definitely the MKS password that it requires.

Posted: Tue Sep 12, 2006 6:34 pm
by disruptor108
If you log into MKS before you run the importer everything should work fine

Posted: Mon Nov 20, 2006 8:14 am
by schoetbi
Thanks for the answers!