-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Watch no longer working #1062
Comments
Verified it doesn't work on pm2 0.12.7 also |
Are you on osx? Just tried and indeed there is an issue with Temporary fix:
Or don't install the chokidar fsevents module in the pm2 directory :
I'll try to dig deeper and submit an issue to chokidar or fsevents about this. |
Yes, on OSX. The temporary fix you mentioned does not seem to work. |
The same problem on ubuntu+vagrant, pm2 doesn't see file changes pm2 0.12.7 |
We tested this yesterday with ubuntu/debian and there was no issues. Did you test the workarounds from below? |
I should mention that I'm using vagrant as well. And I'm watching a synched folder, so it's a symlink. |
So I mispoke when I said I was on OSX. My host is OSX, but PM2 is running on a CentOS 6.5 VM. My bad. |
@gshively11 @ChrisPiechowicz Could you please run the watcher test and give me the output in a gist? Tests are located under:
in the pm2 module directory. Thanks! |
Ran it as the user which runs our node apps:
|
@soyuka I can't find watch.sh in pm2 dir, I don't have "test" directory.. |
Same here on Ubuntu 14.04.1 LTS (inside a Vagrant Box as well as on DigitalOcean droplet) running PM2 v0.12.5 on node v0.10.25. Setting |
👍 |
Can also confirm that watch isn't working for me. Ubuntu 14.04.2 |
Any idea when this issue might be fixed? |
@gshively11 I can't reproduce anymore, and I haven't find the source of this issue. It seems to be very random and I've got absolutely no clue of what's going on here... I had the same error on my computer but I cleaned up my When I had the issue I took pm2 back to the first version that had the |
@soyuka It still does not work in The folder structure below my PM2's
If I Furthermore I was not able to Environment: |
Seems like it's working to me, please update your pm2/node versions if you still have issues. |
I'm having the same problems. My versions are:
FWIW, I'm running on the latest OSX, with |
Is it possible that there are some symlinks and that followSymlinks option is not set properly? |
Possibly, I'm not 100% sure how vagrant sets up its synchronised folders. I've just tried setting the |
I just downloaded the development version of PM2 and ran the |
I'm having the exact same issue, cannot get the watch functionality to work reliably with Vagrant (1.7.2) and NFS shared folders on Ubuntu 14.04 (guest) and OSX 10.10.4 (host). PM2: v0.14.3 |
@soyuka: Thank you! Good idea, but I searched some amongst their issues instead and found this ticket (#242), seems to be pretty much related. I solve my issue for now by using the |
@soyuka: It's not optimal as in it's checking for changes at a fixed time interval, instead of "real-time". But for now I can live with waiting a few seconds for the changes to be discovered. :) |
100 ms (default polling option) is very low, consider increasing to save CPU usage. @Bazze hope it'll do the job, no better solution :/ |
It's 100ms by default? Takes 1-2 seconds at least for me before it notices any changes, weird. I'm gonna experiment a bit with the interval! @soyuka: So far I can't see why it wouldn't (except that it could be a bit faster) ;) |
@Bazze thanks, friday evening..... |
@soyuka I know the feeling, let's call it a day! 🍻 |
Similar, but somewhat different error: https://gist.github.com/DenisGorbachev/523f3a937faec86b31dd
|
Watch & reload doesn't work on Debian 9.1x64 on DigitalOcean droplet. I have a simple helloWorld project and trying to change a project file in a text editor or by pulling changes from git repo and nothing happens :( |
--watch is not working on Debian 9 |
I'm on Linux, and
Worked for me ; Thanks! |
pm2 v2.9.3
didn't work |
In my case, I mean, if it is the first process, |
PM2 0.12.4
Node v0.12.0
[{
"name": "[scrubbed]",
"script": "./scripts/start.js",
"watch": true,
"exec_mode": "fork_mode",
"instances": 1,
"node_args": "--debug=5858",
"cwd": "/[scrubbed]/current"
}]
2015-03-02 09:58:11: [PM2][WORKER] Started with refreshing interval: 30000
2015-03-02 09:58:11: [[[[ PM2/God daemon launched ]]]]
2015-03-02 09:58:11: BUS system [READY] on port /[scrubbed]/.pm2/pub.sock
2015-03-02 09:58:11: RPC interface [READY] on port /[scrubbed]/.pm2/rpc.sock
2015-03-02 09:58:11: Starting execution sequence in -fork mode- for app name:node-inspector id:0
2015-03-02 09:58:11: App name:node-inspector id:0 online
2015-03-02 09:59:23: Starting execution sequence in -fork mode- for app name:[scrubbed] id:1
2015-03-02 09:59:23: App name:[scrubbed] id:1 online
2015-03-02 09:59:26: Starting execution sequence in -fork mode- for app name[scrubbed] id:2
2015-03-02 09:59:26: App name:[scrubbed] id:2 online
2015-03-02 11:07:07: Process with pid 7048 still not killed, retrying...
2015-03-02 11:07:07: App name:[scrubbed] id:1 exited
2015-03-02 11:07:07: Process with pid 7048 killed
2015-03-02 11:07:07: Starting execution sequence in -fork mode- for app name:[scrubbed] id:1
2015-03-02 11:07:07: App name:[scrubbed] id:1 online
The text was updated successfully, but these errors were encountered: