initd-forever icon indicating copy to clipboard operation
initd-forever copied to clipboard

Crashes on Ubuntu 10.04

Open bk138 opened this issue 10 years ago • 6 comments

Hi there, on Ubuntu 10.04 with node 0.10.33 I get

$ initd-forever 

fs.js:429
  binding.open(pathModule._makeLong(path),
          ^
TypeError: path must be a string
    at Object.fs.open (fs.js:429:11)
    at Object.fs.writeFile (fs.js:953:6)
    at Object.Daemon.writeFiles (/usr/lib/node_modules/initd-forever/lib/main.js:267:10)
    at Object.Daemon.script (/usr/lib/node_modules/initd-forever/lib/main.js:190:13)
    at Object.<anonymous> (/usr/lib/node_modules/initd-forever/bin/initd-forever.js:20:8)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

Any idea?

bk138 avatar Dec 07 '14 01:12 bk138

Hi, I have the problem on latest raspbian with node v0.10.33.

appellemoipolo avatar Dec 22 '14 20:12 appellemoipolo

Same problem with rasbian with node v0.10.35

svrooij avatar Dec 28 '14 21:12 svrooij

same issue on Debian 7.7 node v0.10.18

MoemenMostafa avatar Feb 04 '15 13:02 MoemenMostafa

I had found the problem after reviewing the code we should specify the -n parameter as follows:

initd-forever -a <your_app.js> -n <daemon-name>

MoemenMostafa avatar Feb 04 '15 13:02 MoemenMostafa

Thanks for your investigation. It's weird because I use default value for missing arguments as -a, -n ... etc...

92bondstreet avatar Feb 06 '15 09:02 92bondstreet

I will try to debug it when I have time.

MoemenMostafa avatar Feb 06 '15 12:02 MoemenMostafa