It's all about the answers!

Ask a question

RQM Copy Utility: getting error when copyng full artifacts


Daniel Kalinski (1378) | asked Oct 09 '14, 4:46 p.m.
Hello I am trying to copy all artifacts from one PA in server1 to another PA of server2.
Both are RQM version 4.0.6

So these are the parameters I used to run the RQM Copy utility tool:
-s="https://server1:9445/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/GM GCC - OnStar Info 3.0 (Quality Management)" -us=admin -pws=admin -d="https://server2:9447/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/GM GCC - OnStar Info 3.0" -l=importlog.txt

And this is the console output:

oct 09, 2014 4:43:54 PM com.ibm.rqm.ct.util.Logger logInfo
INFORMACIÓN: Attempting to create SSL_TLS context
oct 09, 2014 4:43:59 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFORMACIÓN: Redirect requested but followRedirects is disabled
oct 09, 2014 4:44:00 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFORMACIÓN: Redirect requested but followRedirects is disabled
oct 09, 2014 4:44:01 PM com.ibm.rqm.ct.util.Logger logInfo
INFORMACIÓN: Starting processing of artifact type: attachment
oct 09, 2014 4:44:01 PM com.ibm.rqm.ct.util.Logger logInfo
INFORMACIÓN: Reading feed for artifact type: attachment
oct 09, 2014 4:44:02 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
AVISO: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
oct 09, 2014 4:44:03 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
AVISO: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
oct 09, 2014 4:44:03 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
AVISO: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
oct 09, 2014 4:44:03 PM com.ibm.rqm.ct.util.Logger logInfo
INFORMACIÓN: Done reading feed for artifact type: attachment
oct 09, 2014 4:44:03 PM com.ibm.rqm.ct.util.Logger logInfo
INFORMACIÓN: Starting: attachment urn:com.ibm.rqm:attachment:1
oct 09, 2014 4:44:08 PM com.ibm.rqm.ct.util.Logger logInfo
INFORMACIÓN: Error received: 403, retry #: 0
oct 09, 2014 4:44:11 PM com.ibm.rqm.ct.util.Logger logInfo
INFORMACIÓN: Error received: 403, retry #: 1
oct 09, 2014 4:44:14 PM com.ibm.rqm.ct.util.Logger logError
GRAVE: RestException executing: PUT File Artifact, RC: 403, message: <html><head><title>Apache Tomcat/7.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 403 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>Access to the specified resource has been forbidden.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.32</h3></body></html>
Disconnecting from the source IBM Rational Quality Manager server.
oct 09, 2014 4:44:14 PM com.ibm.rqm.ct.util.Logger logError
GRAVE: General REST Exception: RestException executing: PUT File Artifact, RC: 403, message: <html><head><title>Apache Tomcat/7.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 403 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>Access to the specified resource has been forbidden.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.32</h3></body></html>
oct 09, 2014 4:44:14 PM com.ibm.rqm.ct.util.Logger logError
GRAVE: FAILURE!
Disconnecting from the destination IBM Rational Quality Manager server.

Please, let me know what is the problem and how I can fix it.
Best Regards

2 answers



permanent link
Donald Nong (14.5k414) | answered Oct 09 '14, 8:59 p.m.
You did not include "-ud" and "-pwd" in your command so I assume you use the exact same username and password for both the source project area and the target project area, correct? Otherwise, you need to specify them for the target. From the log file, I can see that the error occurred when the tool trying to copy the first resource (attachment) and it failed due to an HTTP 403 error on a PUT method. To get further details about the error, you need to check the qm.log file on the target server.

permanent link
Don Yang (7.7k21109138) | answered Oct 14 '14, 6:35 a.m.
If the conditions of running copy utility mentioned in the readme file are met, it is likely that the user for target server 2 does not have some required permissions to do the PUT commands. Suppose the user admin(as Donald suggests, you need to have the same admin user in target server as you did not specify it in the command) is assigned some roles, the quick way is to assign all permissions to role "everyone" for this admin user and run the command again to see if the error is gone. You can lift the permissions from everyone role later on.

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.