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

UbuntuUpon 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:

as root or with sudo.

A permanent fix is to edit the file /etc/sysctl.conf to include the line:

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [point] com