webmin / authentic-theme

Official theme for the best server management panel of the 21st Century
https://authentic-theme.com
MIT License
947 stars 163 forks source link

Undefined subroutine &main::webmin_user_is_admin called at /usr/share/usermin/authentic-theme/authentic-init.pl line 1748. #1602

Closed alanmels closed 2 years ago

alanmels commented 2 years ago

Hi Ilia,

One one of our Ubuntu servers, the following error started to pop up when attempting to open Webmin:

Error — Perl execution failed

Undefined subroutine &main::webmin_user_is_admin called at /usr/share/usermin/authentic-theme/authentic-init.pl line 1748. 

So to fix that I executed:

/usr/share/webmin/update-from-repo.sh
/usr/share/webmin/authentic-theme/theme-update.sh

which didn't help.

According to /etc/webmin/webmin.acl the admin user is root. The content of two config files are given below:

cat /etc/webmin/config
logfiles=1
find_pid_command=ps auwwwx | grep NAME | grep -v grep | awk '{ print $2 }'
tempdelete_days=7
theme=authentic-theme
passwd_pindex=1
referers_none=1
os_version=11.0
by_view=0
path=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
real_os_version=20.04.4
lang=en
cache_mods=virtual-server
md5pass=1
real_os_type=Ubuntu Linux
product=webmin
cache_size=52428800
passwd_mindex=4
log=1
ld_env=LD_LIBRARY_PATH
passwd_uindex=0
passwd_cindex=2
os_type=debian-linux
mobile_theme=authentic-theme
webprefix=
passwd_file=/etc/shadow

and

cat /etc/webmin/miniserv.conf 
port=12953
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=12953
denyfile=\.pl$
log=1
blockhost_failures=5
blockhost_time=60
syslog=1
ipv6=1
session=1
userfile=/etc/webmin/miniserv.users
keyfile=/home/hest/ssl/ssl.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
logout_script=/etc/webmin/logout.pl
login_script=/etc/webmin/login.pl
failed_script=/etc/webmin/failed.pl
cipher_list_def=2
sudo=1
sessiononly=/virtual-server/remote.cgi
preload=virtual-server=virtual-server/virtual-server-lib-funcs.pl virtual-server=virtual-server/feature-unix.pl virtual-server=virtual-server/feature-dir.pl virtual-server=virtual-server/feature-dns.pl virtual-server=virtual-server/feature-mail.pl virtual-server=virtual-server/feature-web.pl virtual-server=virtual-server/feature-webalizer.pl virtual-server=virtual-server/feature-ssl.pl virtual-server=virtual-server/feature-logrotate.pl virtual-server=virtual-server/feature-mysql.pl virtual-server=virtual-server/feature-postgres.pl virtual-server=virtual-server/feature-ftp.pl virtual-server=virtual-server/feature-spam.pl virtual-server=virtual-server/feature-virus.pl virtual-server=virtual-server/feature-webmin.pl virtual-server=virtual-server/feature-virt.pl virtual-server=virtual-server/feature-virt6.pl
ssl_cipher_list=ECDHE-RSA-AES256-SHA384:AES256-SHA256:AES256-SHA256:RC4:HIGH:MEDIUM:+TLSv1:+TLSv1.1:+TLSv1.2:!MD5:!ADH:!aNULL:!eNULL:!NULL:!DH:!ADH:!EDH:!AESGCM
error_handler_403=403.cgi
error_handler_404=404.cgi
error_handler_401=401.cgi
nolog=\/stats\.cgi\?xhr\-stats\=general
premodules=WebminCore
extracas=/home/hest/ssl/ssl.ca
ssl_redirect=1
certfile=/home/hest/ssl/ssl.crt
no_tls1_2=
root=/usr/share/webmin
mimetypes=/usr/share/webmin/mime.types
server=MiniServ/1.99406082130

I know dev versions are not recommended, but I felt I should give a try to get around the error. Now, what's the best route for me? Если откатывать назад, то как именно?

Спасибо!

iliajie commented 2 years ago

Try running:

/etc/webmin/restart-by-force-kill
iliajie commented 2 years ago

Oh, wait. This is Usermin. In order to fix that for Usermin you need to upgrade Usermin via the script.

Also, to revert back, just reinstall Usermin package, like apt-get install --reinstall usermin.

alanmels commented 2 years ago

Wonderful, that made the trick. Thanks a lot, Ilia!