Everything was working perfectly and this morning the Container instance in Azure was off. Trying to start it again gives the following in the log:
stat: cannot stat '/opt/bonita/': No such file or directory
/opt/files/startup.sh: line 3: [: !=: unary operator expected
[..]
cp /opt/templates/setenv.sh /opt/bonita/BonitaCommunity-7.11.4/setup/tomcat-templates/setenv.sh
cp: cannot create regular file '/opt/bonita/BonitaCommunity-7.11.4/setup/tomcat-templates/setenv.sh': No such file or directory
cp /opt/templates/database.properties /opt/bonita/BonitaCommunity-7.11.4/setup/database.properties
cp: cannot create regular file '/opt/bonita/BonitaCommunity-7.11.4/setup/database.properties': No such file or directory
xargs -n10 sed -i -e 's/^#userName\s=./userName=/' -e 's/^#userPassword\s=.*/userPassword=**/' -e 's/^platform.tenant.default.username\s=./platform.tenant.default.username=***/' -e 's/^platform.tenant.default.password\s=./platform.tenant.default.password=/' -e 's/^#platformAdminUsername\s=.*/platformAdminUsername=***/' -e 's/^#platformAdminPassword\s=./platformAdminPassword=/'
find: '/opt/bonita/BonitaCommunity-7.11.4/setup/platform_conf/initial': No such file or directory
sed: no input files
sed -i -e 's/{{JAVA_OPTS}}/-Xms1024m -Xmx1024m/' /opt/bonita/BonitaCommunity-7.11.4/setup/tomcat-templates/setenv.sh
sed: can't read /opt/bonita/BonitaCommunity-7.11.4/setup/tomcat-templates/setenv.sh: No such file or directory
'[' -n '' ']'
sed -e 's/{{DB_VENDOR}}/postgres/' -e 's/{{DB_USER}}/*/' -e 's/{{DB_PASS}}/****/' -e 's/{{DB_NAME}}/bonitadb/' -e 's/{{DB_HOST}}/ibhsfcprobpmdbweu.postgres.database.azure.com/' -e 's/{{DB_PORT}}/5432/' -e 's/{{BIZ_DB_USER}}/*/' -e 's/{{BIZ_DB_PASS}}/***/' -e 's/{{BIZ_DB_NAME}}/businessdb/' -i /opt/bonita/BonitaCommunity-7.11.4/setup/database.properties
sed: can't read /opt/bonita/BonitaCommunity-7.11.4/setup/database.properties: No such file or directory
mv /opt/bonita/BonitaCommunity-7.11.4/server/conf/logging.properties /opt/bonita/BonitaCommunity-7.11.4/server/conf/logging.properties.original
mv: cannot stat '/opt/bonita/BonitaCommunity-7.11.4/server/conf/logging.properties': No such file or directory
awk -f /opt/files/logging.awk /opt/bonita/BonitaCommunity-7.11.4/server/conf/logging.properties.original
/opt/files/config.sh: line 154: /opt/bonita/BonitaCommunity-7.11.4/server/conf/logging.properties: No such file or directory
cd /opt/bonita/BonitaCommunity-7.11.4
/opt/files/config.sh: line 157: cd: /opt/bonita/BonitaCommunity-7.11.4: No such file or directory
./setup/setup.sh init -Dlogging.config=/opt/bonita/BonitaCommunity-7.11.4/setup/logback.xml
/opt/files/config.sh: line 160: ./setup/setup.sh: No such file or directory
./setup/setup.sh configure -Dlogging.config=/opt/bonita/BonitaCommunity-7.11.4/setup/logback.xml
/opt/files/config.sh: line 161: ./setup/setup.sh: No such file or directory
Everything was working perfectly and this morning the Container instance in Azure was off. Trying to start it again gives the following in the log:
stat: cannot stat '/opt/bonita/': No such file or directory /opt/files/startup.sh: line 3: [: !=: unary operator expected [..]