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
Manually restart Webmin:
Last edit: Ilia 2021-01-08
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.
When you restart Webmin, does the pid change?
Does it only happen in that 3d party module?
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.
(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:~$
I have the same issue this morning.
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.
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
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.confand theme_username=theme-name in/etc/webmin/configand restart Webmin.What matters at the moment that theme_username and preroot_username cannot be different .
Cannot be set to different values (different themes)
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.
Can i see the patch?
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 *.cgito be executed in /usr/libexec/webmin/sysstats (fedora, redhat), or /usr/share/webmin/sysstats (debian, ubuntu) directory
hi llia,
how can i apply this patch on Centos 7?
thanks,
Last edit: Orlando 2021-01-10
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
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.
Thanks Ilia.
For anyone seeing this, the 1.971 development release of Webmin from http://www.webmin.com/devel.html has a fix for this issue.
did the miniserv fix still no joy, applied the "sed -i 's/perl -w/perl/' .pl .cgi" now working, thanks
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.
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
Hi, Andreas.
Thanks for the heads up. I'm sure it will be helpful to others.