-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Ubuntu 11.10 server side restart not working #82
Comments
i guess this is a dupe of #66 -- i'm also using socketstream. fix was mentioned to drop down to 0.5.7 nodemon. note remy said fix would be pushed to 0.6.10, but problem still exists for me in 0.6.14 |
I can duplicate this issue as well. Similar environment. Ubuntu 11.10. nodemon 0.6.14 |
I'm having the same issue on Debian linux. I tracked this down to nodemon executing the following command: I fixed this, by just changing Perhaps fs.watch vs polling vs whatever, should be a config option? |
I'm also having this issue on Ubuntu 11.10. Seemed like it was working until I upgraded to Node 0.6.15. uname -a |
I still have this issue with Debian 6 64bit...
|
@panosru Can you help troubleshoot this? I'll give a brief rundown of how Nodemon looks for changes (in 0.6.18) By default, unless on windows, nodemon will use the "find" command. The find command relies on being able to search for files modified within x seconds, which not all versions of find do. In particular, recent Debian flavors don't seem to support this feature. When nodemon starts, it tries to detect whether your version of find supports this feature. The other behavior is to use fs.watch. fs.watch behaves differently on different systems - http://nodejs.org/api/fs.html#fs_caveats and that may be where you are running into trouble. To figure out where the problem is coming from, you'll want to put tracers in the startMonitor() function. First figure out what version of changeFunction is being used (depends on what noWatch is set to), then try tracing the potential errors and exceptions. There are several potential errors that are silently ignored. The other thing that could go wrong is the detection code at ~line 33. That's where the program decides if the "find" method will work. You can try setting noWatch explicitly to true or false after that and see if that makes a difference. |
So far I got these debug info:
{ [Error: Command failed: find: invalid argument `-print' to `-mtime'
] killed: false, code: 1, signal: null } then it checks for Then I checked I use this command to run
EDIT: |
@panosru I installed Debian 6 to see if I could reproduce and was unable to. However, the way you are running node, it would only respond to files changes that are within the So just to clarify, nodemon won't reload even when you edit stuff within apps/api/ ? Can you try a test of running nodemon just like |
@dylanmcd thanks a lot for your help, the files I'm editing are under |
I think if you want to pursue it at this point you may need to track down at which version nodemon stopped working for that use case, and diff with the version that stops working to see what changed. nodemon is small and just a single file, so the difference should jump out at you. If I could reproduce it, I'd be happy to help, but it works on Debian 6 for me (w/o the mounting to OSX stuff of course). Good luck! |
@dylanmcd thank you for all your help so far! :) I found out that v 0.6.7 is the latest version that works fine for me, what do you suggest me? make a diff of nodemon.js file for each version after 0.6.7? I'll do a diff with latest version of nodemon since there is no point of doing a diff for each version after 0.6.7 :) |
I diffed 0.6.7 with 0.6.8 and the major change is that 0.6.8 starts using The problem is, |
Since this is a separate issue from the Ubuntu 11.10 issue, I've opened up a new one that explains the problem. |
@dylanmcd ok! Thanks :) for now I use |
Both issues should be closed now, at least in the current repo. |
Server side changes are not restarted by nodemon. I saw this: #79, but this is a normal linux install, not on a read-only filesystem.
Same code base checked out on Mac OS X started with:
nodemon app.js
=> edit app.js => save => nodemon restarts app.jsOn Ubuntu 11.10, nodemon does not restart app.js
Any ideas?
The text was updated successfully, but these errors were encountered: