You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use forever v0.13.0 with Ubuntu 13.10 and upstart. I've found several blogs and stackoverflow posts explaining how to do this. However it always fails to run. It logs the error:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: /home/rich/simple-server/simple.js
fs.js:439
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EROFS, read-only file system '/etc/forever/sNX9.log'
at Object.fs.openSync (fs.js:439:18)
at Object.forever.startDaemon (/home/rich/npm/lib/node_modules/forever/lib/forever.js:484:14)
at /home/rich/npm/lib/node_modules/forever/lib/forever/cli.js:270:13
at /home/rich/npm/lib/node_modules/forever/lib/forever/cli.js:157:5
at /home/rich/npm/lib/node_modules/forever/lib/forever.js:436:11
at Object.oncomplete (fs.js:108:15)
I have tried many different directories, all marked read/write for all users. It doesn't matter what directory I use I get this same error. I have tried this with the tiniest possible node server with no node_module dependencies. The directory shown in the example above has 777 chmod rights.
The above error was generated with node.js v0.10.34. But I've also tried 0.10.25 on another system. Same problem. My upstart script simple has:
start on startup
env FOREVER_ROOT=/etc/forever
exec /home/rich/npm/bin/forever start /home/rich/simple-server/simple.js
I have used other more complex scripts as well, but no matter what forever is unable to write its data despite the directory being accessible to all users. Of course I've tried the default directory forever uses as well with the same results. I've even added sudo command between the exec and the forever command. No joy.
This seems like a bug in the module. Since other people are claiming forever can be used with upstart I have to assume this is something specific to version 0.13.0. For the sake of completeness, the test app I'm trying to run is:
I am trying to use forever v0.13.0 with Ubuntu 13.10 and upstart. I've found several blogs and stackoverflow posts explaining how to do this. However it always fails to run. It logs the error:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: /home/rich/simple-server/simple.js
fs.js:439
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EROFS, read-only file system '/etc/forever/sNX9.log'
at Object.fs.openSync (fs.js:439:18)
at Object.forever.startDaemon (/home/rich/npm/lib/node_modules/forever/lib/forever.js:484:14)
at /home/rich/npm/lib/node_modules/forever/lib/forever/cli.js:270:13
at /home/rich/npm/lib/node_modules/forever/lib/forever/cli.js:157:5
at /home/rich/npm/lib/node_modules/forever/lib/forever.js:436:11
at Object.oncomplete (fs.js:108:15)
I have tried many different directories, all marked read/write for all users. It doesn't matter what directory I use I get this same error. I have tried this with the tiniest possible node server with no node_module dependencies. The directory shown in the example above has 777 chmod rights.
The above error was generated with node.js v0.10.34. But I've also tried 0.10.25 on another system. Same problem. My upstart script simple has:
start on startup
env FOREVER_ROOT=/etc/forever
exec /home/rich/npm/bin/forever start /home/rich/simple-server/simple.js
I have used other more complex scripts as well, but no matter what forever is unable to write its data despite the directory being accessible to all users. Of course I've tried the default directory forever uses as well with the same results. I've even added sudo command between the exec and the forever command. No joy.
This seems like a bug in the module. Since other people are claiming forever can be used with upstart I have to assume this is something specific to version 0.13.0. For the sake of completeness, the test app I'm trying to run is:
var sys = require("sys"),
my_http = require("http");
my_http.createServer(function(request,response){
sys.puts("I got kicked");
response.writeHeader(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}).listen(8080);
sys.puts("Server Running on 8080");
The text was updated successfully, but these errors were encountered: