Menu

#5430 Undefined subroutine &main::authentic called

1.962
open
nobody
None
5
2020-12-06
2020-12-04
No

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

Discussion

  • Michael Vinnemeier

    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

     
  • Jamie Cameron

    Jamie Cameron - 2020-12-06

    Have you tried switching to the old Gray Framed Theme in Webmin?

     
  • Ilia

    Ilia - 2020-12-06

    .. you need to have File::Basename installed. A very basic subroutines are taken out of Perl, just like tar command was recently removed from default CentOS 8 install.

    Preposterous and disturbing tendency.

     
  • Ilia

    Ilia - 2020-12-06

    Okay, Jamie, as discussed earlier, here is the patch and the only reason I'm doing it, so Webmin can supply theme root.

     
  • Michael Vinnemeier

    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

     
  • Michael Vinnemeier

    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

     
  • Ilia

    Ilia - 2020-12-06

    What about perl-lib package (if your distro has it at the first place)?

    Anyway, I have done 2 patches to address missing File::Basename core module. Please revert your miniserv.conf changes and try the patches:

    1. First for miniserv.pl (github.com) (Webmin restart requires after editing miniserv.pl)

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

     
  • Michael Vinnemeier

    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

     
  • Ilia

    Ilia - 2020-12-06

    .. if Perl install is okay, otherwise it's inetd and Webmin related bug, and Jamie will check it out.

     
  • Ilia

    Ilia - 2020-12-06

    according to your message I modified miniserv.pl by adding the three lines showed in the github page

    have you updated Authentic Theme theme as well? Does it work without inetd=1 param?

     
  • Michael Vinnemeier

    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

     
  • Michael Vinnemeier

    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

     

Log in to post a comment.

MongoDB Logo MongoDB