It's all about the answers!

Ask a question

Neeed help with RQM utility tool version 6.0


sasi davuluru (135) | asked Sep 25 '17, 9:56 a.m.

Hi I am trying to do a RQM project copy to new server. I am using the RQM utility 6.0 from the RQM extra software for it. I followed the instructions and I downloaded the software and ran the command in linux system.

 java -jar RQMCopyUtility.jar -s=https://serverurl/jazz/admin#action=com.ibm.team.process. editProjectArea&itemId=_XCYIScOmEeKmzJJ53fVTNg/resources/projectname -us=sxxxxxxx@xx.xxx.com -pws=<passwd> -d=https://server: xxxxx/qm/web#action=jazz.viewPage&id=com.ibm.team.process. projectAreaList/resources/projectname -ud=sxxxxxx@xx.xxx.com - pwd=<passwd>

I am getting the error Command not found.
 com.ibm.rqm.ct.util.Logger logError SEVERE: java.lang.IllegalArgumentException: usernameSource is required for this command Disconnecting from the source IBM Rational Quality Manager server.

I checked the username, it is correct

Any suggestions

Thanks

Sasi-


Comments
Donald Nong commented Oct 17 '17, 2:44 a.m.

The reason for the error is not your username, but the syntax of your command, as Don suggested. Your command contains "&", which breaks the command into several pieces and Linux tries to run several incomplete commands, which leads to "command not found" and RQMCopyUtility missing some parameters.

Accepted answer


permanent link
Don Yang (7.7k21114139) | answered Sep 26 '17, 8:44 p.m.

Hi, Sasi

According the readme, Source and Destination URL seem to be wrong.

-sourceURL=<URL>
    The "source" of the copy: a fully specified RQM server URL that includes the full services URL and Project Area.
    The URL should be of the pattern: https://<server>:<port>/<context>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<Project Name>
    Note: you must use the project alias name if you have renamed your project area. The project alias name is the original name of the project.  

you may just copy the URL from the web browser in your testing which does not match what is required.
it should be something like:

https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29

To check if the project alias is correct, you can run
https://<server>:<port>/<context>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projects
on the web to find it.

The same applies to destination URL. I hope this helps.



sasi davuluru selected this answer as the correct answer

Comments
sasi davuluru commented Nov 08 '17, 11:19 a.m.

Thank you Don for the reply. I have corrected the url and proceed to the next step, but now I am getting error : SEVERE: RestException executing: PUT, RC: 400, message: Error 400: SRVE0295E: Error reported: 400

I checked the jazz forum and found  http://www-01.ibm.com/support/docview.wss?uid=swg21506605.

I have the alias name in my command java -jar RQMCopyUtility.jar -s=https://xxxx/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectaliasname  -us=xxx -pws=xxxx -d=https:/xxxxx/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectaliasname -ud=xxxx -pwd=xxxxx -a=testcase,testsuite,testscript,keyword -f -l=importlog.txt

Error :
Oct 23, 2017 1:59:01 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Finishing: template testcase/com.ibm.rqm.planning.templates.testcase.default
Oct 23, 2017 1:59:07 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: PUT, RC: 400, message: Error 400: SRVE0295E: Error reported: 400

Can you please advise

Thank you

Sasi-


Paul Slauenwhite commented Nov 10 '17, 11:25 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Please post the entire RQM Copy Utility log file.

2 other answers



permanent link
sasi davuluru (135) | answered Nov 10 '17, 11:41 a.m.

Hi Paul,

This is the command i did : java -jar -Xmx8g RQMCopyUtility.jar -s=https://sourceurl/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SVT_DevopsPlatform  -us=userid -pws=xxx -d=https://destination url/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SVT_DevopsPlatform -ud=userid -pwd=xxx -f -l=importlog.txt

I have rerun the utility and here is the new log I am seeing. This keeps repeating, for each attachment and the project has around 10K attachments and run time like more than 12 hours.

Nov 10, 2017 11:06:00 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Attempting to create SSL_TLS context
Nov 10, 2017 11:06:03 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting processing of artifact type: attachment
Nov 10, 2017 11:06:03 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Reading feed for artifact type: attachment
Nov 10, 2017 11:08:37 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Done reading feed for artifact type: attachment
Nov 10, 2017 11:08:37 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: attachment urn:com.ibm.rqm:attachment:1
Nov 10, 2017 11:08:37 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
Nov 10, 2017 11:08:41 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
Nov 10, 2017 11:08:44 AM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: PUT File Artifact, RC: 400, message: Error 400: SRVE0295E: Error reported: 400

