FreeBSD 14: Sidebar menu disappears after configuration check

The contents of the side menu disappeared after Checking Configuration

SYSTEM INFORMATION
OS type and version FreeBSD 14.5
Webmin version 2.670
Virtualmin version 8.3.0 GPL
Webserver version Apache 2.4.71

After installing Virtualmin 8.3.0 GPL on FreeBSD 14, I clicked the “Re-check and refresh configuration” button to verify the settings.
As a result, the contents of the side menu disappeared, as shown in the image below.
If I remove Virtualmin 8.3.0 GPL and install Virtualmin 8.1.0 GPL instead, the menu displays correctly.
What should I check to resolve this?

Hello,

Thanks for reaching out!

It’s not yet clear what could be causing that, but it does seem related to what you already reported:

I’d suggest checking the logs for more detail. I’d also diff /etc/webmin before and after the check to understand which files changed.

Thank you for your reply.

Comparing the configuration before and after the configuration check yielded the following results.

# diff -r webmin.bak webmin
diff -r webmin.bak/virtual-server/config webmin/virtual-server/config
464c464
< last_check=1795313633
---
> last_check=1795313648
472c472
< old_defip=
---
> old_defip=***.***.***.***
498a499,503
> external_ip_cache=***.***.***.***
> external_ip_cache_time=1795313647
> btrfs_quotas=
> home_quotas=/home
> group_quotas=1
Only in webmin/virtual-server: last-config

(In reality, the correct IP address is set in place of ***.***.***.***)

After reverting the config file line by line, I found that deleting the following line brought back the side menu.

home_quotas=/home

Upon further investigation, I found that simply setting “home_quotas=” (leaving the value blank) was enough to make the side menu appear.
What is incorrect here? What does this parameter signify?

Thanks! This is helpful. This is a bug, and it was fixed here:

If you have the webmin command in your Webmin installation, you could run the following to apply the patch:

webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/a6ddbc8

The webmin command was not present in FreeBSD 14, so I applied a patch manually.
Unfortunately, however, the side menu still does not appear in my environment.
I’ll look into it a bit further to see if I can figure anything out. Thanks a lot!

I had a quick try with Freebsd, looks like webmin command is not in the PATH, with the help of AI you found a fix by creating symlink to fix PATH issue.
ln -s /usr/local/lib/webmin/bin/webmin /usr/local/bin/webmin
This still caused a error
‘’‘Failed to open /etc/webmin/miniserv.conf’‘’
This happens because the Webmin CLI defaults to looking in /etc/webmin (the Linux path), whereas FreeBSD stores Webmin’s configuration in /usr/local/etc/webmin

create a second symlink to fix that
ln -s /usr/local/etc/webmin /etc/webmin

Hope that helps. @Ilia is that ok to do?

Yeah, it’s generally fine.

@Jamie, why don’t we install the webmin command properly with our setup script on non-Linux systems?

I just noticed he did a virtualmin install, I only tried webmin.

I can’t see any reason not to! We could put it in /usr/local/bin/

I tried the following command line:

/usr/local/lib/webmin/bin/webmin -c /usr/local/etc/webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/a6ddbc8

However, this returned the following error:

Patch failed: patch: unrecognized option `--verbose'
usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]
             [-F max-fuzz] [-i patchfile] [-o out-file] [-p strip-count]
             [-r rej-name] [-V t | nil | never | none] [-x number]
             [-z backup-ext] [--posix] [origfile [patchfile]]
       patch <patchfile

I believe this is because the /usr/bin/patch in FreeBSD is not GNU patch.
So I chose to apply the patch manually.

Thanks, we will fix that:

Alright, implemented here. Please check:

I have confirmed that the modified patch command works correctly in my environment.
Thank you very much.