Brian asked:
On a Rackspace cloud server I see:
[email protected]:/etc/nginx$ sudo /etc/init.d/nginx start
Starting nginx: nginx: [crit] pwrite() "/var/run/nginx.pid" failed (28: No space left on device)
nginx.
[email protected]:/etc/nginx$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.4G 6.6G 2.4G 74% /
udev 10M 8.0K 10M 1% /dev
none 25M 25M 0 100% /run
none 5.0M 0 5.0M 0% /run/lock
none 123M 0 123M 0% /run/shm
[email protected]:/etc/nginx$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 1245184 154910 1090274 13% /
udev 31392 427 30965 2% /dev
none 31392 1374 30018 5% /run
none 31392 2 31390 1% /run/lock
none 31392 1 31391 1% /run/shm
Any ideas?
My answer:
You have indeed run out of space on /run
(which is symlinked from /var/run
on newer versions of Fedora and possibly other distributions). Check the directory and remove any unnecessary files, and consider giving it more space.
View the full question and any other answers on Server Fault.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.