Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
named show crashed, won't umount chroot dirs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Dr_b_
n00b
n00b


Joined: 18 Jan 2004
Posts: 33

PostPosted: Wed Sep 05, 2018 1:37 am    Post subject: named show crashed, won't umount chroot dirs Reply with quote

Need a bit of help trying to figure out why named won't start or stop correctly

Code:
~ # /etc/init.d/named start
 * Starting chrooted named ...
 * Mounting chroot dirs
 * Checking named configuration ...                                                                                   [ ok ]
 * start-stop-daemon: failed to start `/usr/sbin/named'                                                               [ !! ]
 * ERROR: named failed to start

~#ps ax | grep named     
 6678 ?        SNsl   0:00 /usr/sbin/named -u named -n 1 -t /named



Code:
~ # mount | grep named
/dev/nvme1n1p3 on /named/etc/bind type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=5,subvol=/etc/bind)
/dev/nvme1n1p3 on /named/var/bind type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=5,subvol=/var/bind)
/dev/nvme1n1p3 on /named/var/log/named type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=5,subvol=/var/log/named)


Also named won't stop, thinks its crashed, and won't umount chroot dirs.

DNS resolves fine and works both for zones and as a relay

Nothing shows up in messages or named.log that provides a clue
Back to top
View user's profile Send private message
deagol
n00b
n00b


Joined: 12 Jul 2014
Posts: 61

PostPosted: Wed Oct 10, 2018 9:22 pm    Post subject: Reply with quote

Not sure if it's related, but it may well be...
The openrc init script is broken and has some serious defects.
From what I remember I was unable to restart named correctly when using chroot on top of the selinux issues. There is an problem with the pid file location, which prevents named to shut down correctly when running in chroot. (The initial start works, but restarting it will not.)

So you may be interested in my attempt of a address the more obvious defects in this bug: https://bugs.gentoo.org/show_bug.cgi?id=601510
The script in the bug report is working for my setup at least. But it's far from fool-proof and unexpected setting can still cause problems...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum