Initiation via Foreman ends with a error

Hello,

I tried to install sharetribe but was unsuccesful I didnt get Foreman to run without error.

OS Ubntu 14.04 LTS
node -v: 6.7 and v6.1.0 (installed the first one via apt-get and as it didn’t work installed 6.1 via nvm )
ruby: 2.3.0p0
npm: v3.8.6
Hosting: AWS

I followed the following Readme: https://github.com/sharetribe/sharetribe/blob/master/README.md

02:36:18 rails.1               | started with pid 12248
02:36:18 rails-client-assets.1 | started with pid 12249
02:36:18 rails-server-assets.1 | started with pid 12250
02:36:18 rails-server-assets.1 | Skipping translation export task. Translation b                                                                             undle ./client/app/i18n/all.js exists already.
02:36:18 rails.1               | Waiting for app/assets/webpack/server-bundle.js                                                                             ...
02:36:18 rails-client-assets.1 | Skipping routes export task. Routes file ./clie                                                                             nt/app/routes/routes.js exists already.
02:36:18 rails-server-assets.1 | Waiting for client/app/routes/routes.js...
02:36:18 rails-server-assets.1 | client/app/routes/routes.js found
02:36:19 rails-server-assets.1 |
02:36:19 rails-server-assets.1 | > @ build:dev:server /home/ubuntu/sharetribe/cl                                                                             ient
02:36:19 rails-server-assets.1 | > npm run ensure-node-version && webpack -w --c                                                                             onfig webpack.server.config.js
02:36:19 rails-server-assets.1 |
02:36:19 rails-client-assets.1 |
02:36:19 rails-client-assets.1 | > @ build:dev:client /home/ubuntu/sharetribe/cl                                                                             ient
02:36:19 rails-client-assets.1 | > npm run ensure-node-version && webpack -w --c                                                                             onfig webpack.client.config.js
02:36:19 rails-client-assets.1 |
02:36:19 rails-client-assets.1 |
02:36:19 rails-client-assets.1 | > @ ensure-node-version /home/ubuntu/sharetribe                                                                             /client
02:36:19 rails-client-assets.1 | > check-node-version --package
02:36:19 rails-client-assets.1 |
02:36:19 rails-server-assets.1 |
02:36:19 rails-server-assets.1 | > @ ensure-node-version /home/ubuntu/sharetribe                                                                             /client
02:36:19 rails-server-assets.1 | > check-node-version --package
02:36:19 rails-server-assets.1 |
02:36:19 rails-client-assets.1 | sh: 1: check-node-version: not found
02:36:19 rails-server-assets.1 | sh: 1: check-node-version: not found
02:36:19 rails-client-assets.1 |
02:36:19 rails-server-assets.1 |
02:36:19 rails-client-assets.1 | npm ERR! Linux 3.13.0-68-generic
02:36:19 rails-client-assets.1 | npm ERR! argv "/home/ubuntu/.nvm/versions/node/                                                                             v6.1.0/bin/node" "/home/ubuntu/.nvm/versions/node/v6.1.0/bin/npm" "run" "ensure-                                                                             node-version"
02:36:19 rails-client-assets.1 | npm ERR! node v6.1.0
02:36:19 rails-client-assets.1 | npm ERR! npm  v3.8.6
02:36:19 rails-client-assets.1 | npm ERR! file sh
02:36:19 rails-client-assets.1 | npm ERR! code ELIFECYCLE
02:36:19 rails-client-assets.1 | npm ERR! errno ENOENT
02:36:19 rails-client-assets.1 | npm ERR! syscall spawn
02:36:19 rails-client-assets.1 | npm ERR! @ ensure-node-version: `check-node-ver                                                                             sion --package`
02:36:19 rails-client-assets.1 | npm ERR! spawn ENOENT
02:36:19 rails-client-assets.1 | npm ERR!
02:36:19 rails-client-assets.1 | npm ERR! Failed at the @ ensure-node-version sc                                                                             ript 'check-node-version --package'.
02:36:19 rails-client-assets.1 | npm ERR! Make sure you have the latest version                                                                              of node.js and npm installed.
02:36:19 rails-client-assets.1 | npm ERR! If you do, this is most likely a probl                                                                             em with the  package,
02:36:19 rails-client-assets.1 | npm ERR! not with npm itself.
02:36:19 rails-client-assets.1 | npm ERR! Tell the author that this fails on you                                                                             r system:
02:36:19 rails-client-assets.1 | npm ERR!     check-node-version --package
02:36:19 rails-client-assets.1 | npm ERR! You can get information on how to open                                                                              an issue for this project with:
02:36:19 rails-client-assets.1 | npm ERR!     npm bugs
02:36:19 rails-client-assets.1 | npm ERR! Or if that isn't available, you can ge                                                                             t their info via:
02:36:19 rails-client-assets.1 | npm ERR!     npm owner ls
02:36:19 rails-client-assets.1 | npm ERR! There is likely additional logging out                                                                             put above.
02:36:19 rails-client-assets.1 | npm WARN Local package.json exists, but node_mo                                                                             dules missing, did you mean to install?
02:36:19 rails-server-assets.1 | npm ERR! Linux 3.13.0-68-generic
02:36:19 rails-server-assets.1 | npm ERR! argv "/home/ubuntu/.nvm/versions/node/                                                                             v6.1.0/bin/node" "/home/ubuntu/.nvm/versions/node/v6.1.0/bin/npm" "run" "ensure-                                                                             node-version"
02:36:19 rails-server-assets.1 | npm ERR! node v6.1.0
02:36:19 rails-client-assets.1 |
02:36:19 rails-client-assets.1 | npm ERR! Please include the following file with                                                                              any support request:
02:36:19 rails-server-assets.1 | npm ERR! npm  v3.8.6
02:36:19 rails-server-assets.1 | npm ERR! file sh
02:36:19 rails-server-assets.1 | npm ERR! code ELIFECYCLE
02:36:19 rails-server-assets.1 | npm ERR! errno ENOENT
02:36:19 rails-client-assets.1 | npm ERR!     /home/ubuntu/sharetribe/client/npm                                                                             -debug.log
02:36:19 rails-server-assets.1 | npm ERR! syscall spawn
02:36:19 rails-server-assets.1 | npm ERR! @ ensure-node-version: `check-node-ver                                                                             sion --package`
02:36:19 rails-server-assets.1 | npm ERR! spawn ENOENT
02:36:19 rails-server-assets.1 | npm ERR!
02:36:19 rails-server-assets.1 | npm ERR! Failed at the @ ensure-node-version sc                                                                             ript 'check-node-version --package'.
02:36:19 rails-server-assets.1 | npm ERR! Make sure you have the latest version                                                                              of node.js and npm installed.
02:36:19 rails-server-assets.1 | npm ERR! If you do, this is most likely a probl                                                                             em with the  package,
02:36:19 rails-server-assets.1 | npm ERR! not with npm itself.
02:36:19 rails-server-assets.1 | npm ERR! Tell the author that this fails on you                                                                             r system:
02:36:19 rails-server-assets.1 | npm ERR!     check-node-version --package
02:36:19 rails-server-assets.1 | npm ERR! You can get information on how to open                                                                              an issue for this project with:
02:36:19 rails-server-assets.1 | npm ERR!     npm bugs
02:36:19 rails-server-assets.1 | npm ERR! Or if that isn't available, you can ge                                                                             t their info via:
02:36:19 rails-server-assets.1 | npm ERR!     npm owner ls
02:36:19 rails-server-assets.1 | npm ERR! There is likely additional logging out                                                                             put above.
02:36:19 rails-server-assets.1 | npm WARN Local package.json exists, but node_mo                                                                             dules missing, did you mean to install?
02:36:19 rails-server-assets.1 |
02:36:19 rails-server-assets.1 | npm ERR! Please include the following file with                                                                              any support request:
02:36:19 rails-server-assets.1 | npm ERR!     /home/ubuntu/sharetribe/client/npm                                                                             -debug.log
02:36:19 rails-client-assets.1 |
02:36:19 rails-client-assets.1 | npm ERR! Linux 3.13.0-68-generic
02:36:19 rails-client-assets.1 | npm ERR! argv "/home/ubuntu/.nvm/versions/node/                                                                             v6.1.0/bin/node" "/home/ubuntu/.nvm/versions/node/v6.1.0/bin/npm" "run" "build:d                                                                             ev:client"
02:36:19 rails-client-assets.1 | npm ERR! node v6.1.0
02:36:19 rails-client-assets.1 | npm ERR! npm  v3.8.6
02:36:19 rails-client-assets.1 | npm ERR! code ELIFECYCLE
02:36:19 rails-client-assets.1 | npm ERR! @ build:dev:client: `npm run ensure-no                                                                             de-version && webpack -w --config webpack.client.config.js`
02:36:19 rails-client-assets.1 | npm ERR! Exit status 1
02:36:19 rails-client-assets.1 | npm ERR!
02:36:19 rails-client-assets.1 | npm ERR! Failed at the @ build:dev:client scrip                                                                             t 'npm run ensure-node-version && webpack -w --config webpack.client.config.js'.
02:36:19 rails-client-assets.1 | npm ERR! Make sure you have the latest version                                                                              of node.js and npm installed.
02:36:19 rails-client-assets.1 | npm ERR! If you do, this is most likely a probl                                                                             em with the  package,
02:36:19 rails-server-assets.1 |
02:36:19 rails-client-assets.1 | npm ERR! not with npm itself.
02:36:19 rails-client-assets.1 | npm ERR! Tell the author that this fails on you                                                                             r system:
02:36:19 rails-client-assets.1 | npm ERR!     npm run ensure-node-version && web                                                                             pack -w --config webpack.client.config.js
02:36:19 rails-client-assets.1 | npm ERR! You can get information on how to open                                                                              an issue for this project with:
02:36:19 rails-client-assets.1 | npm ERR!     npm bugs
02:36:19 rails-client-assets.1 | npm ERR! Or if that isn't available, you can ge                                                                             t their info via:
02:36:19 rails-client-assets.1 | npm ERR!     npm owner ls
02:36:19 rails-client-assets.1 | npm ERR! There is likely additional logging out                                                                             put above.
02:36:19 rails-client-assets.1 | npm WARN Local package.json exists, but node_mo                                                                             dules missing, did you mean to install?
02:36:19 rails-client-assets.1 |
02:36:19 rails-client-assets.1 | npm ERR! Please include the following file with                                                                              any support request:
02:36:19 rails-client-assets.1 | npm ERR!     /home/ubuntu/sharetribe/client/npm                                                                             -debug.log
02:36:19 rails-server-assets.1 | npm ERR! Linux 3.13.0-68-generic
02:36:19 rails-server-assets.1 | npm ERR! argv "/home/ubuntu/.nvm/versions/node/                                                                             v6.1.0/bin/node" "/home/ubuntu/.nvm/versions/node/v6.1.0/bin/npm" "run" "build:d                                                                             ev:server"
02:36:19 rails-server-assets.1 | npm ERR! node v6.1.0
02:36:19 rails-server-assets.1 | npm ERR! npm  v3.8.6
02:36:19 rails-server-assets.1 | npm ERR! code ELIFECYCLE
02:36:19 rails-server-assets.1 | npm ERR! @ build:dev:server: `npm run ensure-no                                                                             de-version && webpack -w --config webpack.server.config.js`
02:36:19 rails-server-assets.1 | npm ERR! Exit status 1
02:36:19 rails-server-assets.1 | npm ERR!
02:36:19 rails-server-assets.1 | npm ERR! Failed at the @ build:dev:server scrip                                                                             t 'npm run ensure-node-version && webpack -w --config webpack.server.config.js'.
02:36:19 rails-server-assets.1 | npm ERR! Make sure you have the latest version                                                                              of node.js and npm installed.
02:36:19 rails-server-assets.1 | npm ERR! If you do, this is most likely a probl                                                                             em with the  package,
02:36:19 rails-server-assets.1 | npm ERR! not with npm itself.
02:36:19 rails-server-assets.1 | npm ERR! Tell the author that this fails on you                                                                             r system:
02:36:19 rails-server-assets.1 | npm ERR!     npm run ensure-node-version && web                                                                             pack -w --config webpack.server.config.js
02:36:19 rails-server-assets.1 | npm ERR! You can get information on how to open                                                                              an issue for this project with:
02:36:19 rails-server-assets.1 | npm ERR!     npm bugs
02:36:19 rails-server-assets.1 | npm ERR! Or if that isn't available, you can ge                                                                             t their info via:
02:36:19 rails-server-assets.1 | npm ERR!     npm owner ls
02:36:19 rails-server-assets.1 | npm ERR! There is likely additional logging out                                                                             put above.
02:36:19 rails-server-assets.1 | npm WARN Local package.json exists, but node_mo                                                                             dules missing, did you mean to install?
02:36:19 rails-server-assets.1 |
02:36:19 rails-server-assets.1 | npm ERR! Please include the following file with                                                                              any support request:
02:36:19 rails-server-assets.1 | npm ERR!     /home/ubuntu/sharetribe/client/npm                                                                             -debug.log
02:36:20 rails-client-assets.1 | exited with code 1
02:36:20 system                | sending SIGTERM to all processes
02:36:20 rails-server-assets.1 | exited with code 1
02:36:20 rails.1               | terminated by SIGTERM

