Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th November 2006, 22:39
n74jw n74jw is offline
Junior Member
 
Join Date: Oct 2006
Location: Philly, PA USA
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to n74jw
Question The Perfect Setup - Ubuntu 6.10 Server Question

Hello,

I am trying out "The Perfect Setup" for Ubuntu 6.10 server. I am not using the official server-version of Ubuntu but the standard Edgy desktop. All things have been going well thus far. I am not a complete Ubuntu novice, but Bind is something I have never been able to get to work properly. Apparently Bind is biting me in the ass here as well.

My first issue started on step 10, when I was running the command.

chown -R bind:bind /var/lib/named/var/*

The directory did not exist. I changed the second var before the /* to dev and the command completed properly.

The issue became more apparent when I restarted Bind and checked the syslog and found numerous errors, basically indicated Bind did not start.

excerpt...............................

Nov 6 16:15:13 barf named[3719]: found 1 CPU, using 1 worker thread
Nov 6 16:15:13 barf named[3719]: loading configuration from '/etc/bind/named.conf'
Nov 6 16:15:14 barf named[3719]: /etc/bind/named.conf.options:2: change directory to '/var/cache/bind' failed: file not found
Nov 6 16:15:14 barf named[3719]: /etc/bind/named.conf.options:2: parsing failed
Nov 6 16:15:14 barf named[3719]: loading configuration: file not found
Nov 6 16:15:14 barf named[3719]: exiting (due to fatal error)
...........................................

I went on and tried to install mysql, which I also have poor track record.

The second issue was after setting the sql root password, running this command.

mysqldadmin -h <FQDN> -u root password <password>

The result was 'Lost connection to mysql server during query'. So I tried the computer's IP address in place of FQDN, and 127.0.0.1 all with the same result. This is where I stopped. I need to fix my DNS/Bind settings, but have no clue on how to go about doing that. There is a DNS server already on the LAN, servicing the same zone. I am hoping Ubuntu could replace that machine. Could that be an issue? I cannot see whom my Ubuntu server is using for DNS either.

Any help would be great, thanks...

/N
Reply With Quote
Sponsored Links
  #2  
Old 7th November 2006, 17:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by n74jw
Hello,

I am trying out "The Perfect Setup" for Ubuntu 6.10 server. I am not using the official server-version of Ubuntu but the standard Edgy desktop. All things have been going well thus far. I am not a complete Ubuntu novice, but Bind is something I have never been able to get to work properly. Apparently Bind is biting me in the ass here as well.

My first issue started on step 10, when I was running the command.

chown -R bind:bind /var/lib/named/var/*

The directory did not exist. I changed the second var before the /* to dev and the command completed properly.

The issue became more apparent when I restarted Bind and checked the syslog and found numerous errors, basically indicated Bind did not start.

excerpt...............................

Nov 6 16:15:13 barf named[3719]: found 1 CPU, using 1 worker thread
Nov 6 16:15:13 barf named[3719]: loading configuration from '/etc/bind/named.conf'
Nov 6 16:15:14 barf named[3719]: /etc/bind/named.conf.options:2: change directory to '/var/cache/bind' failed: file not found
Nov 6 16:15:14 barf named[3719]: /etc/bind/named.conf.options:2: parsing failed
Nov 6 16:15:14 barf named[3719]: loading configuration: file not found
Nov 6 16:15:14 barf named[3719]: exiting (due to fatal error)
...........................................
Did you install BIND like this?
Code:
apt-get install bind9
Quote:
Originally Posted by n74jw
I went on and tried to install mysql, which I also have poor track record.

The second issue was after setting the sql root password, running this command.

mysqldadmin -h <FQDN> -u root password <password>

The result was 'Lost connection to mysql server during query'. So I tried the computer's IP address in place of FQDN, and 127.0.0.1 all with the same result. This is where I stopped. I need to fix my DNS/Bind settings, but have no clue on how to go about doing that. There is a DNS server already on the LAN, servicing the same zone. I am hoping Ubuntu could replace that machine. Could that be an issue? I cannot see whom my Ubuntu server is using for DNS either.

Any help would be great, thanks...

/N
What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th November 2006, 04:14
r0ydster r0ydster is offline
Junior Member
 
Join Date: Jul 2006
Location: Chicago, IL USA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to r0ydster
Default Thanks

Falko, just wanted to say thanks for the guide. I had no problems with my server installation when following the the guide.

I also used the perfect setup guide for 5.10, and had no issues with that guide as well.

Thanks again for this great resource and keep up the good work!

Mike
Reply With Quote
  #4  
Old 12th December 2006, 03:06
PrawnStar PrawnStar is offline
Junior Member
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via ICQ to PrawnStar Send a message via AIM to PrawnStar Send a message via Yahoo to PrawnStar
Default

Quote:
Originally Posted by n74jw
My first issue started on step 10, when I was running the command.

chown -R bind:bind /var/lib/named/var/*

The directory did not exist. I changed the second var before the /* to dev and the command completed properly.

The issue became more apparent when I restarted Bind and checked the syslog and found numerous errors, basically indicated Bind did not start.

excerpt...............................

Nov 6 16:15:13 barf named[3719]: found 1 CPU, using 1 worker thread
Nov 6 16:15:13 barf named[3719]: loading configuration from '/etc/bind/named.conf'
Nov 6 16:15:14 barf named[3719]: /etc/bind/named.conf.options:2: change directory to '/var/cache/bind' failed: file not found
Nov 6 16:15:14 barf named[3719]: /etc/bind/named.conf.options:2: parsing failed
Nov 6 16:15:14 barf named[3719]: loading configuration: file not found
Nov 6 16:15:14 barf named[3719]: exiting (due to fatal error)
...........................................

/N
I also got the first problem and found it was due to the pid file being stored inside the chroot...

If you are having this problem then try setting dirs/files up like this:

drwxr-xr-x 2 bind bind 4096 Dec 12 01:56 /var/lib/named/var/run/bind/run/
root@mail:/etc/bind# ls -l /var/lib/named/var/run/bind/run/
total 4
-rw-r--r-- 1 bind bind 6 Dec 12 01:56 named.pid

It worked for me, and now I'm going to bed

p.s. not sure about the mysql problem
Reply With Quote
  #5  
Old 27th January 2008, 06:12
GiuseppeConlon GiuseppeConlon is offline
Junior Member
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I too am having the same bind error as OP though I did not have the trouble with /var/lib/named/var/ not existing.

I installed bind using:

Code:
apt-get install bind9
As for named.pid, it does not exist on my system.

Any help is appreciated, thanks.
Reply With Quote
  #6  
Old 27th January 2008, 12:14
PrawnStar PrawnStar is offline
Junior Member
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via ICQ to PrawnStar Send a message via AIM to PrawnStar Send a message via Yahoo to PrawnStar
 
Default

named.pid won't exist until bind has been started. It hold the Process ID of the bind daemon.

Have a look for the processes running:
# ps -ef | grep named

if this doesn't return anything then you should try to start it:
# /etc/init.d/bind9 start

watch for errors:
# tail -n 100 /var/log/syslog

If it doesn't start you should hopefully get some nice messages telling you why.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
How stable/secure is the server after the Perfect Setup (Ubuntu 6.06) install? carloscastaneda HOWTO-Related Questions 6 3rd February 2007 18:34
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 10:07
Perfect Setup Ubuntu 6.06 Server Damnation HOWTO-Related Questions 1 19th August 2006 13:49
Help with The Perfect Setup - Ubuntu 6.06 LTS Server LinuxNewb HOWTO-Related Questions 6 30th July 2006 13:43


All times are GMT +2. The time now is 21:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.