Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Debian 9 - Seafile Causing Sound To Not Work

In my switch from Ubuntu to Debian, I noticed that my sound suddenly stopped working. I only managed to figure it out when I ran:

pulseaudio

... and got the following error output:

E: [pulseaudio] module-udev-detect.c: You apparently ran out of inotify watches, probably because ...

Seafile uses inotify to watch for files changing so the problem/resolution became clear. I had set seafile to launch on startup which must have caused the issue. Rather than stop seafile launching on startup, I just need to increate the max number of watches.

Thus I edited the root crontab file:

sudo crontab -e

And added the following line:

@reboot echo 100000000000000 | sudo tee /proc/sys/fs/inotify/max_user_watches

I then rebooted to test that this fixed the issue, which it did. I hope that this might save someone else some pain in the future.

References

Last updated: 2nd September 2018
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch