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

Seems broken in node v0.4.0 #26

Closed
eliaskg opened this issue Feb 11, 2011 · 7 comments
Closed

Seems broken in node v0.4.0 #26

eliaskg opened this issue Feb 11, 2011 · 7 comments

Comments

@eliaskg
Copy link

eliaskg commented Feb 11, 2011

Tested in on Mac OSX Snow Leopard and Ubuntu Maverick

If I am running on node v0.4.0 and I say

$ forever start server.js

nothing gets started, so if I run

$ forever list

I get

> No forever processes running
@indexzero
Copy link
Member

Thanks. Are you installing from npm@latest or are you cloning the repository and trying it?

I was noticing some issues with daemon.node (one of the libraries I maintain that forever depends on) in nodejs 0.4.0. I will investigate today / tomorrow and get back to you.

@eliaskg
Copy link
Author

eliaskg commented Feb 11, 2011

I installed it on a fresh machine via
npm install forever

@indexzero
Copy link
Member

Hmm... try this:

  npm install daemon@0.2.0
  cd /path/to/src
  git clone git@github.com:indexzero/forever.git
  cd forever
  npm install .

Let me know if that's any different for you. The above script will install daemon.node 0.2.0 and forever@HEAD.

Sometimes it's useful to check the logs so before you run forever try this:

  forever cleanlogs
  forever start myapp.js
  ls /tmp/forever
  # Send me the dump of these log files

@eliaskg
Copy link
Author

eliaskg commented Feb 11, 2011

Will try installing daemon and forever from source later.

I took a look in the logfile after cleaning the logs and starting again. It's completely empty.

@eliaskg
Copy link
Author

eliaskg commented Feb 11, 2011

Allright, I followed your steps. When I start forever I get this now:

/Downloads$ forever start testserver.js

/home/elias/local/node/lib/node/.npm/forever/0.3.1/package/lib/forever.js:80
  daemon.daemonize(options.logFile, options.pidFile, function (err, pid) {
         ^
TypeError: Object #<Object> has no method 'daemonize'
    at Object.startDaemon (/home/elias/local/node/lib/node/.npm/forever/0.3.1/package/lib/forever.js:80:10)
    at /home/elias/local/node/lib/node/.npm/forever/0.3.1/package/bin/forever:125:42
    at /home/elias/local/node/lib/node/.npm/forever/0.3.1/package/bin/forever:114:5
    at /home/elias/local/node/lib/node/.npm/forever/0.3.1/package/lib/forever.js:54:7

@indexzero
Copy link
Member

Pushed daemon.node 0.3.0 and forever 0.3.5. Tested it and seems to be working with node >= 0.4.0

@eliaskg
Copy link
Author

eliaskg commented Feb 11, 2011

Works like a charm, awesome!

This issue was closed.
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

2 participants