Did you run npm install? From the error message, I can see that the package check-node-version is missing, most likely because npm install was not run.

Thanks for the answer :).

You are correct, the error ouput was so short that it didnt came to my attention. When I try “sudo npm install” I get the follwong error:

npm WARN cannot run in wd @ cd client && npm install (wd=/home/ubuntu/sharetribe

I guess my problem is, that I should install nodejs without sudo or isn’t it?

Edit: Got it working with 6.9.1. I really am not sure how but after trying some tipps the system asked for it and I installed it via nvm. I will give it a go now and will later come back to find the reason why the installation was so strange.

1 Like

@rap1ds

1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘run’, ‘build:dev:client’ ]
2 info using npm@5.5.1
3 info using node@v6.11

Iam also facing same issue boss please help me to solve that ASAP

15:24:58 rails.1 | started with pid 16448
15:24:58 rails-client-assets.1 | started with pid 16450
15:24:58 rails-server-assets.1 | started with pid 16452
15:24:58 rails.1 | Waiting for app/assets/webpack/server-bundle.js…
15:24:58 rails-client-assets.1 | Skipping routes export task. Routes file ./client/app/routes/routes.js exists already.
15:24:58 rails-server-assets.1 | Skipping translation export task. Translation bundle ./client/app/i18n/all.js exists already.
15:24:58 rails-server-assets.1 | Waiting for client/app/routes/routes.js…
15:24:58 rails-server-assets.1 | client/app/routes/routes.js found
15:24:59 rails-client-assets.1 |
15:24:59 rails-client-assets.1 | > @ build:dev:client /home/rails/rails_projects/sharetribe/client
15:24:59 rails-client-assets.1 | > npm run ensure-node-version && webpack -w --config webpack.client.config.js
15:24:59 rails-client-assets.1 |
15:24:59 rails-server-assets.1 |
15:24:59 rails-server-assets.1 | > @ build:dev:server /home/rails/rails_projects/sharetribe/client
15:24:59 rails-server-assets.1 | > npm run ensure-node-version && webpack -w --config webpack.server.config.js
15:24:59 rails-server-assets.1 |
15:25:00 rails-server-assets.1 |
15:25:00 rails-server-assets.1 | > @ ensure-node-version /home/rails/rails_projects/sharetribe/client
15:25:00 rails-server-assets.1 | > check-node-version --package
15:25:00 rails-server-assets.1 |
15:25:00 rails-server-assets.1 | sh: 1: check-node-version: not found
15:25:00 rails-server-assets.1 | npm ERR! file sh
15:25:00 rails-server-assets.1 | npm ERR! code ELIFECYCLE
15:25:00 rails-server-assets.1 | npm ERR! errno ENOENT
15:25:00 rails-server-assets.1 | npm ERR! syscall spawn
15:25:00 rails-server-assets.1 | npm ERR! @ ensure-node-version: check-node-version --package
15:25:00 rails-server-assets.1 | npm ERR! spawn ENOENT
15:25:00 rails-server-assets.1 | npm ERR!
15:25:00 rails-server-assets.1 | npm ERR! Failed at the @ ensure-node-version script.
15:25:00 rails-server-assets.1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
15:25:00 rails-server-assets.1 | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
15:25:00 rails-server-assets.1 |
15:25:00 rails-server-assets.1 | npm ERR! A complete log of this run can be found in:
15:25:00 rails-server-assets.1 | npm ERR! /root/.npm/_logs/2017-10-15T15_25_00_203Z-debug.log
15:25:00 rails-server-assets.1 | npm ERR! code ELIFECYCLE
15:25:00 rails-server-assets.1 | npm ERR! errno 1
15:25:00 rails-server-assets.1 | npm ERR! @ build:dev:server: npm run ensure-node-version && webpack -w --config webpack.server.config.js
15:25:00 rails-server-assets.1 | npm ERR! Exit status 1
15:25:00 rails-server-assets.1 | npm ERR!
15:25:00 rails-server-assets.1 | npm ERR! Failed at the @ build:dev:server script.
15:25:00 rails-server-assets.1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
15:25:00 rails-server-assets.1 | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
15:25:00 rails-server-assets.1 |
15:25:00 rails-server-assets.1 | npm ERR! A complete log of this run can be found in:
15:25:00 rails-server-assets.1 | npm ERR! /root/.npm/_logs/2017-10-15T15_25_00_227Z-debug.log
15:25:00 rails-server-assets.1 | exited with code 1
15:25:00 system | sending SIGTERM to all processes
15:25:00 rails.1 | terminated by SIGTERM
15:25:00 rails-client-assets.1 | terminated by SIGTERM

