It's all about the answers!

Ask a question

RQM Copy Utility -- ERROR com.ibm.rqm.ct.CopyUtil: RestException executing: PUT Lab Resource, RC: 400, message: Error 400: SRVE0295E: Error reported: 400


Mallikarjuna Kandala (106416) | asked Jun 16 '20, 9:14 a.m.
edited Jun 16 '20, 9:48 a.m.

 We are trying to use the RQM Copy Utility using below command:
---
java.exe -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" -jar RQMCopyUtility.jar -s="https://jazz.rchland.ibm.com/qm/web/console/System%20Test%20(Quality%20Management)" -d="https://jazzt.rchland.ibm.com:9443/jazz/web/console/HST%20Sandbox" -us=xx@in.ibm.com" rel="noopener">@in.ibm.com -pws="xxxx" -a=labresource

We get the below error :

10 Jun 2020 10:45:21,627-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Attempting to create protocol context using system property: TLSv1.2
10 Jun 2020 10:45:29,791-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Starting processing of artifact type: labresource
10 Jun 2020 10:45:29,806-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: labresource
10 Jun 2020 10:45:40,048-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Done reading feed for artifact type: labresource
10 Jun 2020 10:45:40,058-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Starting: labresource urn:com.ibm.rqm:labresource:1
10 Jun 2020 10:45:41,545-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 0
10 Jun 2020 10:45:44,953-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 1
10 Jun 2020 10:45:47,953-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: RestException executing: PUT Lab Resource, RC: 400, message: Error 400: SRVE0295E: Error reported: 400
10 Jun 2020 10:45:47,955-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: General REST Exception: RestException executing: PUT Lab Resource, RC: 400, message: Error 400: SRVE0295E: Error reported: 400
10 Jun 2020 10:45:47,958-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: FAILURE!
10 Jun 2020 10:45:47,962-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.
10 Jun 2020 10:45:48,097-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Rational Quality Manager server.

On the target, only the below permissions are not given:

Save Project Execution Variables
Save Attachment
Save Execution Schedule Results
Save Values of Project Execution Variables

PLease suggest.


Comments
Mallikarjuna Kandala commented Jul 07 '20, 3:07 a.m.
  1. Is there is anyway to speed up the process of copying ? In our case, both source and destination servers are in same US Lab but its still taking days to complete the copy process.
  2. Is it possible to delete the already copied artifacts and start from scratch again ?
  3. If we don't use the -c parameter, then will it copy everything again and create duplicate artifacts ?

 

2 answers



permanent link
Brett Bohnn (9311428) | answered Jun 16 '20, 2:15 p.m.

 Hi,


First issue to address is the source/destination URLs are incorrect  (-s and -d). They should be REST style URLs like this:


It looks like you may have the project aliases correct but confirm but checking the project feed:

Also I am not sure what this is:
 rel="noopener">@in.ibm.com -pws="xxxx" 

You specify the source and destination user/password as follows:
-us, -usernameSource=<username>
The username for a valid user in the Project Area of the source server.
-pws, -passwordSource=<password>
The password for usernameSource in the Project Area of the source server.
-ud, -usernameDestination=<username>
The username for a valid user in the Project Area of the destination server. If no destination username is specified then usernameSource will be used.
-pwd, -passwordDestination=<password>
The password for usernameDestination in the Project Area of the destination server. If no destination password is specified then passwordSource will be used.

Thanks, Brett


Comments
Mallikarjuna Kandala commented Jul 07 '20, 3:04 a.m.

The below command worked.. but we are seeing many warnings..

java -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" -jar RQMCopyUtility.jar -s="https://jazz-source.xxx.ibm.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects/System+Test+%28Quality+Management%29" -d="https://jazz-destination.xxx.ibm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/projects/HST+Sandbox" -us=w3ID@xx.ibm.com -pws=xxxxxxxxxx  -l=importlog-July02.log -pl=progressLog_July02.txt -c=progressLog_June24.txt & 


permanent link
Brett Bohnn (9311428) | answered Jun 16 '20, 2:54 p.m.

IF you have problems after correcting the source and destination URLs, which are definitely incorrect, you might try copying individual lab resources as a test, rather than copying all with -a


You can do that with -id, e.g. -id=urn:com.ibm.rqm:labresource:3

You can get the individual lab resources from the lab resources feed:


Comments
Mallikarjuna Kandala commented Jul 07 '20, 3:05 a.m.

 Hi Brett,
I see lot of warnings, please guide to address those:


03 Jul 2020 22:14:17,760-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Ignoring artifact of type: configuration with id: TE88520
03 Jul 2020 22:14:17,760-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Finishing: configuration TE88520
03 Jul 2020 22:14:17,760-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Starting: configuration TE88521
03 Jul 2020 22:14:17,788-0500 [main]  WARN com.ibm.rqm.ct.CopyUtil: configuration TE88521 cannot be copied since the referenced labresourceattribute Machine in property configurationParts/configurationPart/type does not exist in the destination catalog.  To resolve, create the referenced labresourceattribute Machine in the destination catalog and recopy configuration TE88521.

Thank you. 

Your answer


Register or to post your answer.