Webmin 1.970 update breaks System Stats
Brought to you by:
gerbier
After update to Webmin 1.970
System Stats generates the following message:
Software error:
Undefined subroutine &WebminCore::get_raw called at /usr/libexec/webmin/authentic-theme/authentic.pl line 44.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
Apparently a change to the Webmin theme is causing problems with System Stats.
Exactly the same thing here. Over 100 webmin instances updated overnight and none have webminstats available.
I can reproduce the problem. I am searching what's wrong
if you are in a hurry, a quick and dirty solution is to downgrade the authentic-theme the a previous release.
I have found !!
the problem comes from the perl shebang. I was using 'perl -w' for security checks, and it does not work any more with the last authentic-theme. You can patch my perl code with the following command :
sed -i 's/perl -w/perl/' .pl .cgi
to be executed in /usr/libexec/webmin/sysstats (fedora, redhat), or /usr/share/webmin/sysstats (debian, ubuntu) directory
Last edit: eric gerbier 2021-01-09
Eric,
Thanks - but that command does not work. If I run it I get a "Missing Content-Type header" error.
The command is incorrect as it should be:
sed 's/perl -w/perl/' *.pl, *.cgiWhen run it will replace the 'perl -w' command with a straight call to 'perl' and that fixes it!
Thanks! Let us know when the webmin module is fixed for download and I will get one of my guys to update all of our servers.
Rick.
Sorry - that command should be:
sed -i 's/perl -w/perl/' *.pl *.cgiLast edit: Rick Pearson 2021-01-08
Just to add to this - for my Centos 8 boxes with Webmin, upgrading to the latest webmin also deleted the /usr/libexec/webmin/ directory.
Re-installing the module, and then running Rick's fix above did the job.
I am rebuilding and testing a new release (2.20) . It should be available today or tomorrow
Thanks Eric.
The version 2.20 is just released
I want to highlight that I ran into this issue too (see https://sourceforge.net/p/webadmin/bugs/5442/?page=2&limit=25#cfc7). First updated to dev webmin 1.971 which DID NOT fix this issue.
I had to manually run
sudo sed -i 's/perl -w/perl/' *.pl *.cgiin /usr/share/webmin/sysstats to fix it.So maybe you want to check if that "fix" really is part of Webmin 1.971.
Update: on a 2nd machine affected, I only run the sed command while webmin still on 1.970 and authentic-theme on 19.70 - and it fixed it too, no need to have that (non-working?) fix of 1.971.
Last edit: MobileHero 2021-01-11
to fix the problem, you have to upgrade webminstats to 2.20 version. (webminstats is a third party module, not included in webmin)
this is fixed in webminstats version 2.20