error running web container
See original GitHub issuetried troubleshooting step with no luck.
$ docker logs web npm info it worked if it ends with ok npm info using npm@3.10.10 npm info using node@v6.11.3 npm info lifecycle blockchain-for-insurance@2.1.0~preserve: blockchain-for-insurance@2.1.0 npm info lifecycle blockchain-for-insurance@2.1.0~serve: blockchain-for-insurance@2.1.0
blockchain-for-insurance@2.1.0 serve /app cross-env NODE_ENV=production node ./bin/server
/app/app/static/js Server running on port: 3000 Default channel not found, attempting creation… Successfully created a new default channel. Joining peers to the default channel. Chaincode is not installed, attempting installation… Fatal error pulling docker images. { Error: read EACCES at exports._errnoException (util.js:1020:11) at Pipe.onread (net.js:568:26) code: ‘EACCES’, errno: ‘EACCES’, syscall: ‘read’ }
npm info lifecycle blockchain-for-insurance@2.1.0~serve: Failed to exec serve script
npm ERR! Linux 3.16.0-30-generic
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” “serve”
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! blockchain-for-insurance@2.1.0 serve: cross-env NODE_ENV=production node ./bin/server
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the blockchain-for-insurance@2.1.0 serve script ‘cross-env NODE_ENV=production node ./bin/server’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the blockchain-for-insurance package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production node ./bin/server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs blockchain-for-insurance
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls blockchain-for-insurance
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /app/npm-debug.log
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
I logged in with the docker hub credentials and still get the error. Any workarounds?
@jchenibm - I have 1) updated the code and readme 3) pulled down to my local version and was successfully able to build and deploy the application. So I would suggest that you start fresh: 1) pull the latest code 2) clear out all your images using a docker stop and docker rmi commands 3) make sure you have the right version of node by installing nvm and pointing to the node version 8.11.3, docker 1.8 and npm 5.6.0. 3) Then dependent on your platform- run the right build command and everything should work.