Menu

#3 Webmin 1.970 update breaks System Stats

2.0
closed
None
2021-01-22
2021-01-07
No

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.

Discussion

  • Rick Pearson

    Rick Pearson - 2021-01-08

    Exactly the same thing here. Over 100 webmin instances updated overnight and none have webminstats available.

     
  • eric gerbier

    eric gerbier - 2021-01-08

    I can reproduce the problem. I am searching what's wrong

     
  • eric gerbier

    eric gerbier - 2021-01-08

    if you are in a hurry, a quick and dirty solution is to downgrade the authentic-theme the a previous release.

     
  • eric gerbier

    eric gerbier - 2021-01-08

    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
  • Rick Pearson

    Rick Pearson - 2021-01-08

    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, *.cgi

    When 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.

     
  • Rick Pearson

    Rick Pearson - 2021-01-08

    Sorry - that command should be:

    sed -i 's/perl -w/perl/' *.pl *.cgi

     

    Last edit: Rick Pearson 2021-01-08
  • Ben Formesyn

    Ben Formesyn - 2021-01-09

    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.

     
  • eric gerbier

    eric gerbier - 2021-01-09

    I am rebuilding and testing a new release (2.20) . It should be available today or tomorrow

     
  • Rick Pearson

    Rick Pearson - 2021-01-09

    Thanks Eric.

     
  • eric gerbier

    eric gerbier - 2021-01-10

    The version 2.20 is just released

     
  • MobileHero

    MobileHero - 2021-01-11

    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 *.cgi in /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
  • eric gerbier

    eric gerbier - 2021-01-12

    to fix the problem, you have to upgrade webminstats to 2.20 version. (webminstats is a third party module, not included in webmin)

     
  • eric gerbier

    eric gerbier - 2021-01-22
    • status: open --> closed
     
  • eric gerbier

    eric gerbier - 2021-01-22

    this is fixed in webminstats version 2.20

     

Log in to post a comment.

MongoDB Logo MongoDB