Submitted by gadnet@aqueos.com on Thu, 01/07/2021 - 04:28
hi,
Since the upgrade to 1.970
Upgrade: webmin:amd64 (1.962, 1.970)
the webmin landing page https://xxx:10000 page is in error, we cannot login and reinstalling the webmin package do not change anything.
{
"Status": "500Missing Content-Type Header",
"Version": "HTTP/1.0",
"Transferred": "253 B (90 B size)"
}
{
"Response Headers (163 B)": {
"headers": [
{
"name": "Connection",
"value": "close"
},
{
"name": "Content-type",
"value": "text/html; Charset=utf-8"
},
{
"name": "Date",
"value": "Thu, 7 Jan 2021 10:25:34 GMT"
},
{
"name": "Server",
"value": "MiniServ/1.970"
}
]
}
}
the favicon loads fine.
regards, Ghislain.
Status:
Active
Virtualmin version:
d
Webmin version:
1.970
Comments
Submitted by gadnet@aqueos.com on Thu, 01/07/2021 - 05:25 Comment #1
reverting to 1.962 and all works again.
apt-get install webmin=1.962
Hi,
How about installing 1.970 and running manually afterwards:
Submitted by gadnet@aqueos.com on Thu, 01/07/2021 - 06:41 Comment #3
hi,
i restarted several time with no success. I done a restart and several stop, wait 10, start but no change. but i done it with service webmin (start/stop/restart) not the one you have in the ticket /etc/webmin/restart, i will test this immediatly.
regards, Ghislain.
Submitted by gadnet@aqueos.com on Thu, 01/07/2021 - 07:33 Comment #4
nope, restarting with /etc/webmin/restart do not change
Does anything gets logged under /var/webmin log files when you install Webmin 1.970 and trying to access it?
Have you tried force-reloading browser's page or trying incognito/private tab?
Submitted by gadnet@aqueos.com on Fri, 01/08/2021 - 02:04 Comment #6
tail /var/webmin/*log show only:
for the access i used also curl on the command line which does not cache anything and the result was the same so it is not a browser issue as command line curl has the same error.
I can confirm the behavior on debian 10 also (tried this morning on another host).
all system are on virtualized box on sysvinit (no systemd). All run the new theme also.
best regards, Ghislain.
Submitted by gadnet@aqueos.com on Fri, 01/08/2021 - 03:11 Comment #7
here is a strace of the webmin process when i access it
https://pastebin.com/raw/XhPta87U
[pid 34365] write(2, "Undefined subroutine &miniserv::getenv called at /usr/share/webmin/authentic-theme/session_login.cgi line 12.\n", 110) = 110
perhaps ?
best regards, Ghislain.
I am confused. What is the output of :
When you manually restart Webmin does the pid change?
Submitted by gadnet@aqueos.com on Fri, 01/08/2021 - 07:10 Comment #9
Yes the pid was différent i verified :)
here is the result: https://pastebin.com/raw/HfQLknbS
the previous version have not this function in this file.
regards, Ghislain.
Ghislain,
If you open and edit
/usr/share/webmin/authentic-theme/index.cgi
addingdie($ENV{'THEME_ROOT'});
beforedo ..
, and refresh the page - what is the output?.. or to
session_login.cgi
file if it's a login page?Submitted by gadnet@aqueos.com on Fri, 01/08/2021 - 08:36 Comment #12
/usr/share/webmin/authentic-theme/session_login.cgi if i put the die before the do it change nothing.
in /usr/share/webmin/authentic-theme/index.cgi if i put the die before the do it change nothing.
/usr/share/webmin/session_login.cgi as no 'do', i put it but it does not change.
here is the modification: https://pastebin.com/raw/tyPHsZ01
i restarted webmin between all changes before testing the url.
it hit the line line 2685/6469 of /usr/share/webmin/miniserv.pl:
elsif ($cgiheader{"content-type"} eq "") {
close(CGIOUTr); close(CGIERRr);
unlink($infile) if ($infile);
$errs = &read_errors(CGIERRr);
&http_error(500, "BMissing Content-Type Header",
$config{'noshowstderr'} ? undef : $errs);
}
(yes i modified by putting B in front :p
Have a look here. For now, please fix your configs as mentioned on the comment.
Submitted by JamieCameron on Sat, 01/09/2021 - 20:40 Comment #14
Also, you can download Webmin 1.971 from http://www.webmin.com/devel.html which includes a fix.
Submitted by gadnet@aqueos.com on Mon, 01/11/2021 - 02:19 Comment #15
thanks for the quick answer, will wait for next release.
best regards, Ghislain.
Submitted by IssueBot on Mon, 01/25/2021 - 02:30 Comment #16
Automatically closed - issue fixed for 2 weeks with no activity.
Submitted by gadnet@aqueos.com on Sat, 03/06/2021 - 01:27 Comment #17
hi,
i upgraded to 1.972 and i still got the same "Error — Missing Content-Type Header" but in uppercase and red but still the same error webmin cannot print the login screen, since 1.962 webmin stopped working.
if i put
i can login but the UI is not usable the virtualmin panel is gone.
i tried several combinaison that follow but they dont work or give me a panel without virtualmin.
is not usable as i have only webmin not any virtualmin panel and it looks like last century webmin ;p
:root@server:[/etc/webmin]: grep theme config miniserv.conf
config:theme=authentic-theme
config:theme_root=gray-theme
miniserv.conf:preroot=authentic-theme
miniserv.conf:preroot_root=gray-theme
:root@server:[/etc/webmin]: service webmin restart
Stopping Webmin server in /usr/share/webmin
Starting Webmin server in /usr/share/webmin
:root@server:[/etc/webmin]: curl -I https://server.xsxx.net:10000/
HTTP/1.0 500 Missing Content-Type Header
Server: MiniServ/1.972
Date: Sat, 6 Mar 2021 07:18:20 GMT
Content-type: text/html; Charset=utf-8
Connection: close
i must say that root is forbidden to connect to webmin on my setup(in case it matters).
regards, Ghislain.
Remove
forkcgis
directive from yourminiserv.conf
file and restart Webmin.Upcoming Webmin 1.973+ will not have such issue disregard of the mentioned option, and will work just fine either way.
Submitted by gadnet@aqueos.com on Sun, 03/07/2021 - 01:19 Comment #19
hi,
i dont know what this option does but this solves the problem. Thanks !
Ghislain.