Help - Search - Members - Calendar
Full Version: couldn't open pid file
The Planet Forums > System Administration > DNS Hosting
shinomen
I'm having problems with the dns running on my server here is my log file:

Feb 8 17:12:03 compro named[5085]: starting BIND 9.2.4 -u named -c /etc/named.conf -u named -t /var/named/run-root
Feb 8 17:12:03 compro named[5085]: using 1 CPU
Feb 8 17:12:03 compro named[5085]: loading configuration from '/etc/named.conf'
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface lo, 127.0.0.1#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0, 74.52.192.210#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0:0, 74.52.192.211#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0:1, 74.52.192.212#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0:2, 74.52.192.213#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0:3, 74.52.192.214#53
Feb 8 17:12:03 compro named[5085]: command channel listening on 127.0.0.1#953
Feb 8 17:12:03 compro kernel: audit(1170972723.778:7): avc: denied { unlink } for pid=5086 comm="named" name="named.pid" dev=hda3 ino=1310809 scontext=user_u:system_r:named_t tcontext=system_u:object_r:named_zone_t tclass=file
Feb 8 17:12:03 compro named[5085]: couldn't open pid file '/var/run/named/named.pid': File exists
Feb 8 17:12:03 compro named[5085]: exiting (due to early fatal error)
Feb 8 17:12:03 compro named: named startup failed

I've been working on this for the past 6 hours and can't get it to work fully.

Can anyone help
theuruguayan
QUOTE (shinomen @ Feb 8 2007, 10:14 PM) *
I'm having problems with the dns running on my server here is my log file:

Feb 8 17:12:03 compro named[5085]: starting BIND 9.2.4 -u named -c /etc/named.conf -u named -t /var/named/run-root
Feb 8 17:12:03 compro named[5085]: using 1 CPU
Feb 8 17:12:03 compro named[5085]: loading configuration from '/etc/named.conf'
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface lo, 127.0.0.1#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0, 74.52.192.210#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0:0, 74.52.192.211#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0:1, 74.52.192.212#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0:2, 74.52.192.213#53
Feb 8 17:12:03 compro named[5085]: listening on IPv4 interface eth0:3, 74.52.192.214#53
Feb 8 17:12:03 compro named[5085]: command channel listening on 127.0.0.1#953
Feb 8 17:12:03 compro kernel: audit(1170972723.778:7): avc: denied { unlink } for pid=5086 comm="named" name="named.pid" dev=hda3 ino=1310809 scontext=user_u:system_r:named_t tcontext=system_u:object_r:named_zone_t tclass=file
Feb 8 17:12:03 compro named[5085]: couldn't open pid file '/var/run/named/named.pid': File exists
Feb 8 17:12:03 compro named[5085]: exiting (due to early fatal error)
Feb 8 17:12:03 compro named: named startup failed

I've been working on this for the past 6 hours and can't get it to work fully.

Can anyone help


did you check poermitions on the folder?
do you have selinux enable?
shinomen
QUOTE (theuruguayan @ Feb 8 2007, 08:37 PM) *
did you check poermitions on the folder?
do you have selinux enable?



I have check permissions but they all seem to be correct. I am running centos. When I start named from the command prompt using

named -u named -c /etc/named.conf

I get an error that says "could not configure root hints from 'named.ca': file not found"

I am using plesk to try and restart the dns (which fails) but it uses the following command
starting BIND 9.2.4 -u named -c /etc/named.conf -u named -t /var/named/run-root

which gives the errors
Feb 8 20:52:51 compro kernel: audit(1170985971.800:12): avc: denied { unlink } for pid=6493 comm="named" name="named.pid" dev=hda3 ino=1310809 scontext=user_u:system_r:named_t tcontext=system_u:object_r:named_zone_t tclass=file
Feb 8 20:52:51 compro named[6492]: couldn't open pid file '/var/run/named/named.pid': File exists
Feb 8 20:52:51 compro named[6492]: exiting (due to early fatal error)
Feb 8 20:52:51 compro named: named startup failed


Thanks for any help.
James Jhurani
QUOTE (shinomen @ Feb 9 2007, 01:57 AM) *
I have check permissions but they all seem to be correct. I am running centos. When I start named from the command prompt using

named -u named -c /etc/named.conf

I get an error that says "could not configure root hints from 'named.ca': file not found"

I am using plesk to try and restart the dns (which fails) but it uses the following command
starting BIND 9.2.4 -u named -c /etc/named.conf -u named -t /var/named/run-root

which gives the errors
Feb 8 20:52:51 compro kernel: audit(1170985971.800:12): avc: denied { unlink } for pid=6493 comm="named" name="named.pid" dev=hda3 ino=1310809 scontext=user_u:system_r:named_t tcontext=system_u:object_r:named_zone_t tclass=file
Feb 8 20:52:51 compro named[6492]: couldn't open pid file '/var/run/named/named.pid': File exists
Feb 8 20:52:51 compro named[6492]: exiting (due to early fatal error)
Feb 8 20:52:51 compro named: named startup failed
Thanks for any help.


login as root and..

"rm -rf /var/run/named/named.pid"
"killall -9 named"
"/etc/init.d/named stop"
"/etc/init.d/named start"

hopefully that should solve the problem.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.