LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-19-2008, 03:16 PM   #1
skibler1223
Member
 
Registered: Feb 2008
Distribution: Kubuntu 8.10
Posts: 40

Rep: Reputation: 16
bind (named) won't start


Here's my scenario, I used to have a named server running nearly flawless, even getting updated by my dhcpd server.

I had my config and zone files backed up. I basically overhauled my server...more specifically built a new one . On the new server I installed named via the package manager of my server.

I was quite bothered by it being placed in /var/lib/named, so making a bad decision I moved it all to /var/named. I did modify the /etc/init.d/named start script file to reflect the directory change (for chroot).

Getting to the actual problem:

When I start named I get the following error in /var/log/messages:
Code:
Jul 19 16:07:24 localhost named[13150]: couldn't open pid file '/var/run/named/named.pid': No such file or directory
Jul 19 16:07:24 localhost named[13150]: exiting (due to early fatal error)
ls -lR of /var/named
Code:
.:
total 12K
drwxr-xr-x 2 root root 4.0K 2008-07-18 13:21 dev
drwxr-xr-x 2 root root 4.0K 2008-07-19 16:07 etc
drwxr-xr-x 6 root root 4.0K 2008-07-18 12:58 var

./dev:
total 0
crw-rw-rw- 1 root root 1, 3 2008-07-18 13:21 null
crw-rw-rw- 1 root root 1, 8 2008-07-18 13:21 random
crw-rw-rw- 1 root root 1, 8 2008-07-18 13:21 urandom

./etc:
total 16K
-rw-r--r-- 1 root root  3.5K 2008-07-19 16:07 localtime
-rw-r----- 1 root named 1.5K 2008-07-19 15:35 named.conf
-rw-r----- 1 root named  479 2008-07-19 15:33 rndc.conf
-rw-r----- 1 root named  113 2008-07-19 15:19 rndc.key

./var:
total 16K
drwxr-x--- 2 named named 4.0K 2008-07-19 15:22 log
drwxr-x--- 2 named named 4.0K 2008-07-19 15:41 named
drwxr-x--- 2 named named 4.0K 2008-07-19 16:06 run
drwxr-x--- 2 named named 4.0K 2008-07-08 21:41 tmp

./var/log:
total 0
-rw-r----- 1 named named 0 2008-07-19 15:22 named_auth.log
-rw-r----- 1 named named 0 2008-07-19 15:22 named_info.log
-rw-r----- 1 named named 0 2008-07-19 15:22 named_update.log

./var/named:
total 24K
-rw-r----- 1 named named  329 2008-07-19 15:30 named.23.23.10.in-addr.arpa
-rw-r----- 1 named named 1.6K 2008-07-19 15:23 named.ca
-rw-r----- 1 named named  442 2008-07-19 15:28 named.home.lnx
-rw-r----- 1 named named  225 2008-07-19 15:23 named.local
-rw-r----- 1 named named 4.4K 2008-07-19 15:23 named.run

./var/run:
total 0
-rw-r----- 1 named named 0 2008-07-19 16:06 named.pid

./var/tmp:
total 0
Running the following command produces no output or log output
Code:
named -c /etc/named.conf -f -t /var/named/ -u named
I am sure it is a problem with chrooting, perhaps named is not chrooting and its looking for files based on the real root directory.

If anyone has any solutions/ideas/input etc please be generous! Otherwise I am going to remove the install, download compile and install from source as I got it to work that way before.

Thanks,
Sean
 
Old 07-21-2008, 01:39 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Is there a /var/run/named and it is owned by named?

You could also try removing /var/run/named and doing:
Code:
# ln -s /var/named/var/run /var/run/named
 
Old 07-21-2008, 02:35 AM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
According to your listings, the ditrectory var/run/named doesn't exist
 
Old 07-22-2008, 08:09 PM   #4
skibler1223
Member
 
Registered: Feb 2008
Distribution: Kubuntu 8.10
Posts: 40

Original Poster
Rep: Reputation: 16
billymayday:
Quote:
According to your listings, the ditrectory var/run/named doesn't exist
Oh my....I can't believe I didn't recognize that. I have got to quit pulling late night server tasks!

Thank you both very much, suppose I just needed a second set of eyes to see what I missed.

Started up fine after actually having the proper directory structure under the chroot /var/named.

Sean
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
service named cant start error in named.conf file gayanasa Linux - Server 2 07-02-2008 09:58 AM
named / BIND won't start TruthSeeker Linux - Newbie 5 07-24-2006 08:40 AM
bind and named Red Squirrel Linux - Software 3 04-25-2004 09:49 PM
BIND problem... named will not even start. SniperDevil Linux - Networking 4 01-13-2004 04:43 PM
How to Start Named - DNS Bind on boot-up. 360 Linux - Networking 0 05-26-2002 08:52 PM


All times are GMT -5. The time now is 05:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration