Last update broke Virtualmin/Webmin

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.

Yes last update broke my webmin too. Now there is no more package update and I can’t backup virtual servers.

https://www.virtualmin.com/node/36087

followertr, you’re problems are unrelated to the ones being asked about in this thread. I’ll try to respond to your post shortly.

“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).”

These errors should be fixed in the latest Webmin release. If you’re still seeing them, file a bug in the bug tracker. Any perl errors (aside from module loading errors for modules you don’t have installed and don’t need) should be reported in the ticket tracker. There is never a circumstance where a Perl error is intended behavior.

“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.”

Yes, the appearance changed a little bit, as the System Information stuff was moved out of the theme and into a general purpose function that any theme can use. Is it broken or does it just look “different”? Looking slight different is expected. Broken is not. The Bootstrap theme, and Ilia’s theme, are approaching production use, so our goal is to abstract all of the stuff that is currently exclusive to the Virtualmin framed theme into a form that all themes can easily use.

OpenDKIM is supported, AFAIK. I’m not sure what needs to be done other than installing the packages to make it work. I’ll have to look into it.

Didnt see your message Joe so i edited my last post to reflect your content.

These errors should be fixed in the latest Webmin release. If you’re still seeing them, file a bug in the bug tracker.
When was this update? Because i still get same error, to be more precise i have more than 18.000 lines in miniserv.error with same line.

There is never a circumstance where a Perl error is intended behavior.
Like i said i sort this problem with “yum install perl-Authen-PAM” and now is ok, no more errors.

Yes, the appearance changed a little bit, as the System Information stuff was moved out of the theme and into a general purpose function that any theme can use. Is it broken or does it just look “different”
Then just looks different, what i can see no other problem here aside of different look.

OpenDKIM is supported, AFAIK. I’m not sure what needs to be done other than installing the packages to make it work. I’ll have to look into it.
This would be nice to know how to sort. Right now when i go Virtualmin -> Email Messages -> DomainKeys Identified Mail it show like nothing is installed. I tested my emails and they pass eveything so actually i dont have problem to deliver them, but like i said i need to manually create the keys and in the same way insert in DNS for each domain.

Edit: Here is what it say in DomainKeys Identified Mail:
DomainKeys indentified mail is not available on this system : The DKIM configuration file /etc/mail/dkim-milter/dkim-filter.conf does not exist
However, Virtualmin can attempt to automatically install the DKIM filter package for you.

What i can see Virtualmin is looking for dkim-milter and that is only option i have if i want to automatically install. This is bad, like i said in my previous post DKIM Milter is old and abandoned project and it should not be used anymore.

Hello,

When was this update? Because i still get same error, to be more precise i have more than 18.000 lines in miniserv.error with same line.

I think that’s meaning that we must wait for the next release for webmin update.

Virtualmin updates should be seen in :

https://yourserverip:port/security-updates/

greatings,

Eric

https://www.virtualmin.com/node/36123

related to this bugreport : http://virtualmin.com/node/36085

It says “No packages available to be updated were found.” I couldn’t update anything almost for a month.

It says “No packages available to be updated were found.” I couldn’t update anything almost for a month.