Question

8
Replies
1894
Views
SubhajitChattopadhya Member since 2010 36 posts
Infosys Australia
Posted: 2 years ago
Last activity: 2 years 3 months ago
Closed
Solved

Issue in executing prpcServiceUtils

Dear Team,

Our Infra team had configured Jenkins job to export pega application.

However they are facing issue when they have executed the below command

$PEGA_HOME/scripts/utils/prpcServiceUtils.sh export --connPropFile

it complains about parameter -Dprpcserviceutils.connection.filepath being null. please find the logs below

Started by user admin
[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
TargetUser=
SystemName=$BUILD_TAG
SourcePassword=XXXXXXXXXX
SourceHost=13.211.211.113
Inject=environment variables to the build process=Properties Content
TargetHost=
Source=Code Management=None
SourceUser=PegaAdmin

[EnvInject] - Variables injected successfully.
[EnvInject] - Injecting contributions.
Building in workspace /var/lib/jenkins/workspace/AS_PEGA_EXPORT
[AS_PEGA_EXPORT] $ /bin/sh -xe /tmp/jenkins8976609299633357842.sh
+ export ANT_HOME=/var/lib/ant/apache-ant-1.9.10
+ ANT_HOME=/var/lib/ant/apache-ant-1.9.10
+ export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/var/lib/ant/apache-ant-1.9.10/bin
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/var/lib/ant/apache-ant-1.9.10/bin
+ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.161.x86_64
+ JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.161.x86_64
+ /var/lib/ant/apache-ant-1.9.10/bin/ant -file /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/samples/jenkins/Jenkins-build.xml -DproductVersion=07.21 -DproductName=PegaPDFS exportprops
Buildfile: /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/samples/jenkins/Jenkins-build.xml

exportprops:
[propertyfile] Creating new property file: /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/jenkins-AS_PEGA_EXPORT-44_export.properties

BUILD SUCCESSFUL
Total time: 0 seconds
+ echo 'Done with Stage-0'
Done with Stage-0
+ echo '**************************************'
**************************************
+ echo 'TEST TEST'
TEST TEST
+ /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/prpcServiceUtils.sh export --connPropFile
run eval "/var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/../bin/ant" -Dprpcserviceutils.connection.filepath="" -Dprpc.service.util.action=export -Dlogfile.timestamp=Mar-21-2018-03-00-52 -f "/var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/prpcServiceUtilsWrapper.xml" performOperation 2>&1 | tee /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/logs/CLI-prpcServiceUtils-log-Mar-21-2018-03-00-52.log
*********************************
run eval /var/lib/ant/apache-ant-1.9.10/bin/ant -Dprpcserviceutils.connection.filepath="" -Dprpc.service.util.action=export -Dlogfile.timestamp=Mar-21-2018-03-00-52 -f "/var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/prpcServiceUtilsWrapper.xml" performOperation 2>&1 | tee /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/logs/CLI-prpcServiceUtils-log-Mar-21-2018-03-00-52.log
*********************************
Buildfile: /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/prpcServiceUtilsWrapper.xml
[echo] *** JVM Arguments -Xmx1280m -XX:MaxPermSize=512m ***

-init:
[echo] ******************************************************************
[echo] Build date : $

{pegaBuildDate.value}

[echo] Pega7 platform version : $

{specificationVersion.value}

[echo] ******************************************************************
[delete] Deleting directory /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/generated
[mkdir] Created dir: /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/generated
[pega:propertyparser] Reading Properties from: /var/lib/jenkins/pegaUtils/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-21-March-2018-03.00.53
[pega:hasenoughspace] Found 5859864KB of free space on '/tmp'

-processInstances:
[echo] Performing export on multiple instance(s)
[pega:echoargline] arg line : -action export -propFileDir /var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/generated -poolSize $

{prpcserviceutils.pool.size}

-requestTimeOut $

{prpcserviceutils.request.timeout}

-tempDir /tmp/PegaInstallTemp-21-March-2018-03.00.53 -artifactsDir logs
[echo] Reading connection information from
[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=

BUILD FAILED
/var/lib/jenkins/pegaUtils/prpcServiceUtils_73/scripts/utils/prpcServiceUtilsWrapper.xml:179: java.lang.IllegalArgumentException: Invalid File Path
at com.pega.pegarules.serviceclient.Validate.notZeroLength(Validate.java:36)
at com.pega.pegarules.util.anttasks.FileUtils.validateFile(FileUtils.java:35)
at com.pega.pegarules.util.anttasks.MultiSystemPropertyFileReader.validate(MultiSystemPropertyFileReader.java:127)
at com.pega.pegarules.util.anttasks.MultiSystemPropertyFileReader.<init>(MultiSystemPropertyFileReader.java:75)
at com.pega.pegarules.util.anttasks.PropertyFileGenerator.getReader(PropertyFileGenerator.java:250)
at com.pega.pegarules.util.anttasks.PropertyFileGenerator.execute(PropertyFileGenerator.java:207)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:437)
at org.apache.tools.ant.Target.performTasks(Target.java:458)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:857)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:286)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)

Total time: 0 seconds
Ant Process returned a non 0 value
Build step 'Execute shell' marked build as failure
Finished: FAILURE

Could you please help our team in this regard?

Hussain from our team is working on it.

Could you please guide him. Below is his email ID

hussain.yandrapally@accenture.com

Thanks and Regards,

Subhajit

DevOps Low-Code App Development Installation and Deployment
Moderation Team has archived post
Share this page LinkedIn