Creating a new domain (website) and get this three errors which seem to be same:
1)
Adding new DNS zone ..
.. BIND DNS domain failed! : Failed to replace /var/named/chroot/etc/named.conf with /var/named/chroot/etc/named.conf.webmintmp.24045 : Device or resource busy at ../web-lib-funcs.pl line 1360.
2)
Performing other Apache configuration ..
.. configuration failed : Failed to replace /var/named/chroot/etc/named.conf with /var/named/chroot/etc/named.conf.webmintmp.24045 : Device or resource busy at ../web-lib-funcs.pl line 1360.
3)
Setting up AWstats reporting ..
.. AWstats reporting failed! : virtualmin-awstats::feature_setup failed : Failed to replace /var/named/chroot/etc/named.conf with /var/named/chroot/etc/named.conf.webmintmp.24045 : Device or resource busy at ../web-lib-funcs.pl line 1360.
is this a bug?
how to fix it?
Comments
Submitted by JamieCameron on Fri, 08/10/2012 - 11:59 Comment #1
Looks like Virtualmin is writing into the chroot directory for BIND when it shouldn't be.
If you go to Webmin -> Servers -> BIND DNS Server -> Module Config, what are the "Chroot directory to run BIND under" and "Command to find chroot directory" set to? They should be both empty.
Submitted by rulez22 on Fri, 08/10/2012 - 12:25 Comment #2
they are not
"Chroot directory to run BIND under" is set to "/var/named/chroot"
and
"Command to find chroot directory" is set to "sh -c '. /etc/sysconfig/named && echo "$ROOTDIR"'"
I've got 64bit version of Centos and remember updating Bind via Virtualmin a few days ago. That's probably what happenned.
Submitted by JamieCameron on Fri, 08/10/2012 - 12:34 Comment #3
If you set both those fields to "None" and "Use fixed directory" respectively, does it solve the problem?
Submitted by rulez22 on Fri, 08/10/2012 - 18:15 Comment #4
that seem to solve the problem!
thanks!
Submitted by JamieCameron on Fri, 08/10/2012 - 18:31 Comment #5
Submitted by Issues on Fri, 08/24/2012 - 18:46 Comment #6
Automatically closed -- issue fixed for 2 weeks with no activity.