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

FileSystemException: Failed to watch path, path = 'XXXX' (OS Error: No space left on device, errno = 28) #1711

Closed
bl4ckm4jick opened this issue Aug 4, 2018 · 7 comments
Labels
area-webdev package:build_runner type-enhancement A request for a change that isn't a bug

Comments

@bl4ckm4jick
Copy link

Dart SDK Version :2.0.0-dev.69.1 (Fri Jul 20 18:30:52 2018 +0200) on "linux_x64"
build_runner 0.9.2

I ran into this issue on Fedora 28 Workstation. When running webdev (through webstorm, but also command line) it throws a failed to watch path error due to errno 28. This was using a vanilla installation of dart-sdk (and webstorm). And creating the default Dart projects

xxx/pub global run webdev serve web:33915
[INFO] Setting up file watchers...
[INFO] Setting up file watchers completed, took 25ms

[INFO] Waiting for all file watchers to be ready...


You have hit a bug in build_runner
Please file an issue with reproduction steps at https://github.com/dart-lang/build/issues


FileSystemException: Failed to watch path, path = 'xxx/untitled2' (OS Error: No space left on device, errno = 28)
dart:isolate  _RawReceivePortImpl._handleMessage

Dart Dev Server terminated

I could not find any issues reporting this in dart, but I was able to resolve the issue by increasing the maximum number of watchers in inotify from 8192 which was the default.

echo 1048576 > /proc/sys/fs/inotify/max_user_watches

or more permanently with editing /etc/sysctl.conf and adding.

fs.inotify.max_user_watches=1048576

At least a more informative error would be helpful, as "No Space left on device" is misleading.

@natebosch
Copy link
Member

Yeah, we do want a better error message for this. Tracking at #867

@MalcolmMielle
Copy link

Can't thank you enough for this. Same machine, same problem ! Solution solved it

@GaspardMerten
Copy link

Thank you for the solution 💯 👍

@basnetjiten
Copy link

echo 1048576 > /proc/sys/fs/inotify/max_user_watches Thank you for figuring this out and solving the problem :)

@insinfo
Copy link

insinfo commented Jan 31, 2020

Thank you for the solution 👍

@tony123S
Copy link

tony123S commented Jul 3, 2020

xxx@xxx:~/AndroidStudioProjects/xxx$ echo 1048576 > /proc/sys/fs/inotify/max_user_watches
bash: /proc/sys/fs/inotify/max_user_watches: Permission denied

How to fix?

@bl4ckm4jick
Copy link
Author

@tony123S you will need to enter the command as root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-webdev package:build_runner type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

8 participants