# CentOS 7: Unable to start BIND after Webmin update

**URL:** <https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035>\
**Category:** Webmin\
**Created:** [September 25, 2022, 4:03pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035 "2022-09-25T16:03:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![goodme](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/goodme/32/1432_2.png) [@goodme](https://forum.virtualmin.com/u/goodme)\
**Post date:** [September 25, 2022, 4:03pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/1 "2022-09-25T16:03:45Z")

</div>

Hi.  
After I update the latest vmin update recently, I noticed the server status on BIND server stop / not started.  
I try to open the BIND DNS config page on webmin, and it shows:  
The primary configuration file for BIND /var/named/chroot/etc/named.conf does not exist, or is not valid. Create it?

With this options:  
Setup nameserver for internal non-internet use only  
Setup as an internet name server, and download root server information  
Setup as an internet name server, but use Webmin’s older root server information

Additional info, I still can do NSLOOKUP on a domain in this server.

Any help would be great on what to do next, thanks.

| SYSTEM INFORMATION | |
| --- | --- |

Operating system CentOS Linux 7.9.2009  
Webmin version 2.001  
Virtualmin version 7.2  
Usermin version 1.860  
Authentic theme version 20.01.1:5

---

<div class="post-metadata">

**Author:** ![nyudoka](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/n/eb8c5e/32.png) [@nyudoka](https://forum.virtualmin.com/u/nyudoka)\
**Post date:** [September 26, 2022, 1:00am UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/2 "2022-09-26T01:00:18Z")

</div>

I had the same problem… a solution is here. [BIND DNS Server uninstalled - chroot issue on 1.999-x update - #27 by Ilia](https://forum.virtualmin.com/t/bind-dns-server-uninstalled-chroot-issue-on-1-999-x-update/116410/27)

---

<div class="post-metadata">

**Author:** ![goodme](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/goodme/32/1432_2.png) [@goodme](https://forum.virtualmin.com/u/goodme)\
**Post date:** [September 26, 2022, 2:13am UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/3 "2022-09-26T02:13:27Z")

</div>

Thanks! it seems fix the problem.

Solution from said link:

> [@CentOS 7: Unable to start BIND after Webmin update](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/15):
>
> Nevermind. I think I still see an issue here for users who has never saved Webmin Bind module config. Anyone with CentOS 7 needs to make sure that /etc/webmin/bind8/config file has the following directives added at the end of the file before installing Webmin 2.001 upgrade: auto\_chroot= chroot= We will try to fix that issue for 2.002 release.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 26, 2022, 2:24am UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/4 "2022-09-26T02:24:47Z")

</div>

The annoying thing is this update was supposed to _fix_ this problem. I’m not sure why you’re seeing it.

---

<div class="post-metadata">

**Author:** ![nyudoka](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/n/eb8c5e/32.png) [@nyudoka](https://forum.virtualmin.com/u/nyudoka)\
**Post date:** [September 26, 2022, 3:05am UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/5 "2022-09-26T03:05:14Z")

</div>

Unlike other users that seemed to experienced it in the prior update, I didn’t. So it was my first time to see it on my server.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 26, 2022, 6:44am UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/6 "2022-09-26T06:44:39Z")

</div>

> [@goodme](#):
>
> I try to open the BIND DNS config page on webmin, and it shows:  
> The primary configuration file for BIND /var/named/chroot/etc/named.conf does not exist, or is not valid. Create it?

Could that you installed Webmin 1.999 first (this is where that bug was introduced) and only then installed Webmin 2.001?

From which Webmin version did you upgrade?

---

<div class="post-metadata">

**Author:** ![goodme](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/goodme/32/1432_2.png) [@goodme](https://forum.virtualmin.com/u/goodme)\
**Post date:** [September 26, 2022, 6:59am UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/7 "2022-09-26T06:59:09Z")

</div>

Previously this server was:  
Operating system CentOS Linux 7.9.2009  
Webmin version 1.999  
Virtualmin version 7.1  
Usermin version 1.854  
Authentic theme version 19.99

and during this update, as like nyudoka said, we don’t find that error before, and we never had a problem. Until last night we upgraded to Webmin version 2.001 and Virtualmin version 7.2, the problem appeared.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 26, 2022, 8:51am UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/8 "2022-09-26T08:51:23Z")

</div>

For those who is still seeing this issue what is the output of:

```nohighlight
cat /etc/webmin/config | grep os_

```

---

<div class="post-metadata">

**Author:** ![nyudoka](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/n/eb8c5e/32.png) [@nyudoka](https://forum.virtualmin.com/u/nyudoka)\
**Post date:** [September 26, 2022, 12:50pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/9 "2022-09-26T12:50:41Z")

</div>

os\_version=15.9  
real\_os\_type=CentOS Linux  
os\_type=redhat-linux  
real\_os\_version=7.9.2009

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 26, 2022, 1:56pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/10 "2022-09-26T13:56:31Z")

</div>

I highly doubt that this is possible while upgrading from Webmin 1.994 directly to 2.001. This bug pops when installing Webmin 1.999 only.

I would assume that you installed Webmin 1.999 and simply didn’t notice this bug?

---

<div class="post-metadata">

**Author:** ![goodme](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/goodme/32/1432_2.png) [@goodme](https://forum.virtualmin.com/u/goodme)\
**Post date:** [September 26, 2022, 4:05pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/11 "2022-09-26T16:05:45Z")

</div>

Nope. We certainly check for such errors after every webmin update such as the server status page.  
During the update to 2.001 which resulted the error of BIND as stated before, our monitor status also report:

```auto
Monitor on xxxx.com for 'BIND DNS Server' has detected that the service is uninstalled at 25/Sep/2022 15:40

```

also it produce error message on virtual server daily backup:

```auto
 Copying records in DNS domain ..
    .. domain not found!

```

There is no way we did not notice this kind of error if it happens before the update.

---

<div class="post-metadata">

**Author:** ![apt\_virtualmin](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/ad7895/32.png) [@apt\_virtualmin](https://forum.virtualmin.com/u/apt_virtualmin)\
**Post date:** [September 26, 2022, 4:52pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/12 "2022-09-26T16:52:45Z")

</div>

So should we at this stage hold off on this update? My config is as follows

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | AlmaLinux Linux 8.6 |
| Webmin version | 1.999 |
| Usermin version | 1.854 |
| Virtualmin version | 7.1 Pro |
| Theme version | 19.99 |
| Package updates | 3 package updates are available |

I currently have no issue with BIND and am running the supposed buggy 1.999?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 26, 2022, 5:15pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/13 "2022-09-26T17:15:38Z")

</div>

> [@apt\_virtualmin](#):
>
> I currently have no issue with BIND and am running the supposed buggy 1.999?

AlmaLinux was never affected by this bug.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 26, 2022, 5:17pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/14 "2022-09-26T17:17:03Z")

</div>

> [@goodme](#):
>
> There is no way we did not notice this kind of error if it happens before the update.

Can I login at your system and have a look?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 26, 2022, 6:04pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/15 "2022-09-26T18:04:31Z")

</div>

Nevermind. I think I still see an issue here for users who has never saved Webmin Bind module config.

Anyone with CentOS 7 needs to make sure that `/etc/webmin/bind8/config` file has the following directives added at the end of the file before installing Webmin 2.001 upgrade:

```auto
auto_chroot=
chroot=

```

We will try to fix that issue for 2.002 release.

---

<div class="post-metadata">

**Author:** ![sonicnoble](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/a4c791/32.png) [@sonicnoble](https://forum.virtualmin.com/u/sonicnoble)\
**Post date:** [September 26, 2022, 6:53pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/16 "2022-09-26T18:53:01Z")

</div>

This also happened to my CentOS 7 after I installed the updates. I immediately noticed that BIND wasn’t running and all dns records were gone for each domain hosted. So I freaked out and restored the previous day back up of my VPS server on Vultr. Now my dashboard appears to be messed up and is missing a bunch of stuff.

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/9/9f2f94b8a8ded25505690a979678c8d60f5b1739.png)

Any idea how to fix this dashboard issue now?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 26, 2022, 7:48pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/17 "2022-09-26T19:48:22Z")

</div>

> [@sonicnoble](#):
>
> Any idea how to fix this dashboard issue now?

You should check on `/etc/webmin/virtual-server/config` and `/etc/webmin/system-status/config` files and that they are in place and look correct.

Moreover, using UI you could check `Webmin ⇾ Webmin Users: Edit Webmin User / Available Webmin modules / System Status / Module Access Control` and see if all system information to show is selected.

* * *

Although, I don’t understand how you’re getting this issue if you’re restored from a snapshot. I would suggest to simply revert to the state before restoring from a snapshot and fix a Bind module issue as described on my previous comment.

---

<div class="post-metadata">

**Author:** ![sonicnoble](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/a4c791/32.png) [@sonicnoble](https://forum.virtualmin.com/u/sonicnoble)\
**Post date:** [September 26, 2022, 8:19pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/18 "2022-09-26T20:19:09Z")

</div>

All the config files are there, don’t know if everything inside them is correct.  
Everything is selected under Available Webmin Modules. Unfortunately I can’t go back to the state before I restored from backup because I didn’t save that state. Should it be safe now to install the updates again after I applied your fix?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 26, 2022, 8:36pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/19 "2022-09-26T20:36:33Z")

</div>

> [@sonicnoble](#):
>
> Should it be safe now to install the updates again after I applied your fix?

Yes, sure! That bug is simple to fix as all one should do is to replace those two lines in Webmin Bind config file.

---

<div class="post-metadata">

**Author:** ![sonicnoble](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/a4c791/32.png) [@sonicnoble](https://forum.virtualmin.com/u/sonicnoble)\
**Post date:** [September 26, 2022, 8:38pm UTC](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/20 "2022-09-26T20:38:13Z")

</div>

I’m sorry but replace what with what? Based on your post it says to add those 2 lines to the end of the file.

[Next page](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035.md?page=2)
