-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Error watchman took too long to load #239
Comments
watchman
from your terminal https://facebook.github.io/watchman/docs/troubleshooting.html] Error: Watcher took too long to load Try running watchman
from your terminal https://facebook.github.io/watchman/docs/troubleshooting.html at null._onTimeout (/Users/WhackyApps/AwesomeProject/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:71:16) at Timer.listOnTimeout (timers.js:110:15)
Can you verify you installed |
Yes i did the brew install |
Can you increase the wait time in here and try again? https://github.com/facebook/react-native/blob/master/packager/react-packager/src/FileWatcher/index.js#L31 You can find this file in your project_dir/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js |
Same issue with me. $ watchman |
@nuno can you try bumping the wait time? and see if that works (see my previous comment) |
@amasad i increased the time so the thing that changed was this error came when project was starting in simulator but now it starts fine without error but after that when i change in my index.js and reload the simulator by cmd+R it gives the same error |
@amasad no not really, doubled it to 6000 and then 30000 but it still times out |
|
Would be great to see what's in your watchman logs. |
please see https://gist.github.com/kangguru/cdebd0615e883b324a03 but since i clear out the log file no new one was generated |
That log shows:
which is something I've not seen before. It also shows that no watches were ever established. Can you attach the output of these commands:
|
I had the same issue. Tried running |
https://gist.github.com/kangguru/030fedcc477452debc3f somewhere i saw an attempt to open i'll try the reboot then 👯 |
Hmm, did you do a HEAD install? |
had the same issue with 3.0.0, but now i switched back, ran watchman manually (with the flags from the plist) and it worked then unloaded/loaded the plist and it keeps workign fingers crossed :) |
|
restarting my computer fixed the problem. |
Log out and re-log in fixed it for me. |
Can everyone that has had this issue comment here with the version of OS X that they are running? |
I'm running OS X Mavericks (10.9) |
OS X 10.8.5, XCode 5.1.1, iOS SDK 8.2 |
10.9.5 |
@wez I ran into that on 10.10.2 as well. same thing... |
Avoid this problem: ``` $ brew install -v --HEAD watchman ... ==> make install /usr/bin/install -c -d -m 777 /usr/local/Cellar/watchman/HEAD/var/run/watchman ./install-sh -c -d '//usr/local/Cellar/watchman/HEAD/bin' ./install-sh -c -d '//usr/local/Cellar/watchman/HEAD/share/doc/watchman-3.0.0' /usr/bin/install -c -m 644 README.markdown '//usr/local/Cellar/watchman/HEAD/share/doc/watchman-3.0.0' /usr/bin/install -c watchman '//usr/local/Cellar/watchman/HEAD/bin' ==> Cleaning rmdir: /usr/local/Cellar/watchman/HEAD/var/run/watchman (empty) rmdir: /usr/local/Cellar/watchman/HEAD/var/run (empty) rmdir: /usr/local/Cellar/watchman/HEAD/var (empty) ``` facebook/react-native#239 (comment)
10.10.2. Rebooting fixed it. I didn't try the other things. |
10.9.5, I'm not sure how, but I fixed it without re-logging in or restarting. I think I force quit Xcode, iOS Simulator, iTerm and the process com.apple.CoreSimulator.CoreSimulatorService (don't know if it's even related to the simulator, but it wasn't quitting automatically when stopping the simulator). |
If you've landed here and have this issue, please don't just reboot; while that will fix it for you, it won't help us get to the bottom of what isn't working. We'd like to fix it so that you don't need to reboot. facebook/watchman#90 (comment) has the current set of steps that will help us figure this out. Thanks! |
Yep, sounds good to me; thanks! |
@jaichandra Thank you! Reboot just solved the problem! |
on 10.9.5 |
@amasad Can we edit the description of this issue to tell folks to:
And then check the output of Watchman 3.1 is now available in homebrew, so the various docs around this can be changed back from suggesting a HEAD install. While a reboot fixes the immediate problem, upgrading to watchman 3.1 is strongly recommended to resolve a couple of launchd related issues. |
@wez Would it be appropriate to also list this from https://facebook.github.io/watchman/docs/troubleshooting.html? I know we link to the react native troubleshooting guide later in the error message, but it's easy to see this one first:
Not a huge deal, just worried people won't end up looking at both. |
@pcottle Yep, I'll add that to the troubleshooting guide. Can you fix up that "Try running Just running |
@wez done, will also update the docs and the error message |
This still sometimes happen on TravisCI, here is an example run https://travis-ci.org/facebook/react-native/jobs/59088796
Any way to debug that? We do |
@frantic can you have your travis build bits |
I've added https://travis-ci.org/facebook/react-native/jobs/59471656
|
More samples. This is the log when
And here is another failure:
The last record ("...path /Users/travis/build/facebook/react-native...") is missing. Any ideas? |
Summary: @wez Mentioned this in Issue facebook#239 -- right now when watchman takes too long we recommend you run `watchman` from your terminal which actually expects some arguments, so it prints out the following: ``` [pcottle:~/Desktop/react-native:changeErrorMessage]$ watchman { "error": "invalid command (expected an array with some elements!)", "cli_validated": true, "version": "3.0.0" } ``` basically this ends up being more confusing since the command we recommend you run errors out, so lets change it to `watchman version` which at least exists cleanly. I kept the troubleshooting link as https://facebook.github.io/watchman/docs/troubleshooting.html since it sounds like we will update that with the issue people run into in facebook#239 Closes facebook#825 Github Author: Peter Cottle <pcottle@fb.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
if the |
Bumped the timeout to 25 seconds, seeing this in logs
Still, packager reports "Watcher took too long to load", see build logs |
I found out about this fsevents bug today: |
The watchman issue I just cross linked is a perf bug that should only hit very long running instances. I wouldn't expect it to apply in the Travis environment, but in any case, I'd recommend that you bookend your test run with |
Yeah, tried |
Disabled watchman on Travis for now #1140 |
I was on Node.js 0.10. Switching to 0.12 fixed the issue. |
@amasad Does an analogous setting still exist for Thanks! |
Ok, I managed to figure this out. Then in this commit the To change |
I get Error: Watchman error: Watcher took too long to load (WatchmanWatcher) |
EDIT:
Please make sure you're running watchman 3.1. You can upgrade using the following:
Then run
watchman version
to make sure you're running v3.1[Error: Watcher took too long to load Try running
watchman
from your terminal https://facebook.github.io/watchman/docs/troubleshooting.html] Error: Watcher took too long to load Try runningwatchman
from your terminal https://facebook.github.io/watchman/docs/troubleshooting.html at null._onTimeout (/Users/WhackyApps/AwesomeProject/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:71:16) at Timer.listOnTimeout (timers.js:110:15)The text was updated successfully, but these errors were encountered: