Upon installing Azure log collecting agent on Ubuntu machine I encountered the following error:
Failed to add /run/systemd/ask-password to directory watch: No space left on device
df
command showed a lot of space so it’s not about a space itself but about inodes. This error comes from systemctl and described here
As a quick workaround run:
1 |
echo 1048576 > /proc/sys/fs/inotify/max_user_watches |
as root or with sudo.
A permanent fix is to edit the file /etc/sysctl.conf
to include the line:
1 |
fs.inotify.max_user_watches=1048576 |