Can't write PID file /var/run/

15 October 2011, 10:54

Hiawatha version: 7.7
Operating System: Ubuntu Server 11.10

After I upgrade to Ubuntu Server 11.10 from 11.04, the following error occurred even I recompiled the Hiawatha :

samiux@ubuntu:/etc/php5/cgi$ sudo netstat -anpt | grep 80
samiux@ubuntu:/etc/php5/cgi$ sudo /etc/init.d/hiawatha start
Starting webserver: Warning: can't write PID file /var/run/
samiux@ubuntu:/etc/php5/cgi$ sudo /etc/init.d/hiawatha restart
Hiawatha is not running
Starting webserver: Error binding
samiux@ubuntu:/etc/php5/cgi$ sudo /etc/init.d/hiawatha stop
Hiawatha is not running
samiux@ubuntu:/etc/php5/cgi$ sudo netstat -anpt | grep 80
tcp 0 0* LISTEN 8846/hiawatha

Any idea?

Hugo Leisink
16 October 2011, 15:53
I have no idea...
Nicolas de Leon
20 October 2011, 02:01
Does /var/run/ exist? If so, what are the permissions on it?
25 October 2011, 19:25
The problem is solved.

The problem is caused by new policy on Ubuntu 11.10 and old apparmour config files are leading to the problem.

This topic has been closed.