Just yesterday yarn start was working perfectly when I needed to set up a development server from the master branch. Today for some reason it keeps failing with failed to watch files! Error: watch /home/user/kibana/src/core_plugins/kibana/common/tutorials/tutorial_category.js ENOSPC
I have tried deleting the kibana folder, recloning, and following the steps in the setting up the development environment guide but it keeps failing.
"ENOSPC" means that there is no space on the drive, so where do you save your file? Might be a disk issue. I think its not related to yarn at all. I also found some one else reported this error : https://github.com/facebook/jest/issues/3254
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
seems to be the solution and worked for me. Too many files are being watched, this command reduces the amount that are watched for large projects.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.