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

forever-service can't find node on centos 7 #87

Open
msawired opened this issue Feb 8, 2017 · 4 comments
Open

forever-service can't find node on centos 7 #87

msawired opened this issue Feb 8, 2017 · 4 comments

Comments

@msawired
Copy link

msawired commented Feb 8, 2017

Hi I am getting an error, which seems to say it is trying to run node as "/usr/bin/env: node", not "/usr/bin/env node".

forever-service version 0.5.9

Platform - CentOS Linux release 7.2.1511 (Core)

socketServer provisioned successfully

Commands to interact with service socketServer
Start - "sudo service socketServer start"
Stop - "sudo service socketServer stop"
Status - "sudo service socketServer status"
Restart - "sudo service socketServer restart"
/usr/bin/env: node: No such file or directory
Starting socketServer
/usr/bin/env: node: No such file or directory
Service could not be started

@jaymehtasa
Copy link

Any update on this would help, facing same issues Amazon AMI.

@arvind-agarwal
Copy link
Contributor

Can you try solution found in #50

@jaymehtasa
Copy link

Worked well with solution provided in #50

@joneldiablo
Copy link

I have an error something like that:
I try

sudo env "PATH=$PATH" forever-service install validex-cron -f " --watchDirectory ./src -w -o out.log -e err.log -c /home/ubuntu/.nvm/versions/node/v14.16.1/bin/node" --script ./src/index.js -e "PATH=/usr/local/bin:$PATH"

but not working, the service install ok, but not run the script, checking the service status:

● validex-cron.service - LSB: forever-service startup script for validex-cron
   Loaded: loaded (/etc/init.d/validex-cron; generated)
   Active: failed (Result: exit-code) since Fri 2021-04-16 16:05:29 UTC; 14min ago
     Docs: man:systemd-sysv-generator(8)

Apr 16 16:05:29 ip-172-31-34-236 systemd[1]: Starting LSB: forever-service startup script for validex-cron...
Apr 16 16:05:29 ip-172-31-34-236 validex-cron[18066]: /usr/bin/env: ‘node’: No such file or directory
Apr 16 16:05:29 ip-172-31-34-236 validex-cron[18066]: Starting validex-cron
Apr 16 16:05:29 ip-172-31-34-236 validex-cron[18066]: /usr/bin/env: ‘node’: No such file or directory
Apr 16 16:05:29 ip-172-31-34-236 systemd[1]: validex-cron.service: Control process exited, code=exited status=127
Apr 16 16:05:29 ip-172-31-34-236 systemd[1]: validex-cron.service: Failed with result 'exit-code'.
Apr 16 16:05:29 ip-172-31-34-236 systemd[1]: Failed to start LSB: forever-service startup script for validex-cron.

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

4 participants