Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm error when deploy fisdemogui #29

Open
osamagotji opened this issue Mar 10, 2019 · 1 comment
Open

npm error when deploy fisdemogui #29

osamagotji opened this issue Mar 10, 2019 · 1 comment

Comments

@osamagotji
Copy link

After building an image successfully, the pod that was generated by deployment configuration has an error "Crash loop back off".

I've followed an instruction below.

cd fisdemogui
oc new-project fisdemogui --display-name="Fuse Banking Demo - GUI" --description="Web GUI for Banking demo, does transfer and balance enquiry"
oc new-build --image-stream=nodejs --binary=true --name=fisdemogui
oc start-build fisdemogui --from-dir=. --follow
oc new-app fisdemogui
oc expose svc fisdemogui

The build stage from "oc start-build" is running successfully without any error.
The error will occurred in deployment stage after running "oc new-app" command.

Note: I also tried to change an image-stream from "nodejs" to "nodejs:8-RHOAR" as suggestion in this issue-363542292 but the error is the same.

The following is log from pod that was created by deployment config using a built container image from the build stage.

git version 1.8.3.1
Environment: 
	DEV_MODE=false
	NODE_ENV=production
	DEBUG_PORT=5858
Running as user uid=1001(default) gid=0(root) groups=0(root)
Launching via npm...
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info lifecycle [email protected]~prestart: [email protected]
npm info lifecycle [email protected]~start: [email protected]
> [email protected] start /opt/app-root/src
> npm run build:dev && node server/app.js
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
> [email protected] build:dev /opt/app-root/src
> webpack --config build/webpack.config.js
npm info lifecycle [email protected]~prebuild:dev: [email protected]
npm info lifecycle [email protected]~build:dev: [email protected]
sh: webpack: command not found
npm info lifecycle [email protected]~build:dev: Failed to exec build:dev script
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] build:dev: `webpack --config build/webpack.config.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] build:dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm timing npm Completed in 293ms
npm ERR! A complete log of this run can be found in:
npm ERR!     /opt/app-root/src/.npm/_logs/2019-03-10T10_24_04_031Z-debug.log
npm info lifecycle [email protected]~start: Failed to exec start script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `npm run build:dev && node server/app.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm timing npm Completed in 1343ms
npm ERR! A complete log of this run can be found in:
npm ERR!     /opt/app-root/src/.npm/_logs/2019-03-10T10_24_04_072Z-debug.log

Any body found the same issue ?
Or have any idea about this ?

@rbaumgar
Copy link

rbaumgar commented Mar 24, 2019

following work around works (using a specific version)

cd fisdemogui
oc new-project fisdemogui --display-name="Fuse Banking Demo - GUI" --description="Web GUI for Banking demo, does transfer and balance enquiry"
oc tag registry.access.redhat.com/rhoar-nodejs/nodejs-8:8.12.0 nodejs:RHOAR-8.12.0
oc new-build --image-stream=nodejs:RHOAR-8.12.0 --binary=true --name=fisdemogui
oc start-build fisdemogui --from-dir=. --follow
oc new-app fisdemogui
oc expose svc fisdemogui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants