Starting from ver.7.7, Virtualmin no longer creates ZONE files.
ZONE file is not created even with ver.7.20.2.
It works fine if you downgrade to ver.7.5.
I’ve been using BIND with chroot in Virtualmin for the past 10 years.
This is the first time that the ZONE file is not created.
Virtualmin → Create Virtual Server → Create Server
Adding new DNS zone ..
.. DNS domain failed! : bind8::flush_file_lines failed : Failed to open /var/bind9/chroot/tmp/.webmin/945899_93747_2_domain_setup.cgi for writing : No such file or directory
The domain is displayed in Existing DNS Zones, but
ZONE file does not exist.
Ubuntu 20.04 and Ubuntu 22.04 also work fine with ver7.5, but
If it is version 7.7 or higher, a ZONE file will not be created.
Just to be sure, I installed Debian 12 on the same VPS and tested it with the same configuration, but
ZONE files were not created in ver.7.7 or higher.
I’ve been waiting for it to recover since June last year.
I am posting this because the problem continues this year.
It worked fine up to ver7.5, but why does this problem occur with ver7.7 or higher with the exact same configuration?
Very sorry. Please excuse any unnatural sentences as I am using a translation.
Up to ver.7.5, domains could be added successfully. ZONE files are no longer created from ver.7.7. I am having trouble because this problem continues even with the current version 7.20.2.
I read the topics you suggested, but I didn’t know what to do.
Well ver 7.2 is lower than ver 7.5 or ver 7.7, and if these are virtualmin versions they have not been released yet, where did you get those versions from
Yes but clearly something went wrong with the ability to count version when 6.0x became 7.xx and folk wonder why there is confusion.
Anyway I still do not understand why your problem exists (apparently has existed) from 7.05.x/7.07.x all the way till now on 7.20.x - I would have thought someone also would have spotted the same problem and it would have received urgent attention.
Over that time period I do believe there has been at least an update to BIND (maybe some configuration change?)
I repeatedly used “Create Virtual Server” and “Delete Virtual Server” while adjusting ownership and permissions (e.g., chown bind:bind, chown root:bind, chmod 777, etc.).
The following two errors appeared in /var/webmin/miniserv.error approximately as often as the test runs:
readline() on closed filehandle $FILE at /usr/share/webmin/bind8/records-lib.pl line 49. readline() on closed filehandle $FILE at records-lib.pl line 49.
These errors occur with Virtualmin versions 7.7 and 7.20.2, but not with version 7.5.
Could this issue be related to changes made in version 7.6 or 7.7?
Since I lack the technical skills to investigate or adjust the internals of Virtualmin, my options are limited to:
Abandon using chroot with BIND9.
Continue using Virtualmin version 7.5.
I have been using chroot for over 10 years, so the thought of discontinuing it is quite concerning.
Any insights or recommendations would be greatly appreciated.