Menu

#5441 Undefined subroutine &WebminCore::get_raw called at /usr/share/webmin/authentic-theme/authentic.pl line 44.

1.970
open
Ilia
None
5
2021-01-12
2021-01-07
No

Upgraded to 1.970 from 1.962. When I went to Historic System Statistics I see:

Software error:
Undefined subroutine &WebminCore::get_raw called at /usr/share/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.

Happening on multiple servers. It COULD be an issue with webmin stats and has been reported there BUT it looks like an authentic theme error

Discussion

  • Ilia

    Ilia - 2021-01-07

    Manually restart Webmin:

    /etc/webmin/restart
    
     

    Last edit: Ilia 2021-01-08
  • Rick Pearson

    Rick Pearson - 2021-01-07

    Same issue:

    Software error:
    Undefined subroutine &WebminCore::get_raw called at /usr/share/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.

     
  • Ilia

    Ilia - 2021-01-07

    When you restart Webmin, does the pid change?

    Does it only happen in that 3d party module?

     
  • Rick Pearson

    Rick Pearson - 2021-01-07

    PID does change:

    ubuntu@prod-admin:~$ ps -f | grep miniserv
    ubuntu 16564 581 0 22:23 pts/1 00:00:00 grep --color=auto miniserv
    ubuntu@prod-admin:~$ sudo /etc/webmin/restart
    Stopping Webmin server in /usr/share/webmin
    Starting Webmin server in /usr/share/webmin
    ubuntu@prod-admin:~$ ps -f | grep miniserv
    ubuntu 16635 581 0 22:23 pts/1 00:00:00 grep --color=auto miniserv
    ubuntu@prod-admin:~$

    Only occurs in the third party module. Has been reported to them so we'll see where the issue lies.

     
  • Rick Pearson

    Rick Pearson - 2021-01-07

    (sorry that previous process list is wrong):

    ubuntu@prod-admin:~$ ps -ef | grep miniserv
    root 16592 1 0 22:23 ? 00:00:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
    ubuntu 17607 581 0 22:25 pts/1 00:00:00 grep --color=auto miniserv
    ubuntu@prod-admin:~$ sudo /etc/webmin/restart
    Stopping Webmin server in /usr/share/webmin
    Starting Webmin server in /usr/share/webmin
    ubuntu@prod-admin:~$ ps -ef | grep miniserv
    root 17644 1 0 22:25 ? 00:00:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
    root 17669 17644 0 22:25 ? 00:00:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
    ubuntu 17687 581 0 22:25 pts/1 00:00:00 grep --color=auto miniserv
    ubuntu@prod-admin:~$

     
  • Nikola Runev

    Nikola Runev - 2021-01-08

    I have the same issue this morning.

     
  • Ilia

    Ilia - 2021-01-08

    Undefined subroutine &WebminCore::get_raw called at /usr/share/webmin/authentic-theme/authentic.pl line 44.

    I think it's the context issue. If you open mentioned file on mentioned line and replace get_raw() with &get_raw() does it change anything?

    However, it works just fine with all standard Webmin modules, so I assume something can be fixed on Historic System Statistics module.

     
  • Nikola Runev

    Nikola Runev - 2021-01-08

    I now get a different error

    Error - Perl execution failed

    Undefined subroutine &main::authentic called at /usr/share/webmin/authentic-theme/index.cgi line 12.

     

    Last edit: Nikola Runev 2021-01-08
  • Ilia

    Ilia - 2021-01-08

    Yes, it's different from what I thought at first. We'll work on fixing it.

    The work around is to set preroot_username=theme-name in /etc/webmin/miniserv.conf and theme_username=theme-name in /etc/webmin/config and restart Webmin.

    What matters at the moment that theme_username and preroot_username cannot be different .

     
  • Ilia

    Ilia - 2021-01-08

    What matters at the moment that theme_username and preroot_username cannot be different .

    Cannot be set to different values (different themes)

     
  • Rick Pearson

    Rick Pearson - 2021-01-08

    Ilia,

    Eric Gerbier (the creator of webminstats) has a fix that works. I can only assume that he will release a new module version soon. See https://sourceforge.net/p/webminstats/tickets/3/

    Thanks for your assistance wit this one.

    Rick.

     
  • Ilia

    Ilia - 2021-01-08

    Can i see the patch?

     
  • Rick Pearson

    Rick Pearson - 2021-01-08

    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

     
    • Orlando

      Orlando - 2021-01-10

      hi llia,
      how can i apply this patch on Centos 7?

      thanks,

       

      Last edit: Orlando 2021-01-10
  • Andreas Curti

    Andreas Curti - 2021-01-09

    hi rick,
    many thanks, this solution helped me. My system: ubuntu arm 20.10 aarch64 (Linux 5.8.0-1011-raspi auf aarch64)
    regards
    andi from switzerland

     
  • Ilia

    Ilia - 2021-01-09

    Okay, this issue has been reproduced and fixed.

    It was tricky to find out the cause, as it only affected logins with sudo-capable users.

    Webmin 1.971 will have it fixed. Meanwhile, you can manually apply the patch and restart Webmin.

     
  • Rick Pearson

    Rick Pearson - 2021-01-09

    Thanks Ilia.

     
  • Jamie Cameron

    Jamie Cameron - 2021-01-09

    For anyone seeing this, the 1.971 development release of Webmin from http://www.webmin.com/devel.html has a fix for this issue.

     
  • oldestxbox

    oldestxbox - 2021-01-10

    did the miniserv fix still no joy, applied the "sed -i 's/perl -w/perl/' .pl .cgi" now working, thanks

     
  • MobileHero

    MobileHero - 2021-01-11

    The sed command worked and fixed it. Neither manual miniserv.pl fix did, nor did Webmin 1.971.

     
  • Ilia

    Ilia - 2021-01-11

    The sed command worked and fixed it. Neither manual miniserv.pl fix did, nor did Webmin 1.971.

    We are glad it was fixed for you!

    Because we never tried to fix sysstas module and were addressing our bugs instead.

     
  • Andreas Curti

    Andreas Curti - 2021-01-12

    hi Ilia
    the error message is displayed in the webstat. before that I solved the problem with the patch. now there is a new version of webstat 2.20. the problem no longer arises.
    I have installed the latest version of Webstat 2.20. my system Linux 5.8.0-1011-raspi on aarch64 ubuntu 20.10 and Debian Linux 9 with thinkerboard Linux 4.4.132+ on armv7l and Linux 5.10.0-1-amd64 on x86_64 with debian 11
    regards
    andreas

     
    • Ilia

      Ilia - 2021-01-12

      Hi, Andreas.

      Thanks for the heads up. I'm sure it will be helpful to others.

       

Log in to post a comment.

MongoDB Logo MongoDB