indexzero/forever — Issue #158: Cannot start forever on boot
Author: xizhang
Created: 2011-11-07 18:35:35+00:00
State: open

I want to start forever on boot. So I appended a line to boot script:

forever start /home/user/path/server.js

The app will not run on boot. Furthermore, if I type in "forever list", it will show the following error message:

info: Running action: list
warn: Error contacting: /home/ubuntu/.forever/sock/forever.sock
error: uncaughtException
error: Unexpected end of input
error: SyntaxError: Unexpected end of input
at Object.parse (native)
at Socket. (/usr/local/lib/node_modules/forever/lib/forever.js:122:27)
at Socket.emit (events.js:64:17)
at Array. (net.js:831:12)
at EventEmitter._tickCallback (node.js:126:26)
warn: Error contacting: /home/ubuntu/.forever/sock/forever1.sock
info: No forever processes running
error: uncaughtException
error: Unexpected end of input
error: SyntaxError: Unexpected end of input
at Object.parse (native)
at Socket. (/usr/local/lib/node_modules/forever/lib/forever.js:122:27)
at Socket.emit (events.js:64:17)
at Array. (net.js:831:12)
at EventEmitter._tickCallback (node.js:126:26)

I installed forever using npm. not sure what version it is.