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

ENOSPC error while running gatsby develop #14553

Closed
sidntrivedi012 opened this issue Jun 5, 2019 · 3 comments
Closed

ENOSPC error while running gatsby develop #14553

sidntrivedi012 opened this issue Jun 5, 2019 · 3 comments

Comments

@sidntrivedi012
Copy link

sidntrivedi012 commented Jun 5, 2019

I was running gatsby develop in my gatsby-starter blog and it gave this error :

success open and validate gatsby-configs - 0.053 s
success load plugins - 23.434 s
success onPreInit - 0.039 s
⠋ initialize cache
/usr/local/lib/node_modules/gatsby-cli/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: ENOSPC: no space left on device, watch '/home/sidntrivedi012/sidntrivedi012.github.io/static'
    at FSWatcher.start (internal/fs/watchers.js:164:26)
    at Object.watch (fs.js:1232:11)
    at createFsWatchInstance (/home/sidntrivedi012/sidntrivedi012.github.io/node_modules/chokidar/lib/nodefs-handler.js:38:15)
    at setFsWatchListener (/home/sidntrivedi012/sidntrivedi012.github.io/node_modules/chokidar/lib/nodefs-handler.js:81:15)
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/sidntrivedi012/sidntrivedi012.github.io/node_modules/chokidar/lib/nodefs-handler.js:233:14)
    at FSWatcher.NodeFsHandler._handleDir (/home/sidntrivedi012/sidntrivedi012.github.io/node_modules/chokidar/lib/nodefs-handler.js:429:19)
    at FSWatcher.<anonymous> (/home/sidntrivedi012/sidntrivedi012.github.io/node_modules/chokidar/lib/nodefs-handler.js:477:19)
    at FSWatcher.<anonymous> (/home/sidntrivedi012/sidntrivedi012.github.io/node_modules/chokidar/lib/nodefs-handler.js:482:16)

 Can anyone please help me out ?
@wardpeet
Copy link
Contributor

wardpeet commented Jun 5, 2019

I believe this is a duplicat of #11406

It’s hitting your system's file watchers limit

Try echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Read more about what’s happening at https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details

Originally posted by @sidharthachatterjee in #11406 (comment)

Does the above solution work for you?

@sidntrivedi012
Copy link
Author

Woww..it does. Thanks a lot @wardpeet 🎉 🎉

@UmarAslamNawab
Copy link

yes it is working 200% :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants