Menu

#5442 error after update to 1.970

1.970
open
nobody
None
5
2022-06-11
2021-01-08
Sven Zauber
No

Hi All
After update to 1.970 this morning i got followed message.

Error - Perl execution failed

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

Do you know about this problem?

Regards Sven

Related

Bugs: #5442

Discussion

1 2 3 > >> (Page 1 of 3)
  • Ilia

    Ilia - 2021-01-08

    Hi, Sven.

    Restarting Webmin manually will solve this:

    /etc/webmin/restart
    
     
  • Sven Zauber

    Sven Zauber - 2021-01-08

    Hi Ilia
    Thanks for fast reply. :-)

    Same problem after restart webmin.

     
  • Sven Zauber

    Sven Zauber - 2021-01-08

    this is in the file index.cgi
    !/usr/bin/perl
    Authentic Theme (https://github.com**/authentic-theme/authentic-theme)
    Copyright Ilia Rostovtsev
    Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE)
    use strict;do("@{[miniserv::getenv('theme_root')]}/authentic-lib.pl");
    authentic();

    line 12 says authentic();

     

    Last edit: Ilia 2021-01-08
  • Ilia

    Ilia - 2021-01-08

    Does the pid changes when you restart Webmin?

     
  • Ilia

    Ilia - 2021-01-08

    Can you try running/etc/webmin/restart explicitly?

     
  • Sven Zauber

    Sven Zauber - 2021-01-08

    root@U-Server:/home/sroot# ps -ef | grep miniserv
    root 19022 1 0 14:15 ? 00:00:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
    root 19374 6265 0 14:17 pts/0 00:00:00 grep --color=auto miniserv
    root@U-Server:/home/sroot# /etc/webmin/restart
    Stopping Webmin server in /usr/share/webmin
    Starting Webmin server in /usr/share/webmin
    root@U-Server:/home/sroot# ps -ef | grep miniserv
    root 19481 1 0 14:17 ? 00:00:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
    root 19530 6265 0 14:17 pts/0 00:00:00 grep --color=auto miniserv
    root@U-Server:/home/sroot#

     
  • Ilia

    Ilia - 2021-01-08

    And what is the output of :

    cat  /usr/share/webmin/miniserv.pl |grep -B 1 -A 6 getenv
    
     
  • Ilia

    Ilia - 2021-01-08

    What OS is that?

     
  • Ilia

    Ilia - 2021-01-08

    If you open and edit /usr/share/webmin/authentic-theme/index.cgi adding die($ENV{'THEME_ROOT'}); before do .., and refresh the page - what is the output?

     
  • Carlo Glinetzki

    Carlo Glinetzki - 2021-01-08

    I have exactly the same problem, I'm running ubuntu 18.04
    when I run:
    cat /usr/share/webmin/miniserv.pl |grep -B 1 -A 6 getenv

    sub getenv
    {
    my ($key) = @_;
    return $ENV{ uc($key) } || $ENV{ lc($key) };
    }

    But I see also when i do sysctl status webmin:
    webmin.service - LSB: web-based administration interface for Unix systems
    Loaded: loaded (/etc/init.d/webmin; generated)
    Active: active (exited) since Fri 2021-01-08 19:37:17 +07; 2min 46s ago
    Docs: man:systemd-sysv-generator(8)
    Process: 8635 ExecStop=/etc/init.d/webmin stop (code=exited, status=0/SUCCESS)
    Process: 8679 ExecStart=/etc/init.d/webmin start (code=exited, status=0/SUCCESS)

    Jan 08 19:37:14 my-nas systemd[1]: Starting LSB: web-based administration interface for Unix systems...
    Jan 08 19:37:14 my-nas perl[8680]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty=
    Jan 08 19:37:17 my-nas webmin[8680]: Webmin starting
    Jan 08 19:37:17 my-nas systemd[1]: Started LSB: web-based administration interface for Unix systems.

    As you can see there is an authentication failure, may this be the source of the problem?

     
  • Ilia

    Ilia - 2021-01-08

    But I see also when i do sysctl status webmin:

    I don't think so.

    Try restarting Webmin using /etc/webmin/restart command.

    Could you guys also please try this and share output of die() command?

    I cannot reproduce it on any of my servers.

     
  • Carlo Glinetzki

    Carlo Glinetzki - 2021-01-08

    I tried the change and get this error on the webpage:
    Error - Perl execution failed

    /usr/share/webmin/gray-theme at /usr/share/webmin/authentic-theme/index.cgi line 10.

     
  • Ilia

    Ilia - 2021-01-08

    xD haha - what? Interesting.

    Could you share your /etc/webmin/miniserv.conf and /etc/webmin/config?

     
  • Carlo Glinetzki

    Carlo Glinetzki - 2021-01-08

    /etc/webmin/miniserv.conf:
    port=10000
    addtype_cgi=internal/cgi
    realm=Webmin Server
    logfile=/var/webmin/miniserv.log
    errorlog=/var/webmin/miniserv.error
    pidfile=/var/webmin/miniserv.pid
    logtime=168
    ppath=
    ssl=0
    no_ssl2=1
    no_ssl3=1
    no_tls1=1
    no_tls1_1=1
    ssl_honorcipherorder=1
    no_sslcompression=1
    env_WEBMIN_CONFIG=/etc/webmin
    env_WEBMIN_VAR=/var/webmin
    atboot=1
    logout=/etc/webmin/logout-flag
    listen=10000
    denyfile=.pl$
    log=1
    blockhost_failures=5
    blockhost_time=60
    syslog=1
    session=1
    premodules=WebminCore
    userfile=/etc/webmin/miniserv.users
    keyfile=/etc/webmin/miniserv.pem
    passwd_file=/etc/shadow
    passwd_uindex=0
    passwd_pindex=1
    passwd_cindex=2
    passwd_mindex=4
    passwd_mode=0
    preroot=gray-theme
    passdelay=1
    cipher_list_def=1
    logout_script=/etc/webmin/logout.pl
    failed_script=/etc/webmin/failed.pl
    login_script=/etc/webmin/login.pl
    sudo=1
    logouttimes=
    preroot_root=authentic-theme
    nolog=\/stats.cgi\?xhr-stats\=general
    perllib=
    root=/usr/share/webmin
    mimetypes=/usr/share/webmin/mime.types
    server=MiniServ/1.970

    /etc/webmin/config:
    product=webmin
    syspath=
    find_pid_command=ps auwwwx | grep NAME | grep -v grep | awk '{ print $2 }'
    gotoone=0
    passwd_pindex=1
    deftab=webmin
    os_version=9.0
    passwd_cindex=2
    gotomodule=
    tempdelete_days=7
    passwd_file=/etc/shadow
    passwd_uindex=0
    os_type=debian-linux
    real_os_version=18.04.1
    real_os_type=Ubuntu Linux
    notabs=0
    lang_root=de.UTF-8
    theme=gray-theme
    lang=en.UTF-8
    by_view=0
    passwd_mindex=4
    nomoduleup=
    ld_env=LD_LIBRARY_PATH
    ld_path=
    log=1
    path=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
    webprefix=
    nohostname=0
    referers_none=1
    md5pass=1
    theme_root=authentic-theme
    nowebminup=

     
  • Sven Zauber

    Sven Zauber - 2021-01-08

    Hi Ilia
    OS is Linux Mint 19 Tara
    cat commad gives that back

    root@U-Server:/home/sroot# cat /usr/share/webmin/miniserv.pl |grep -B 1 -A 6 getenv

    sub getenv
    {
    my ($key) = @_;
    return $ENV{ uc($key) } || $ENV{ lc($key) };
    }

    Output after changing index.cgi and restart webmin

    Error - Perl execution failed

    /usr/share/webmin/theme-stressfree at /usr/share/webmin/authentic-theme/index.cgi line 10.

    **and cat command
    **
    root@U-Server:/home/sroot# cat /usr/share/webmin/miniserv.pl |grep -B 1 -A 6 getenv

    sub getenv
    {
    my ($key) = @_;
    return $ENV{ uc($key) } || $ENV{ lc($key) };
    }

     
  • Ilia

    Ilia - 2021-01-08

    ohh.. I see an issue now!

     
  • Ilia

    Ilia - 2021-01-08

    What is odd that having such config should also fail with previous Webmin versions.

     
  • Justin Cannon

    Justin Cannon - 2021-01-08

    I am having the exact same issue after update. The following is cat /etc/webmin/miniserv.conf (I have pulled my IP out for safety)

    port=10000
    host=
    addtype_cgi=internal/cgi
    realm=Webmin Server
    logfile=/var/webmin/miniserv.log
    errorlog=/var/webmin/miniserv.error
    pidfile=/var/webmin/miniserv.pid
    logtime=168
    ssl=1
    ssl_redirect=1
    no_ssl2=1
    no_ssl3=1
    no_tls1=1
    no_tls1_1=1
    ssl_honorcipherorder=1
    no_sslcompression=1
    env_WEBMIN_CONFIG=/etc/webmin
    env_WEBMIN_VAR=/var/webmin
    atboot=1
    logout=/etc/webmin/logout-flag
    listen=10000
    denyfile=.pl$
    log=1
    blockhost_failures=5
    blockhost_time=60
    syslog=1
    ipv6=1
    session=1
    premodules=WebminCore
    userfile=/etc/webmin/miniserv.users
    keyfile=/etc/webmin/miniserv.pem
    passwd_file=/etc/shadow
    passwd_uindex=0
    passwd_pindex=1
    passwd_cindex=2
    passwd_mindex=4
    passwd_mode=0
    preroot=gray-theme
    passdelay=1
    logout_script=/etc/webmin/logout.pl
    cipher_list_def=1
    failed_script=/etc/webmin/failed.pl
    login_script=/etc/webmin/login.pl
    sudo=1
    error_handler_401=
    error_handler_404=
    error_handler_403=
    nolog=\/stats.cgi\?xhr-stats\=general
    logouttimes=
    preroot_root=authentic-theme
    root=/usr/share/webmin
    mimetypes=/usr/share/webmin/mime.types
    server=MiniServ/1.970

     
  • Ilia

    Ilia - 2021-01-08

    I am having the exact same issue after update.

    From which version you've upgraded from?

    Look you have on miniserv.conf file:

    preroot=gray-theme
    preroot_root=authentic-theme
    

    .. what do you have set on config file for all directives starting with theme, like theme= or theme_root=?

    What username do you use to login to Webmin. This issue happens for authenticated or unauthenticated users or both?

     
  • Sven Zauber

    Sven Zauber - 2021-01-08

    Hi Ilia
    My config looks like below. I have marked the preroot entries bold.

    root@U-Server:/home/sroot# cat /etc/webmin/miniserv.conf
    port=10000
    addtype_cgi=internal/cgi
    realm=Webmin Server
    logfile=/var/webmin/miniserv.log
    errorlog=/var/webmin/miniserv.error
    pidfile=/var/webmin/miniserv.pid
    logtime=168
    ssl=1
    no_ssl2=1
    no_ssl3=1
    no_tls1=1
    no_tls1_1=1
    ssl_honorcipherorder=1
    no_sslcompression=1
    env_WEBMIN_CONFIG=/etc/webmin
    env_WEBMIN_VAR=/var/webmin
    atboot=1
    logout=/etc/webmin/logout-flag
    listen=10000
    denyfile=.pl$
    log=1
    blockhost_failures=5
    blockhost_time=60
    syslog=1
    ipv6=1
    session=1
    premodules=WebminCore
    userfile=/etc/webmin/miniserv.users
    keyfile=/etc/webmin/miniserv.pem
    passwd_file=/etc/shadow
    passwd_uindex=0
    passwd_pindex=1
    passwd_cindex=2
    passwd_mindex=4
    passwd_mode=0
    preroot=theme-stressfree
    passdelay=1
    login_script=/etc/webmin/login.pl
    failed_script=/etc/webmin/failed.pl
    cipher_list_def=1
    logout_script=/etc/webmin/logout.pl
    sudo=1
    error_handler_403=
    error_handler_401=
    error_handler_404=
    nolog=\/stats.cgi\?xhr-stats\=general
    preroot_root=authentic-theme
    logouttimes=
    root=/usr/share/webmin
    mimetypes=/usr/share/webmin/mime.types
    server=MiniServ/1.970
    root@U-Server:/home/sroot#

     
  • Sven Zauber

    Sven Zauber - 2021-01-08

    and here the cat output from config file.

    root@U-Server:/etc/webmin# cat config
    nowebminup=
    real_os_type=Debian Linux
    passwd_cindex=2
    lang=en.UTF-8
    log=1
    showhost=0
    referers_none=1
    path=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
    ld_env=LD_LIBRARY_PATH
    gotoone=0
    lang_root=de.UTF-8
    by_view=0
    passwd_file=/etc/shadow
    nomoduleup=
    passwd_pindex=1
    webprefix=
    theme_root=authentic-theme
    product=webmin
    ****theme=theme-stressfree
    nofeedbackcc=0
    help_width=
    find_pid_command=ps auwwwx | grep NAME | grep -v grep | awk '{ print $2 }'
    sysinfo=0
    feedback_to=
    os_version=10.0
    passwd_mindex=4
    help_height=
    gotomodule=
    showlogin=0
    dateformat=dd/mon/yyyy
    hostnamemode=0
    os_type=debian-linux
    deftab=webmin
    md5pass=1
    tempdelete_days=7
    notabs=0
    real_os_version=10.0
    passwd_uindex=0
    hostnamedisplay=
    nohostname=0
    root@U-Server:/etc/webmin#

     
  • Carlo Glinetzki

    Carlo Glinetzki - 2021-01-08

    So, I changed theme to authentic-theme in config, but this brings now difference, then i changed preroot to authentic-theme in miniserv.conf and that seems to work, at least the webpage loads actually normally

     
  • Glass Feet

    Glass Feet - 2021-01-08

    First 5 servers, one succeeded, 4 failed and those failed ones all see this issue:

    "HTTP/1.0 500 Perl execution failed Server: MiniServ/1.970 Date: Fri, 8 Jan 2021 16:47:04 GMT Content-type: text/html; Charset=utf-8 Connection: close
    Error - Perl execution failed
    Undefined subroutine &WebminCore::get_raw called at /usr/share/webmin/authentic-theme/authentic.pl line 44."

    I am comparing working 1.970 with bust versions of
    /etc/webmin/miniserv.conf

     
  • Carlo Glinetzki

    Carlo Glinetzki - 2021-01-08

    For me everything seems to be OK, I logged out and back in, installed some updates and rebooted the server, and all works as usual.
    Can I continue with this configuration, or is there something else to set differently?

     
  • Sven Zauber

    Sven Zauber - 2021-01-08

    Hi Carlo
    I changed the same. But without success. :-(

     
1 2 3 > >> (Page 1 of 3)

Log in to post a comment.