Hi,
sorry for coming up with this old topic.
When I define "inetd=1" in miniserv.conf and let xinetd start webmin the following error messages appear in /var/webmin/miniserv.error and less detailed in the browser :
[04/Dec/2020:13:52:00 +0100] [10.0.100.40] /index.cgi/ : Perl execution failed : Undefined subroutine &main::authentic called at /usr/libexec/webmin/authentic-theme/index.cgi line 13.
[04/Dec/2020:13:52:03 +0100] [10.0.100.40] / : Perl execution failed : Undefined subroutine &main::authentic called at /usr/libexec/webmin/authentic-theme/index.cgi line 13.
However when I define "session=1" in miniserv.conf and start webmin as a service, everything works just fine.
Pls advise what I can do about it. Many thanks in advance...
Regards ... Michael
The OS is opensuse Leap 15.2 and runs perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-thread-multi
Have you tried switching to the old Gray Framed Theme in Webmin?
.. you need to have
File::Basenameinstalled. A very basic subroutines are taken out of Perl, just liketarcommand was recently removed from default CentOS 8 install.Preposterous and disturbing tendency.
Okay, Jamie, as discussed earlier, here is the patch and the only reason I'm doing it, so Webmin can supply theme root.
Switching themes :
I changed the preroot parameter in miniserv.conf as the only theme-related parameter I found.
preroot=gray-theme gives this error :
Can't locate gray-theme/gray-theme-lib.pl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.26.1 /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.26.1 /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/5.26.1 /usr/lib/perl5/site_perl) at /usr/libexec/webmin/gray-theme/index.cgi line 5.
preroot=blue-theme :
Can't locate gray-theme/gray-theme-lib.pl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.26.1 /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.26.1 /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/5.26.1 /usr/lib/perl5/site_perl) at /usr/libexec/webmin/blue-theme/index.cgi line 5.
It can't find gray-theme-lib.pl in /usr/libexec/webmin/bluetheme/index.cgi. Are the themes somehow entangled with each other ?
Regarding File::Basename
The package is installed. I checked it by trying to install it with "cpan install File::Basename" and the result is "File::Basename is up to date (2.85)."
The result is "
Thanks ... Michael
Switching themes :
I changed the preroot parameter in miniserv.conf as the only theme-related parameter I found.
preroot=gray-theme gives this error :
Can't locate gray-theme/gray-theme-lib.pl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.26.1 /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.26.1 /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/5.26.1 /usr/lib/perl5/site_perl) at /usr/libexec/webmin/gray-theme/index.cgi line 5.
preroot=blue-theme :
Can't locate gray-theme/gray-theme-lib.pl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.26.1 /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.26.1 /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/5.26.1 /usr/lib/perl5/site_perl) at /usr/libexec/webmin/blue-theme/index.cgi line 5.
It can't find gray-theme-lib.pl in /usr/libexec/webmin/bluetheme/index.cgi. Are the themes somehow entangled with each other ?
Regarding File::Basename
The package is installed. I checked it by trying to install it with "cpan install File::Basename" and the result is "File::Basename is up to date (2.85)."
Thanks ... Michael
What about
perl-libpackage (if your distro has it at the first place)?Anyway, I have done 2 patches to address missing
File::Basenamecore module. Please revert yourminiserv.confchanges and try the patches:First for miniserv.pl (github.com) (Webmin restart requires after editing miniserv.pl)
.. and the second for the theme (must be updated using
../authentic-theme/theme-update.sh) file.Does it change anything for you? If not, you need to check your Perl installation. If it doesn't work, please ask your package manager for which perl* packages are installed, and list them back here, so we can see what's going on.
Hi Ilia,
according to your message I modified miniserv.pl by adding the three lines showed in the github page behind the link "supply theme root". And in miniserv.conf I changed back to "preroot=authentic-theme".
The result is still "Error - Perl execution failed
Undefined subroutine &main::authentic called at /usr/libexec/webmin/authentic-theme/index.cgi line 13. "
Then I added the parameter "preroot_root=authentic-theme" because that was mentioned as helpful in an older post but it doesn't help. I get the same error message.
Michael
.. if Perl install is okay, otherwise it's
inetdand Webmin related bug, and Jamie will check it out.have you updated Authentic Theme theme as well? Does it work without
inetd=1param?Hi Ilia,
I reverted my miniserv.conf changes and tested the miniserv.pl patch. It doesn't work as described.
Where can I get the theme-update.sh you changed I assume ?
Webmin is started by xinetd fresh on each attempt to access it.
When I change back from xinetd-Startup to run Webmin as a service the error is gone and everything fine.
Michael
By the way, the error doesn't exist in Version 1.941 which is still installed on another computer. There webmin shows brown color in the nav bar on the left.
In other words it starts properly by xinetd.
Michael