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

Watchman errors on app start after upgrading to 0.4.0 #910

Closed
mwilc0x opened this issue Apr 17, 2015 · 9 comments
Closed

Watchman errors on app start after upgrading to 0.4.0 #910

mwilc0x opened this issue Apr 17, 2015 · 9 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@mwilc0x
Copy link
Contributor

mwilc0x commented Apr 17, 2015

Getting multiple errors at app start after upgrading an existing app from 0.3.11 to 0.4.0.

Using 0.3.11 everything is fine.

First, when running cmd + R from Xcode, this error is appearing in the packager window:

 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 running `watchman` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
    at null._onTimeout (/Users/mikewilcox/code/randUM/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:74:16)
    at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)

so then followed and tried to npm start from the shell and got this:

Error: watch EMFILE
    at errnoException (fs.js:1030:11)
    at FSWatcher.start (fs.js:1062:11)
    at Object.fs.watch (fs.js:1087:11)
    at NodeWatcher.watchdir (/Users/mikewilcox/code/randUM/node_modules/react-native/node_modules/sane/src/node_watcher.js:144:20)
    at Walker.<anonymous> (/Users/mikewilcox/code/randUM/node_modules/react-native/node_modules/sane/src/node_watcher.js:351:12)
    at Walker2015-04-17 19:42 node[25755] (FSEvents.framework) .emit (events.js:98:17)
    at /Users/mikewilcox/code/randUM/node_modules/react-native/node_modules/sane/node_modules/walker/lib/walker.js:69:16
    at Object.oncomplete (fs.js:107:15)
FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
2015-04-17 19:42 node[25755] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
@mwilc0x
Copy link
Contributor Author

mwilc0x commented Apr 18, 2015

Just to update how I solved this:

brew uninstall watchman
brew link automake
brew install --HEAD watchman

Cheers

@Gregoirevda
Copy link
Contributor

This fixed it for me :
rm -rf /usr/local/var/run/watchman/ && brew uninstall watchman && brew install watchman

@ngoctr
Copy link

ngoctr commented Jul 26, 2017

Confirmed. Reinstall watchman fixed this issue. I got this issue when upgrading from 0.44 to 0.46.4.

@limeytrader007
Copy link

Did you salute it?

@doukasd
Copy link

doukasd commented Oct 9, 2017

I did not have watchman installed (new pc). So the solution for me was just:

brew install watchman

@batmanhit
Copy link

reinstalling watchman is marvelous

@preethi-pnrao
Copy link

I had installed watchman but facing issue cause it was not linked. Linking also will work.
brew link watchman

@KoalaNation
Copy link

Probs to reinstalling watchman saved it for me! Thanks for helping Guys!

@IWantToLearnCoding
Copy link

Life rule - Just install watchman!!!

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

10 participants