Hello Team.
I complied the sample successfully and can start it as development version
npm start
It works fine. It also works fine when I build it for production with
npm run build
and then start with
serve -s build
I had no problem also to deploy it on another host under Apache web server.
The problems start when I try to deploy to bluemix.
It looks to build successfully but fails to start:
Waiting for app to start...
Start unsuccessful
TIP: use 'cf logs assistant-with-discovery-openwhisk --recent' for more information
FAILED
In the logs I can see:
2019-02-26T15:36:29.95+0300 [CELL/0] OUT Starting health monitoring of container
2019-02-26T15:36:31.56+0300 [APP/PROC/WEB/0] OUT > @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 start /home/vcap/app
2019-02-26T15:36:31.56+0300 [APP/PROC/WEB/0] OUT > npm-run-all -p watch-css start-js
2019-02-26T15:36:33.76+0300 [APP/PROC/WEB/0] OUT > @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 start-js /home/vcap/app
2019-02-26T15:36:33.76+0300 [APP/PROC/WEB/0] OUT > react-scripts start
2019-02-26T15:36:33.77+0300 [APP/PROC/WEB/0] OUT > @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 watch-css /home/vcap/app
2019-02-26T15:36:33.77+0300 [APP/PROC/WEB/0] OUT > npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive
2019-02-26T15:36:33.83+0300 [APP/PROC/WEB/0] ERR sh: 1: react-scripts: not found
2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! Linux 4.15.0-43-generic
2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/lib/node_modules/npm/bin/npm-cli.js" "run" "start-js"
2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! node v6.16.0
2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! npm v3.10.10
2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! file sh
2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! code ELIFECYCLE
2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! errno ENOENT
2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! syscall spawn
Also in the build process there was a warning, not sure it has relation to above problem...
2019-02-26T15:35:55.53+0300 [STG/0] OUT -----> Installing App Management
2019-02-26T15:35:55.64+0300 [STG/0] OUT WARN: App Management cannot be installed because the start script cannot be found.
2019-02-26T15:35:55.64+0300 [STG/0] OUT To install App Management utilities, specify your 'node' start script in 'package.json' or 'Procfile'.
2019-02-26T15:35:55.64+0300 [STG/0] OUT Checking for Dynatrace credentials
2019-02-26T15:35:55.65+0300 [STG/0] OUT No Dynatrace Service Found (service with substring dynatrace not found in VCAP_SERVICES)
Appreciate any advice or to share a hint how did you install this sample on bulemix!
Looks like the problem is resolved by itself.
I tried
ibmcloud cf push
once more without any changes on my side and it worked successfully.
I suppose it was temporary problem on bluemix side.
Hello Team. I complied the sample successfully and can start it as development version npm start It works fine. It also works fine when I build it for production with npm run build and then start with serve -s build I had no problem also to deploy it on another host under Apache web server.
The problems start when I try to deploy to bluemix.
I have created manifest.yml file: applications:
and try to deploy it with ibmcloud cf push
It looks to build successfully but fails to start:
Waiting for app to start... Start unsuccessful
TIP: use 'cf logs assistant-with-discovery-openwhisk --recent' for more information FAILED
In the logs I can see:
2019-02-26T15:36:29.95+0300 [CELL/0] OUT Starting health monitoring of container 2019-02-26T15:36:31.56+0300 [APP/PROC/WEB/0] OUT > @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 start /home/vcap/app 2019-02-26T15:36:31.56+0300 [APP/PROC/WEB/0] OUT > npm-run-all -p watch-css start-js 2019-02-26T15:36:33.76+0300 [APP/PROC/WEB/0] OUT > @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 start-js /home/vcap/app 2019-02-26T15:36:33.76+0300 [APP/PROC/WEB/0] OUT > react-scripts start 2019-02-26T15:36:33.77+0300 [APP/PROC/WEB/0] OUT > @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 watch-css /home/vcap/app 2019-02-26T15:36:33.77+0300 [APP/PROC/WEB/0] OUT > npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive 2019-02-26T15:36:33.83+0300 [APP/PROC/WEB/0] ERR sh: 1: react-scripts: not found 2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! Linux 4.15.0-43-generic 2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/lib/node_modules/npm/bin/npm-cli.js" "run" "start-js" 2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! node v6.16.0 2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! npm v3.10.10 2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! file sh 2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! code ELIFECYCLE 2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! errno ENOENT 2019-02-26T15:36:33.85+0300 [APP/PROC/WEB/0] ERR npm ERR! syscall spawn
Also in the build process there was a warning, not sure it has relation to above problem...
2019-02-26T15:35:55.53+0300 [STG/0] OUT -----> Installing App Management 2019-02-26T15:35:55.64+0300 [STG/0] OUT WARN: App Management cannot be installed because the start script cannot be found. 2019-02-26T15:35:55.64+0300 [STG/0] OUT To install App Management utilities, specify your 'node' start script in 'package.json' or 'Procfile'. 2019-02-26T15:35:55.64+0300 [STG/0] OUT Checking for Dynatrace credentials 2019-02-26T15:35:55.65+0300 [STG/0] OUT No Dynatrace Service Found (service with substring dynatrace not found in VCAP_SERVICES)
Appreciate any advice or to share a hint how did you install this sample on bulemix!