I'm running Lubuntu 16.04. After running the system for a while the wireless internet will stop working.

Dutifully, I run:

sudo service network-manager restart

But this returns the message:

Failed to add /run/systemd/ask-password to directory watch: No space left on device

But I have lots of space available on the hard disk, in RAM, and via swap. What's going on?

up vote 24 down vote accepted

As discussed here, it turns out that the Crashplan back-up service is the most likely culprit. It uses many inotify watches and, eventually, eats them all up.

The immediate fix is to run:

sudo -i
echo 1048576 > /proc/sys/fs/inotify/max_user_watches
exit

To make more watches available.

The long-term fix is to edit the file /etc/sysctl.conf to include the line:

fs.inotify.max_user_watches=1048576

Edit: It's been a few days now, and the problem hasn't arisen since I performed the above.

  • Are there any updates - is the fix still working? Or is there a Crashplan bug that needs addressing? Thanks! – Giles B Oct 6 '16 at 16:43
  • @GilesB: I have not had a problem with my internet since, so I believe this solved the problem. It would be handy if Crashplan checked this value and alerted the user to potential problems before they arose. – Richard Oct 7 '16 at 2:31
  • 1
    The solution described above remains the recommended solution on CrashPlan's support site: support.code42.com/CrashPlan/4/Troubleshooting/… – kiprainey Oct 21 '16 at 13:54
  • as up to date the problem still exist and the max_user_watches hasn't solved it unfortunately – Oleg Kokorin Jul 4 at 15:15
  • may sudo sysctl -p will help. code.visualstudio.com/docs/setup/… – SohelAhmedM Oct 26 at 16:18

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.