named cannot restart or reload in DA

fmortara

Verified User
Joined
Jul 4, 2006
Messages
87
Why if I try to restart, or reload, or stop named by DA i have an error?
but if i do a shell command, named service run correctly...
 
Is there anything more in the directadmin log? The problem should exist only if the code used to restart bind doesn't match your OS or you used some kind of install which put it in the wrong place.


What OS Distribution do you use? What OS is listed in your DirectAdmin license?

What is the output of:
Code:
# whereis named
and of
Code:
#whereis bind
Jeff
 
No output in DA log,

My os is debian 6.0 64bit and is correctly listed in directadmin license.

Where i must going to see the output of #whereis named and #whereis bind ?
 
This really seems to be a mismatch error between DirectAdmin and your OS Distribution. But I'd expect more symptoms. I suggest you may need to either ask for DirectAdmin support or hire someone for support.

Jeff
 
Hello,

DA will return the message:
Code:
An error has occurred.
if the /etc/init.d/named boot script returns a non-zero return value.

When you run it from ssh, the shell doesn't tell you what the return code is.

Try the following:
1) Go to Admin Level -> Services Monitor, and take note of the PID numbers used for named.

2) Issue a restart for named. Don't worry about the error, if it shows up. We're not concerned if the script returns non-zero, we're only concerned if there is an actual error in the restart.

3) Go back to the Services Monitor. If you see different PID numbers for named, then the restart worked fine, and the script is just not specifying the return code.

4) If the PID number did not change, then the restart failed. Try manually via ssh with a bit of force to resync the pid file:
Code:
killall -9 named
/etc/init.d/named start

Note, by default, DA doesn't touch what the bind package installs. DA relies on the port/package scripts and options by default. These can vary, and may not all return a 0 error code.

We've got a script here which will return an error code of 0, to avoid confusion with regards to that error message.
To install it, use:
Code:
cd /etc/init.d
mv named named.old
wget -O named http://www.directadmin.com/named.debian
chmod 755 named
John
 
Hi.

I have the similar problem.
DA 1.4.3 + Debian 6.0.

In DA system log i have information:
2012:03:07-23:16:01: named reloaded

system syslog is empty

Named is no reloading. The changes are active after manual restart.

What should i do?
Please, help :)

P.S
Sorry for my english
 
Probably something to do with the named boot script. My post #9 should cover all debug points.
Check your system for the named.pid file. Compare it's contents with the PID number tha t named is using, eg:
Code:
ps ax | grep named
cat /var/run/named.pid
or wherever your pid is.
Ensure the /etc/init.d/named boot script is pointing to that file.

Alternatively, the named boot script can be changed so that reload call instead does a full restart.

John
 
Back
Top