React native | Watchman error
When you are running react native server and have this error because of fb-watchman:
ERROR A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1453555797: inotify-add-watch(/home/yottanami/src/chikare/node_modules/react-native/node_modules/babel-plugin-syntax-async-functions/node_modules/babel-runtime/node_modules/core-js/library/es6) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
{"watchmanResponse":{"version":"4.1.0","error":"A non-recoverable condition has triggered. Watchman needs your help!\nThe triggering condition was at timestamp=1453555797: inotify-add-watch(/home/yottanami/src/chikare/node_modules/react-native/node_modules/babel-plugin-syntax-async-functions/node_modules/babel-runtime/node_modules/core-js/library/es6) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl\nAll requests will continue to fail with this message until you resolve\nthe underlying problem. You will find more information on fixing this at\nhttps://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch\n"}}
Error: A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1453555797: inotify-add-watch(/home/yottanami/src/chikare/node_modules/react-native/node_modules/babel-plugin-syntax-async-functions/node_modules/babel-runtime/node_modules/core-js/library/es6) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
you can fix it by this command:
echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_instances && watchman shutdown-server
Written by Behnam Ahmad khan beigi
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#React native
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#