redhatdemocentral / rhcs-coolstore-demo

Project to showcase a retail application known as Cool Store in the Cloud.
10 stars 16 forks source link

Permission denied? #8

Open betazep opened 6 years ago

betazep commented 6 years ago

[ Starting automated installation ] Read pack list from xml definition. Try to add to selection [Name: Red Hat JBoss Enterprise Application Platform and Index: 0] Try to add to selection [Name: AppClient and Index: 1] Try to add to selection [Name: XMLs and XSDs and Index: 2] Try to add to selection [Name: Modules and Index: 3] Try to add to selection [Name: Welcome Content and Index: 4] Try to remove from selection [Name: Quickstarts and Index: 5] Try to remove from selection [Name: Icons and Index: 6] Modify pack selection. Pack [Name: Quickstarts and Index: 5] removed from selection. Pack [Name: Icons and Index: 6] removed from selection. [ Starting to unpack ] [ Processing package: Red Hat JBoss Enterprise Application Platform (1/5) ] [ Processing package: AppClient (2/5) ] [ Processing package: Docs (3/5) ] [ Processing package: Modules (4/5) ] [ Processing package: Welcome Content (5/5) ] [ Unpacking finished ] [ Starting processing ] Starting process Logging installation information (1/4) IzPack variable state written to /opt/jboss/brms/jboss-eap-7.0/installation/InstallationLog.txt Starting process Adding admin user (2/4) Starting process Cleanup extraneous folders (3/4) Starting process Cleanup icons folder (4/4) [ Processing finished ] [ Writing the uninstaller data ... ] [ Automated installation done ] /bin/sh: /opt/jboss/fix-permissions: Permission denied error: build error: The command '/bin/sh -c sed -i "s:.*:$BRMS_HOME:" /opt/jboss/installation-eap && java -jar /opt/jboss/$EAP_INSTALLER /opt/jboss/installation-eap -variablefile /opt/jboss/installation-eap.variables && unzip -qo /opt/jboss/$BRMS_DEPLOYABLE -d $BRMS_HOME/.. && /opt/jboss/fix-permissions $BRMS_HOME && rm -rf /opt/jboss/$BRMS_DEPLOYABLE /opt/jboss/$EAP_INSTALLER /opt/jboss/installation-eap /opt/jboss/installation-eap.variables $BRMS_HOME/standalone/configuration/standalone_xml_history/ && $BRMS_HOME/bin/add-user.sh -a -r ApplicationRealm -u erics -p jbossbrms1! -ro analyst,admin,manager,user,kie-server,kiemgmt,rest-all --silent' returned a non-zero code: 126 error: the build appdev-in-cloud/rhcs-coolstore-demo-1 status is "Failed"

Error occurred during 'oc start-build' command!

eschabell commented 6 years ago

This has to do with permissions on script, which are not set here:

RUN chown 1000:1000 /opt/jboss/$EAP_INSTALLER /opt/jboss/$BRMS_DEPLOYABLE

I can't reproduce locally, but you could update this line and see if it helps:

RUN chown 1000:1000 /opt/jboss/$EAP_INSTALLER /opt/jboss/$BRMS_DEPLOYABLE /opt/jboss/fix-permissions

betazep commented 6 years ago

I pulled latest... still same error. I will go see if I can make it go away...