Question

1
Replies
420
Views
Vamsi.Thatavarthi Member since 2014 35 posts
Hcl Technologies
Posted: May 29, 2018
Last activity: May 31, 2018
Closed

prpcServiceUtils - Export Product from Jenkins - Failed

Hi,

We are trying to export Product RAP (using https://pdn.pega.com/using-prpcserviceutils-and-jenkins-automated-application-deployment/using-prpcserviceutils-and). For one application which has only few rules and instances, export got successful. But for other with more number of rules and instances, it is failing. PFB console output

[EnvInject] - Loading node environment variables. [EnvInject] - Preparing an environment for the build. [EnvInject] - Keeping Jenkins system variables. [EnvInject] - Keeping Jenkins build variables. [EnvInject] - Injecting as environment variables the properties content SystemName=$BUILD_TAG SourcePassword=$password SourceHost=http://localhost:8080 Inject=environment variables to the build process=Properties Content Source=Code Management=None SourceUser=$username [EnvInject] - Variables injected successfully. [EnvInject] - Injecting contributions. Building in workspace /usr/share/tomcat/.jenkins/workspace/CreateRAP [jenkins] $ /opt/apache-ant-1.9.11/bin/ant -file Jenkins-build.xml -DproductVersion=20180529.020523 -DproductName=CodeReview exportprops Buildfile: /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/samples/jenkins/Jenkins-build.xml exportprops: [propertyfile] Creating new property file: /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/jenkins-CreateRAP-25_export.properties BUILD SUCCESSFUL Total time: 0 seconds [CreateRAP] $ /bin/sh -xe /var/cache/tomcat/temp/hudson1556311047954463886.sh + /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/prpcServiceUtils.sh export --connPropFile /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/jenkins-CreateRAP-25_export.properties --artifactsDir /usr/share/tomcat/.jenkins/workspace/CreateRAP --requestTimeOut 900 Buildfile: /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/prpcServiceUtilsWrapper.xml [echo] *** JVM Arguments -XX:MaxHeapSize=1280m -XX:MaxMetaspaceSize=512m *** -init: [echo] ****************************************************************** [echo] Build date : ${pegaBuildDate.value} [echo] Pega7 platform version : ${specificationVersion.value} [echo] ****************************************************************** [delete] Deleting directory /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/generated [mkdir] Created dir: /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/generated [pega:propertyparser] Reading Properties from: /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/prpcServiceUtils.properties [pega:propertyparser] getstatus.jobID= [pega:propertyparser] hotfix.async=true [pega:propertyparser] expose.includeDescendents=true [pega:propertyparser] export.async=true [pega:propertyparser] expose.async=true [pega:propertyparser] expose.excludedClasses= [pega:propertyparser] import.commitRate=100 [pega:propertyparser] export.productName= [pega:propertyparser] export.branchAppContext= [pega:propertyparser] expose.commitRate=100 [pega:propertyparser] import.existingInstances=skip [pega:propertyparser] user.temp.dir=C:/pega_temp [pega:propertyparser] expose.reindex=true [pega:propertyparser] hotfix.operation= [pega:propertyparser] expose.excludeDescendents=true [pega:propertyparser] updateAccessGroup.applicationName= [pega:propertyparser] import.nofailonerror=false [pega:propertyparser] pega.rest.proxy.password=***** [pega:propertyparser] import.codesetVersion=06-01-01 [pega:propertyparser] export.applicationVersion= [pega:propertyparser] pega.rest.proxy.username= [pega:propertyparser] expose.includedClasses= [pega:propertyparser] rollback.action=SystemRollback [pega:propertyparser] pega.rest.server.url=http://<host name>:<port number>/<context>/PRRestService/<tenant url hash> [pega:propertyparser] updateAccessGroup.applicationVersion= [pega:propertyparser] expose.startKey= [pega:propertyparser] expose.reindexType=nonpega [pega:propertyparser] import.codesetName=Customer [pega:propertyparser] manageRestorePoints.restorePointLabel= [pega:propertyparser] import.async=true [pega:propertyparser] pega.rest.password=***** [pega:propertyparser] hotfix.force=false [pega:propertyparser] import.compileLibraries=true [pega:propertyparser] rollback.restorePointName= [pega:propertyparser] import.allowImportWithMissingDependencies=false [pega:propertyparser] export.productVersion= [pega:propertyparser] pega.rest.username= [pega:propertyparser] rollback.async=true [pega:propertyparser] export.branchName= [pega:propertyparser] getstatus.operationName= [pega:propertyparser] expose.endDate= [pega:propertyparser] import.preserveOrder=true [pega:propertyparser] rollback.downloadLogToFile=true [pega:propertyparser] pega.rest.proxy.port= [pega:propertyparser] pega.rest.proxy.workstation= [pega:propertyparser] expose.endKey= [pega:propertyparser] hotfix.dlFilePath= [pega:propertyparser] import.archive.path= [pega:propertyparser] updateAccessGroup.groupList= [pega:propertyparser] manageRestorePoints.restorePointName= [pega:propertyparser] export.archiveName= [pega:propertyparser] import.mode=import [pega:propertyparser] expose.startDate= [pega:propertyparser] hotfix.bypassSchema=false [pega:propertyparser] manageTrackedData.operation= [pega:propertyparser] expose.numOfThreads=1 [pega:propertyparser] hotfix.catalogPath= [pega:propertyparser] manageRestorePoints.action= [pega:propertyparser] import.skipBackup=false [pega:propertyparser] pega.rest.proxy.domain= [pega:propertyparser] export.applicationName= [pega:propertyparser] pega.rest.response.type=json [pega:propertyparser] pega.rest.proxy.host= [mkdir] Created dir: /tmp/PegaInstallTemp-29-May-2018-06.09.48 [pega:hasenoughspace] Found 65430948KB of free space on '/tmp' -processInstances: [echo] Performing export on multiple instance(s) [pega:echoargline] arg line : -action export -propFileDir /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/generated -poolSize ${prpcserviceutils.pool.size} -requestTimeOut 900 -tempDir /tmp/PegaInstallTemp-29-May-2018-06.09.48 -artifactsDir /usr/share/tomcat/.jenkins/workspace/CreateRAP [echo] Reading connection information from /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/jenkins-CreateRAP-25_export.properties [pega:propertyfilegenerator] pega.rest.server.url=http://<host name>:<port number>/<context>/PRRestService/<tenant url hash> [pega:propertyfilegenerator] pega.rest.username= [pega:propertyfilegenerator] pega.rest.password=***** [pega:propertyfilegenerator] pega.rest.proxy.host= [pega:propertyfilegenerator] pega.rest.proxy.port= [pega:propertyfilegenerator] pega.rest.proxy.username= [pega:propertyfilegenerator] pega.rest.proxy.password=***** [pega:propertyfilegenerator] pega.rest.proxy.domain= [pega:propertyfilegenerator] pega.rest.proxy.workstation= [pega:propertyfilegenerator] pega.rest.response.type=json [pega:propertyfilegenerator] user.temp.dir=C:/pega_temp [pega:propertyfilegenerator] export.archiveName= [pega:propertyfilegenerator] export.productName= [pega:propertyfilegenerator] export.productVersion= [pega:propertyfilegenerator] export.applicationVersion= [pega:propertyfilegenerator] export.applicationName= [pega:propertyfilegenerator] export.branchName= [pega:propertyfilegenerator] export.branchAppContext= [pega:propertyfilegenerator] export.async=true [pega:propertyfilegenerator] expose.includedClasses= [pega:propertyfilegenerator] expose.includeDescendents=true [pega:propertyfilegenerator] expose.excludedClasses= [pega:propertyfilegenerator] expose.excludeDescendents=true [pega:propertyfilegenerator] expose.startKey= [pega:propertyfilegenerator] expose.endKey= [pega:propertyfilegenerator] expose.startDate= [pega:propertyfilegenerator] expose.endDate= [pega:propertyfilegenerator] expose.reindex=true [pega:propertyfilegenerator] expose.reindexType=nonpega [pega:propertyfilegenerator] expose.commitRate=100 [pega:propertyfilegenerator] expose.numOfThreads=1 [pega:propertyfilegenerator] expose.async=true [pega:propertyfilegenerator] import.archive.path= [pega:propertyfilegenerator] import.mode=import [pega:propertyfilegenerator] import.existingInstances=skip [pega:propertyfilegenerator] import.nofailonerror=false [pega:propertyfilegenerator] import.commitRate=100 [pega:propertyfilegenerator] import.compileLibraries=true [pega:propertyfilegenerator] import.allowImportWithMissingDependencies=false [pega:propertyfilegenerator] import.preserveOrder=true [pega:propertyfilegenerator] import.codesetName=Customer [pega:propertyfilegenerator] import.codesetVersion=06-01-01 [pega:propertyfilegenerator] import.async=true [pega:propertyfilegenerator] import.skipBackup=false [pega:propertyfilegenerator] manageTrackedData.operation= [pega:propertyfilegenerator] hotfix.operation= [pega:propertyfilegenerator] hotfix.dlFilePath= [pega:propertyfilegenerator] hotfix.catalogPath= [pega:propertyfilegenerator] hotfix.bypassSchema=false [pega:propertyfilegenerator] hotfix.force=false [pega:propertyfilegenerator] hotfix.async=true [pega:propertyfilegenerator] getstatus.jobID= [pega:propertyfilegenerator] getstatus.operationName= [pega:propertyfilegenerator] manageRestorePoints.action= [pega:propertyfilegenerator] manageRestorePoints.restorePointName= [pega:propertyfilegenerator] manageRestorePoints.restorePointLabel= [pega:propertyfilegenerator] rollback.restorePointName= [pega:propertyfilegenerator] rollback.action=SystemRollback [pega:propertyfilegenerator] rollback.async=true [pega:propertyfilegenerator] rollback.downloadLogToFile=true [pega:propertyfilegenerator] updateAccessGroup.applicationName= [pega:propertyfilegenerator] updateAccessGroup.applicationVersion= [pega:propertyfilegenerator] updateAccessGroup.groupList= [pega:propertyfilegenerator] jenkins-CreateRAP-25.pega.rest.server.url=http://localhost:8080/prweb/PRRestService/ [pega:propertyfilegenerator] jenkins-CreateRAP-25.pega.rest.username=**** [pega:propertyfilegenerator] jenkins-CreateRAP-25.pega.rest.password=***** [pega:propertyfilegenerator] jenkins-CreateRAP-25.export.archiveName=CodeReview20180529.020523 [pega:propertyfilegenerator] jenkins-CreateRAP-25.export.productName=CodeReview [pega:propertyfilegenerator] jenkins-CreateRAP-25.export.productVersion=20180529.020523 [pega:propertyfilegenerator] jenkins-CreateRAP-25.export.applicationName=${applicationName} [pega:propertyfilegenerator] jenkins-CreateRAP-25.export.applicationVersion=${applicationVersion} [pega:propertyfilegenerator] jenkins-CreateRAP-25.export.async=false [pega:propertyfilegenerator] Systems Configured [pega:propertyfilegenerator] jenkins-CreateRAP-25 [pega:propertyfilegenerator] Generated /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/generated/jenkins-CreateRAP-25.prpcServiceUtils.properties [echo] *** JVM Arguments -XX:MaxHeapSize=1280m -XX:MaxMetaspaceSize=512m *** _callService: [java] 06:09:50.556 [main] INFO [a.pega****.serviceclient.ClientSettings] - -action export -propFileDir /usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/generated -poolSize ${prpcserviceutils.pool.size} -requestTimeOut 900 -tempDir /tmp/PegaInstallTemp-29-May-2018-06.09.48 -artifactsDir /usr/share/tomcat/.jenkins/workspace/CreateRAP [java] 06:09:50.601 [main] INFO [a.pega****.serviceclient.ClientSettings] - Setting Thread Pool Size to default 5 [java] 06:09:50.601 [main] INFO [a.pega****.serviceclient.ClientSettings] - Setting Request TimeOut to 900 [java] 06:09:50.605 [main] INFO [.pega.pega****.serviceclient.ClientMain] - Initializing client Current Operation = EXPORT; Thread Pool Size = 5; RequestTimeOut = 900; TemporaryDirectory = /tmp/PegaInstallTemp-29-May-2018-06.09.48 [java] 06:09:50.616 [main] INFO [viceclient.requestmanager.RequestManager] - Initializing Request Manager [java] 06:09:50.616 [main] INFO [viceclient.requestmanager.RequestManager] - Initializing ExecutorService with pool size 5 [java] 06:09:50.620 [main] INFO [viceclient.requestmanager.RequestManager] - Performing EXPORT with params [System Name = jenkins-CreateRAP-25 Parameters = {hotfix.async=true, expose.includeDescendents=true, getstatus.jobID=, export.async=false, expose.async=true, expose.excludedClasses=, export.productName=CodeReview, import.commitRate=100, export.branchAppContext=, expose.commitRate=100, import.existingInstances=skip, user.temp.dir=C:/pega_temp, expose.reindex=true, hotfix.operation=, expose.excludeDescendents=true, pega.rest.proxy.password=, updateAccessGroup.applicationName=, import.nofailonerror=false, export.applicationVersion=${applicationVersion}, import.codesetVersion=06-01-01, pega.rest.proxy.username=, expose.includedClasses=, rollback.action=SystemRollback, pega.rest.server.url=http://localhost:8080/prweb/PRRestService/, updateAccessGroup.applicationVersion=, expose.startKey=, expose.reindexType=nonpega, import.codesetName=Customer, manageRestorePoints.restorePointLabel=, pega.rest.password=****, import.async=true, import.compileLibraries=true, hotfix.force=false, export.productVersion=20180529.020523, rollback.restorePointName=, import.allowImportWithMissingDependencies=false, pega.rest.username=****, rollback.async=true, export.branchName=, getstatus.operationName=, expose.endDate=, import.preserveOrder=true, rollback.downloadLogToFile=true, pega.rest.proxy.port=, pega.rest.proxy.workstation=, expose.endKey=, import.archive.path=, hotfix.dlFilePath=, export.archiveName=CodeReview20180529.020523, manageRestorePoints.restorePointName=, updateAccessGroup.groupList=, import.mode=import, expose.startDate=, expose.numOfThreads=1, manageTrackedData.operation=, hotfix.bypassSchema=false, hotfix.catalogPath=, pega.rest.proxy.domain=, import.skipBackup=false, manageRestorePoints.action=, export.applicationName=${applicationName}, pega.rest.response.type=json, pega.rest.proxy.host=}] [java] 
     [java] 06:23:36.471 [pool-2-thread-1] INFO  [ega****.serviceclient.rest.RestResponse] - jenkins-CreateRAP-25: Parsing response
     [java] 06:23:36.471 [pool-2-thread-1] INFO  [ega****.serviceclient.rest.RestResponse] - jenkins-CreateRAP-25: Parsing response of length 2961
     [java] 06:23:36.473 [pool-2-thread-1] INFO  [ega****.serviceclient.rest.RestResponse] - jenkins-CreateRAP-25: Parsing content of type multipart/form-data; boundary=Q2MHJ-rKaVCsYRwTfTTfxVE7DzX0aS1p_VQl5Jb2
     [java] 06:23:36.489 [pool-2-thread-1] INFO  [.rest.contenthandlers.FileContentHandler] - Creating file /tmp/PegaInstallTemp-29-May-2018-06.09.48/EXPORT_1527588590616/jenkins-CreateRAP-25_1/EXPORTREQUEST-9.log
     [java] 06:23:36.521 [main] INFO  [viceclient.requestmanager.RequestManager] - Request on system jenkins-CreateRAP-25 Successful
     [java] Exception in thread "main" Operation EXPORT failed on jenkins-CreateRAP-25,
     [java] 	at com.pega.pega****.serviceclient.ClientMain.executeAndHandleResponse(ClientMain.java:116)
     [java] 	at com.pega.pega****.serviceclient.ClientMain.main(ClientMain.java:61)
     [java] 
     [java]                                        FAILED JOBS
     [java] --------------------------------------------------------------------------------------------
     [java] 
     [java] System Name         : jenkins-CreateRAP-25                                                                                
     [java] Job ID              : EXPORTREQUEST-9                                                                                     
     [java] Status              : FAILED                                                                                              
     [java] Error Messages      :                                                                                                                                                                                                         
     [java] Archive & Logs folder: /usr/share/tomcat/.jenkins/workspace/CreateRAP/EXPORT_2018-May-29_06-23-36/jenkins-CreateRAP-25                                                                                                         
     [java] --------------------------------------------------------------------------------------------
     [java] 06:23:36.587 [main] INFO  [viceclient.requestmanager.RequestManager] - Shutting down executor service
     [java] 06:23:36.587 [main] INFO  [viceclient.requestmanager.RequestManager] - Executor Service shutdown completed

BUILD FAILED
/usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/prpcServiceUtilsWrapper.xml:180: The following error occurred while executing this line:
/usr/share/tomcat/.jenkins/workspace/prpcServiceUtils_73/scripts/utils/prpcServiceUtilsWrapper.xml:198: Java returned: 1

Total time: 13 minutes 49 seconds
Ant Process returned a non 0 value
Build step 'Execute shell' marked build as failure
Finished: FAILURE
DevOps
Moderation Team has archived post
Share this page LinkedIn