Bind error (Device or resource busy) on domain creation

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?

Status: 
Closed (fixed)

Comments

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.

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.

If you set both those fields to "None" and "Use fixed directory" respectively, does it solve the problem?

that seem to solve the problem!
thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.