Nov 10, 2017 11:08:44 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Finishing: attachment urn:com.ibm.rqm:attachment:1
Nov 10, 2017 11:08:44 AM com.ibm.rqm.ct.util.Logger logInfo


Comments
sasi davuluru commented Nov 10 '17, 11:43 a.m.

While this is going, shoul dI be seeing the project getting created on the destination server, because I dont see it on the destiantion server.

Please advise

Thank you

Sasi-


Paul Slauenwhite commented Nov 10 '17, 11:58 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

The destination project (SVT_DevopsPlatform) MUST exist before running the command.


sasi davuluru commented Nov 10 '17, 12:42 p.m.

Hi Paul,

I have created the project on the destination server and now it has started copying the artifact attachment, I guess it will go thru all now. Will update if I get any errors

Thank you for all the help, really appreciate it.

Regards

Sasi-


sasi davuluru commented Nov 20 '17, 10:28 a.m.

Hi Paul,

I have been copying the RQM for last 5 days, it is running with no errors, in the log it is showing Startign the attachment, Finishing attachment but i am little worried, I see currently it is showing attachments more than 184K and still going, but on the destination project I dont see much of the data,

Am I missing something here?

Sasi-
 


Paul Slauenwhite commented Nov 20 '17, 3:09 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Sasi, unless you have RQM 6.0.5+, you cannot see a list of all the attachments in the system in the web UI.  However, you can use the RQM Reportable REST API to GET the feed of attachments from the destination project to determine if new attachments are being created.  Note, https://jazz.net/wiki/bin/view/Main/RqmApi#ResourcesFootnote6.


sasi davuluru commented Nov 21 '17, 12:55 p.m.

Hi Paul,

Thank you for the information. I have a qq, the source project from which I was copying had a manitenance this morning and the copy stopped. So I then resumed the copying again I added java -jar -Xmx8g RQMCopyUtility.jar -s=https://sourceurl/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SVT_DevopsPlatform  -us=userid -pws=xxx -d=https://destination url/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SVT_DevopsPlatform -ud=userid -pwd=xxx -f -l=importlog.txt -pl=svtlog2.txt -c=svtlog.txt.

Now on the run it showing the attachment number from 1 on the new progress log.

How do we know if it resumed from previous one or doing a fresh copy?

Regards

Sasi-


Paul Slauenwhite commented Nov 21 '17, 2:58 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Check svtlog.txt (original progress log) to see the resources that have already been copied.  If the second run of the RQM Copy Utility is recopying those resources, it's appears that the original progress log is being ignored.


sasi davuluru commented Nov 29 '17, 4:57 p.m.

Hi Paul,

The copy ran into a error and it is showing around 260K attachments for the project, but the size of the project is small it has around 100 test cases and 500-600 test excecution records and 20 test plans, is there something I am doing wrong, Please advise.
 FOr the last copy because of network connection error it stopped, and the project is not getting resumed it is starting the copy from start

Regards

Sasi-


Paul Slauenwhite commented Nov 30 '17, 6:58 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Sasi, it's difficult to comment without more detail.


sasi davuluru commented Nov 30 '17, 10:23 a.m.

Sure, is there a way I can share the log file here, I see here it has limit. And there is an issue with the resume the copy too, when I run the resume it is starting from first.

Please let me know for any information you would need,

Thank you

Regards
Sasi-


Paul Slauenwhite commented Nov 30 '17, 10:26 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Open a RQM defect and attach the logs.


sasi davuluru commented Nov 30 '17, 10:44 a.m.

A qq by open a RQM defect, should I do it by opening a new service request? Last time I opened a ticket, got reply the RQM utility tool is not supported


Paul Slauenwhite commented Nov 30 '17, 11:01 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

sasi davuluru commented Nov 30 '17, 11:48 a.m.

Hi Paul, I opened a defect in RQM the workitem id is 167913. I attached the import log and svt log, svtlog2 for reference

Thank you

Sasi-


sasi davuluru commented Dec 04 '17, 3:07 p.m.

Hi Paul,

Any update on the workitem id 167913

Regards
Sasi-

showing 5 of 15 show 10 more comments

permanent link
Paul Slauenwhite (8.4k12) | answered Dec 05 '17, 7:30 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Sasi, please request an update in the defect.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.