Forum

Can't write PID file /var/run/hiawatha.pid

Samiux
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/hiawatha.pid.
Hiawatha
samiux@ubuntu:/etc/php5/cgi$ sudo /etc/init.d/hiawatha restart
Hiawatha is not running
Starting webserver: Error binding 0.0.0.0:80
error!
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 0.0.0.0:80 0.0.0.0:* LISTEN 8846/hiawatha


Any idea?

Samiux
Hugo Leisink
16 October 2011, 15:53
I have no idea...
Nicolas de Leon
20 October 2011, 02:01
Does /var/run/hiawatha.pid exist? If so, what are the permissions on it?
Samiux
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.

Samiux
This topic has been closed.