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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, Sven.
Restarting Webmin manually will solve this:
Hi Ilia
Thanks for fast reply. :-)
Same problem after restart webmin.
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
Does the pid changes when you restart Webmin?
Can you try running
/etc/webmin/restartexplicitly?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#
And what is the output of :
What OS is that?
If you open and edit
/usr/share/webmin/authentic-theme/index.cgiaddingdie($ENV{'THEME_ROOT'});beforedo .., and refresh the page - what is the output?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?
I don't think so.
Try restarting Webmin using
/etc/webmin/restartcommand.Could you guys also please try this and share output of
die()command?I cannot reproduce it on any of my servers.
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.
xD haha - what? Interesting.
Could you share your
/etc/webmin/miniserv.confand/etc/webmin/config?/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=
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) };
}
ohh.. I see an issue now!
What is odd that having such config should also fail with previous Webmin versions.
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
From which version you've upgraded from?
Look you have on
miniserv.conffile:.. what do you have set on
configfile for all directives starting with theme, liketheme=ortheme_root=?What username do you use to login to Webmin. This issue happens for authenticated or unauthenticated users or both?
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#
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#
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
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
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?
Hi Carlo
I changed the same. But without success. :-(