Menu

#5595 undefined get_miniserv_config after 2.010 update

2.010
open
nobody
None
5
2022-12-01
2022-11-30
BadBeta
No

Hi,

After the 2.010 update, I got this error when I entered to my webmin website :

Undefined subroutine &main::get_miniserv_config called at /usr/share/webmin/authentic-theme/session_login.cgi line 15.

The only solutions are to downgrade to the 2.000 version or to configure gray-theme in the config files in place of authentic-theme.
It seems the last version of the authentic-theme 20.10 is not compatible with the last version of webmin.

Discussion

  • Ilia

    Ilia - 2022-11-30

    What is your OS and version?

    If you try restarting Webmin manually does it help to solve the problem?

     
  • BadBeta

    BadBeta - 2022-11-30

    My OS is Debian 11.
    Yes I have rebooted my server and webmin but the bug was always here.

     
  • Ilia

    Ilia - 2022-11-30

    Can I have a look at your Webmin config and miniserv.conf files?

    Also, does reinstalling Webmin package works dor you?

     
    • Ilia

      Ilia - 2022-11-30

      And one more question - how did you update Webmin exactly?

       
  • BadBeta

    BadBeta - 2022-12-01

    I don't want to reinstall it, there would be a lot of work to reconfigure it.
    But I have downgraded it, then upgraded it again without error.
    The update was processed by the repository via apt.
    I will post the configuration files later.

    Thank you.

     
  • Ilia

    Ilia - 2022-12-01

    I don't want to reinstall it, there would be a lot of work to reconfigure it.

    I meant re-install Webmin source files not configuration, i.e. running apt-get install --reinstall webmin should work just fine.

    But I have downgraded it, then upgraded it again without error.

    Does it mean it works for you? If not would running /etc/webmin/restart-by-force-kill works?

     
  • BadBeta

    BadBeta - 2022-12-01

    Here are my config files.

    miniserv.conf :

    port=10000
    redirect_port=443
    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=1
    no_ssl2=1
    no_ssl3=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/ssl/localcerts/pat/servers/webmin.pat.key
    passwd_file=/etc/shadow
    passwd_uindex=0
    passwd_pindex=1
    passwd_cindex=2
    passwd_mindex=4
    passwd_mode=0
    preroot=authentic-theme
    passdelay=1
    cipher_list_def=1
    sudo=
    unixauth=patrick=root
    pamany=
    logouttimes=
    preroot_root=gray-theme
    ssl_redirect=1
    ssl_honorcipherorder=0
    no_tls1_1=
    no_sslcompression=
    extracas=
    no_tls1_2=
    certfile=/etc/ssl/localcerts/pat/servers/webmin.domain.crt
    no_tls1=
    perllib=/usr/share/webmin
    nolog=\/stats\.cgi\?xhr\-stats\=general
    twofactor_provider=totp
    error_handler_404=404.cgi
    error_handler_403=403.cgi
    error_handler_401=401.cgi
    root=/usr/share/webmin
    mimetypes=/usr/share/webmin/mime.types
    server=MiniServ/2.010
    

    config

    referer=1
    debug_enabled=1
    lang=en.UTF-8
    find_pid_command=ps auwwwx | grep NAME | grep -v grep | awk '{ print $2 }'
    theme_root=gray-theme
    md5pass=0
    path=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
    debug_nocron=
    webmin_email_url=
    passwd_file=/etc/shadow
    passwd_pindex=1
    real_os_version=11
    tempdelete_days=7
    real_os_type=Debian Linux
    debug_noweb=
    debug_what_cmd=1
    debug_what_sql=1
    ld_env=LD_LIBRARY_PATH
    debug_what_ops=1
    debug_what_diff=1
    passwd_mindex=4
    theme=authentic-theme
    debug_what_write=1
    by_view=0
    os_type=debian-linux
    debug_what_start=1
    debug_nocmd=
    passwd_cindex=2
    log=1
    debug_what_read=1
    debug_what_procs=1
    debug_what_net=1
    os_version=11
    referers=webmin.mydomain.fr
    product=webmin
    referers_none=0
    webprefix=
    passwd_uindex=0
    webprefixnoredir=1
    relative_redir=0
    

    I have tried to reinstall and to restart with the force kill but it doesn't work.
    The only solution for me is to edit the 2 config files to replace "authentic-theme" by "gray-theme" and restart webmin.

     
    • Ilia

      Ilia - 2022-12-01

      Thanks. I see the problem now. We will fix this on the next Webmin release. This patch is here.

      At the moment, you could simply fix it by removing perllib=/usr/share/webmin line from your miniserv.conf file and restart Webmin.

      Also, I would like to suggest trying Authentic Theme is it's much more advanced than Gray Theme. Furthermore latest releases of Authentic are much faster.

       
  • BadBeta

    BadBeta - 2022-12-01

    It works now after removed the line.

    Yes, it is the theme I used many years. I have rollback to use it and I can login now with this theme.
    But I don't understand why the appearances of the website is not the one I used until now.
    Like it's still the gray theme.

     
    • Ilia

      Ilia - 2022-12-01

      You can change the theme for the current user on Webmin ⇾ Change Language and Theme page and globally (including login screen) in Webmin ⇾ Webmin Configuration: Webmin Themes page.

       
  • BadBeta

    BadBeta - 2022-12-01

    I changed from the Webmin Themes page but no change appears.
    I have restart but still no change.
    So I changed manually the theme directly in the 2 configuration files and restart webmin.
    It works. All is good now like before the update.

    Thank you for your help !

     

Log in to post a comment.

MongoDB Logo MongoDB