Error installing virtualmin pro

Hi there-

We are attempting to install virtualmin on a new server for migration and received an error on installation. The error logs only to the console, not to the log file.

[19/23] Configuring Webalizer ▒▒▒▒▒▒▒Error: Missing file to read at webalizer::/usr/share/webmin/webalizer/webalizer-lib.pl line 57

Error

Missing file to read at webalizer::/usr/share/webmin/webalizer/webalizer-lib.pl line 57

▣▣▣ Cleaning up

[WARNING] The following errors occurred during installation:

◉ Postinstall configuration returned an error.

Not sure what to do next.

Thank you,

Status: 
Closed (fixed)
Virtualmin version: 
late
Webmin version: 
lates

Comments

Ilia's picture
Submitted by Ilia on Mon, 03/29/2021 - 13:54

Hi,

Thanks for contacting us.

What is your new server OS and version? Want is the service provider? Is this a container?

Hi.

We are on ubuntu 18 in Azure. This is not a container, but it is a VM.

Ilia's picture
Submitted by Ilia on Mon, 03/29/2021 - 14:40

What is the output of:

cat /etc/os-release
cat /etc/webmin/webalizer/config
whereis webalizer
ls -lsa /etc |grep weba
ls -lsa /etc/weba*

.. the work around would be is to fix a Webmin config for Webalizer (/etc/webmin/webalizer/config) and re-run:

virtualmin-config-system -b LAMP

Thank you for the workaround. I am not exactly sure what is wrong w/ webalizer, as we have done nothing to change it, simply have run the installer (and uninstalled between install attempts).

The requested output is:

root@ns1:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

root@ns1:~# cat /etc/webmin/webalizer/config
skip_old=0
webalizer=/usr/bin/webalizer
naked=0
auto=apache,squid,proftpd,wuftpd
webalizer_conf=/etc/webalizer/webalizer.conf
alt_conf=/etc/webalizer/webalizer.conf.sample

root@ns1:~# whereis webalizer
webalizer: /usr/bin/webalizer /etc/webalizer /usr/share/man/man1/webalizer.1.gz

root@ns1:~# ls -lsa /etc |grep weba
  4 drwxr-xr-x   2 root            root              4096 Mar 26 18:58 webalizer

root@ns1:~# ls -lsa /etc/weba*
total 16
 4 drwxr-xr-x   2 root root  4096 Mar 26 18:58 .
12 drwxr-xr-x 126 root root 12288 Mar 29 14:42 ..
 0 -rw-r--r--   1 root root     0 Mar 26 18:58 webalizer.conf
root@ns1:~#

I compared to a working instance's file and found this line missing: auto=apache,squid,proftpd,wuftpd I am re-running the command you provided now.

Ilia's picture
Submitted by Ilia on Mon, 03/29/2021 - 15:46

Error message says that it cannot read the config file. You could check Servers ⇾ Webalizer Logfile Analysis ⇾ Configuration: System configuration to adjust location of configuration file.

thank you! I was able to get this worked out! I appreciate the guidance and shortcut to run that part of the installer!

Curious, is there a way only install certain roles of a virtualmin pro server? For instance, we have a secondary DNS server I would also like to perform backup mail holding if the primary is down, but only want those 2 roles installed. I can open a new issue if that is pref'd.

thanks!

issue resolved after copying files from known-good active server.

Ilia's picture
Submitted by Ilia on Tue, 03/30/2021 - 15:59

What kind of Ubuntu 18.04 image was that? Is it cloud based or clean install?

Status: Fixed » Closed (fixed)

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