Today i had an update for Virtualmin and after that Virtualmin/Webmin is not able to autostart after server reboot. If i remember correctly last updates were MySQL database server, disk filesystems and not sure if was one more.
From miniserv.log:
xxx.xxx.xxx.xxx - root [02/Feb/2015:14:17:54 +0100] “GET / HTTP/1.1” 200 517
xxx.xxx.xxx.xxx - root [02/Feb/2015:14:17:55 +0100] “GET /newleft.cgi HTTP/1.1” 200 15624
xxx.xxx.xxx.xxx - root [02/Feb/2015:14:17:55 +0100] “GET /newright.cgi?open=system&auto=status&open=updates&open=common&open=owner&open=reseller&open=vm2limits&open=vm2usage HTTP/1.1” 200 15771
miniserv.error:
[02/Feb/2015:14:17:46 +0100] miniserv.pl started
[02/Feb/2015:14:17:46 +0100] Using MD5 module Digest::MD5
[02/Feb/2015:14:17:46 +0100] Perl module Authen::PAM needed for PAM is not installed : Can’t locate Authen/PAM.pm in @INC (@INC contains: /usr/libexec/webmin /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 13) line 1.
BEGIN failed–compilation aborted at (eval 13) line 1.
Use of uninitialized value in pattern match (m//) at /usr/libexec/webmin/virtual-server-theme/newleft.cgi line 40.
Use of uninitialized value in numeric eq (==) at /usr/libexec/webmin/virtual-server-theme/newleft.cgi line 51.
Use of uninitialized value $gaccess{“webminsearch”} in string ne at /usr/libexec/webmin/virtual-server-theme/newleft.cgi line 151.
Use of uninitialized value in string eq at /usr/libexec/webmin/virtual-server-theme/newleft.cgi line 173. <— !!! — i have tons of this lines — !!!
[02/Feb/2015:14:17:59 +0100] [xxx.xxx.xxx.xxx] Document follows : This web server is running in SSL mode. Try the URL https://citymail.xxxxxxxxxx.com:5xxxx/ instead.
- i replace few things with “x” but it should be clear
PAM error i sort with “yum install perl-Authen-PAM” and it doesnt show anymore but the rest is here.
Next thing is difference in how it looks SysInfo page, check how it looks status part of that page: http://i.imgur.com/0bWNlfT.jpg
Aside of changing ports of Webmin, SSH and Usermin this is clean install. There are 3 virtual servers but each one of them with static html page.
Another problem is this message “Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page.” and its pop out every time when the server reboot. After i add 127.0.0.1 to the list its ok and “Re-Check Configuration” finish without any problem until next restart where, for some reason, 127.0.0.1 get lost from the list and i need to repeat this again.
user_beancounters:
Version: 2.5
uid resource held maxheld barrier limit failcnt
2206: kmemsize 30257595 33333248 1073741824 1073741824 0
lockedpages 0 0 262144 262144 0
privvmpages 516138 556214 9223372036854775807 9223372036854775807 0
shmpages 3792 3808 9223372036854775807 9223372036854775807 0
dummy 0 0 9223372036854775807 9223372036854775807 0
numproc 84 120 9223372036854775807 9223372036854775807 0
physpages 277684 288268 0 524288 0
vmguarpages 0 0 9223372036854775807 9223372036854775807 0
oomguarpages 200921 200921 9223372036854775807 9223372036854775807 0
numtcpsock 30 56 9223372036854775807 9223372036854775807 0
numflock 9 18 9223372036854775807 9223372036854775807 0
numpty 1 1 9223372036854775807 9223372036854775807 0
numsiginfo 0 24 9223372036854775807 9223372036854775807 0
tcpsndbuf 917912 1371352 9223372036854775807 9223372036854775807 0
tcprcvbuf 491520 917504 9223372036854775807 9223372036854775807 0
othersockbuf 263568 297640 9223372036854775807 9223372036854775807 0
dgramrcvbuf 0 3864 9223372036854775807 9223372036854775807 0
numothersock 176 188 9223372036854775807 9223372036854775807 0
dcachesize 10881440 13566622 536870912 536870912 0
numfile 1960 2135 9223372036854775807 9223372036854775807 0
dummy 0 0 9223372036854775807 9223372036854775807 0
dummy 0 0 9223372036854775807 9223372036854775807 0
dummy 0 0 9223372036854775807 9223372036854775807 0
numiptent 48 48 9223372036854775807 9223372036854775807 0
I check Webmin - Bootup and Shutdown - Webmin/Usermin and it say yes for both “Start at boot?” and “Running now?”
So any solution to this? Like i said i didnt have any problem with Virtualmin until last update.
Edit #1: I try again to reboot my server and what i saw is memory usage after the reboot. It looks like most if not all services start with the server aside of webmin and usermin. Its missing around 100-120 MB of usual max memory i have when everything is running.
Edit #2: After more checking i found that DKIM Milter wont start regardless what i try to do. After i disabled DKIM Milter the problem with Webmin and autostart is gone. Similar problem was posted here (same OS, Centos 7) but never answered: https://www.virtualmin.com/node/35830. And i can confirm that the date of DKIM Milter is 2010 what is apsurd.
Edit #3: DKIM Milter is gone for good and i manually installed OpenDKIM but i cant see any options in Virtualmin. Is not a problem with my 3 domains but it would be awful with 30 or more to manually setup each one of them. There is a way to generate the keys faster but then to copy the keys in DNS for each domain would take too much time and i’m not aware of any way what could speed this last part. At least Virtualmin could offer support for OpenDKIM on Centos or there is something more going on to prevent me to see OpenDKIM options in Virtualmin.
While on the subject why Virtualmin used DKIM Milter instead of OpenDKIM? DKIM Milter is dead project long time ago and replaced with OpenDKIM. Even if Centos 7 default is DKIM Milter i didnt encounter any problem to install and configure OpenDKIM (literaly took me more to generate the keys) and i didnt find there was a problem with older versions of Centos.
Now the only problems left is huge spam of “Use of uninitialized value in string eq at /usr/libexec/webmin/virtual-server-theme/newleft.cgi line 173.” in miniserv.error. Every time server reboot i have new 400 lines of this error plus 10-20 more about same file (newleft.cgi). Other problem is how Status looks on System Information page what could indicate something happened with Virtualmin default theme during last update. For both problems i didnt find anything that could help me.