question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Watchman errors on app start after upgrading to 0.4.0

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

298reactions
mwilc0xcommented, Apr 18, 2015

Just to update how I solved this:

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

Cheers

48reactions
doukasdcommented, Oct 9, 2017

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

brew install watchman

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why "Watchman crawl failed" error in react-native immediately ...
Go to System preferences > Security & Privacy then scroll down. 2. Select Full Disk Access. 3. Look for all watchmen on the...
Read more >
Troubleshooting | Watchman - Meta Open Source
We try to give directed advice in Watchman error diagnostics, which means that we will show a link to a section on this...
Read more >
unable to resolve module expo-constants - You.com | The search ...
When I run command expo start , Metro bundle starts successfully but when I click on Run on iOS Simulator it throws error....
Read more >
interbit-template - npm
Interbit application template implementing PPC (Public, Private, Control) pattern.. Latest version: 0.4.53, last published: 4 years ago.
Read more >
django-watchman - PyPI
When using watchman with a large number of databases, the default checks can cause an excess of connections to the database / cache...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found