[arch-general] systemd claims /run out of space

Thomas Bächler thomas at archlinux.org
Mon Jan 13 14:10:59 EST 2014

Am 13.01.2014 17:54, schrieb Jameson:
> For some reason on my home server, systemd is often telling me I'm out
> of space, but I can't find a problem. Just now, I stopped httpd, and
> when I try to start it, again, systemd says I'm out of space, the
> status reports:  systemd[1]: Failed to set a watch for httpd.service's
> PID file /run/httpd/httpd.pid: No space left on device.

That error message is confusing. The inotify_add_watch() system call
returns ENOSPC. Usually, ENOSPC means "No space left on device", and the
strerror() library call translates it to that. However, in the context
of inotify_add_watch(), it means:

 ENOSPC The user limit on the total number of inotify watches was
reached or the kernel failed to allocate a needed resource.

So, it seems that you allocated many many inotify watches and need to
increase the limit.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140113/f711e311/attachment-0001.asc>

More information about the arch-general mailing list