same error, just followed the install instruction on the github readme.md page

foreman start -f Procfile.static
07:34:12 rails.1 | started with pid 20139
07:34:12 rails-client-assets.1 | started with pid 20141
07:34:12 rails-server-assets.1 | started with pid 20143
07:34:12 rails.1 | Waiting for app/assets/webpack/server-bundle.js…
07:34:12 rails-client-assets.1 | Skipping routes export task. Routes file ./client/app/routes/routes.js exists already.
07:34:12 rails-server-assets.1 | Skipping translation export task. Translation bundle ./client/app/i18n/all.js exists already.
07:34:12 rails-server-assets.1 | Waiting for client/app/routes/routes.js…
07:34:12 rails-server-assets.1 | client/app/routes/routes.js found
07:34:12 rails-client-assets.1 |
07:34:12 rails-client-assets.1 | > @ build:dev:client /var/customers/apps/merkuro/client
07:34:12 rails-client-assets.1 | > npm run ensure-node-version && webpack --mode=development -w --config webpack.client.config.js
07:34:12 rails-client-assets.1 |
07:34:12 rails-server-assets.1 |
07:34:12 rails-server-assets.1 | > @ build:dev:server /var/customers/apps/merkuro/client
07:34:12 rails-server-assets.1 | > npm run ensure-node-version && webpack --mode=development -w --config webpack.server.config.js
07:34:12 rails-server-assets.1 |
07:34:12 rails-client-assets.1 |
07:34:12 rails-client-assets.1 | > @ ensure-node-version /var/customers/apps/merkuro/client
07:34:12 rails-client-assets.1 | > check-node-version --package
07:34:12 rails-client-assets.1 |
07:34:12 rails-client-assets.1 | sh: 1: check-node-version: not found
07:34:12 rails-client-assets.1 | npm ERR! code ELIFECYCLE
07:34:12 rails-client-assets.1 | npm ERR! syscall spawn
07:34:12 rails-client-assets.1 | npm ERR! file sh
07:34:12 rails-client-assets.1 | npm ERR! errno ENOENT
07:34:12 rails-client-assets.1 | npm ERR! @ ensure-node-version: check-node-version --package
07:34:12 rails-client-assets.1 | npm ERR! spawn ENOENT
07:34:12 rails-client-assets.1 | npm ERR!
07:34:12 rails-client-assets.1 | npm ERR! Failed at the @ ensure-node-version script.
07:34:12 rails-client-assets.1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
07:34:12 rails-client-assets.1 | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
07:34:12 rails-client-assets.1 |
07:34:12 rails-client-assets.1 | npm ERR! A complete log of this run can be found in:
07:34:12 rails-client-assets.1 | npm ERR! /root/.npm/_logs/2020-03-29T00_34_12_885Z-debug.log
07:34:12 rails-client-assets.1 | npm ERR! code ELIFECYCLE
07:34:12 rails-client-assets.1 | npm ERR! errno 1
07:34:12 rails-client-assets.1 | npm ERR! @ build:dev:client: npm run ensure-node-version && webpack --mode=development -w --config webpack.client.config.js
07:34:12 rails-client-assets.1 | npm ERR! Exit status 1
07:34:12 rails-client-assets.1 | npm ERR!
07:34:12 rails-client-assets.1 | npm ERR! Failed at the @ build:dev:client script.
07:34:12 rails-client-assets.1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
07:34:12 rails-client-assets.1 | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
07:34:12 rails-client-assets.1 |
07:34:12 rails-client-assets.1 | npm ERR! A complete log of this run can be found in:
07:34:12 rails-client-assets.1 | npm ERR! /root/.npm/_logs/2020-03-29T00_34_12_897Z-debug.log