"Help, help! I'm being repressed!"
I have two servers with the Ubuntu 16.04 server OS. I manage one server with just Webmin (my internal server) and the other with Virtualmin (my outward facing server). Due to the pressure of the upgrade notifications, I upgraded yesterday night to the latest Authentic Theme beta release. Today I have no interface at all for Webmin, just a big white rectangle in the browser, and Virtualmin is different on the splash page where the main panel with status gauges is gone. Typically I use Firefox on a Ubuntu 18.04 workstation to get to Webmin/Virtualmin. Today I tried my Webmin only server with Chrome to see if it was browser dependent. I got the login properly but had to use the internal IP instead of the servers name to get the login screen. After logging in it was just a blank screen.
Inspect in Chrome produces: (the names have been changed to protect the guilty)
<html data-host="192.168.4.41:10000" data-hostname="ImABigBoy" data-title-initial="Webmin 1.890 on ImABigBoy (Ubuntu Linux 16.04.3)" data-debug="0" data-session="1" data-script-name="/" data-background-style="gainsboro" data-night-mode="0" data-high-contrast="0" data-navigation-collapsed="0" data-slider-fixed="0" data-sestatus="0" data-shell="1" data-webmin="1" data-usermin="" data-navigation="1" data-status="1" data-package-updates="1" data-csf="0" data-theme="purple" data-default-theme="purple" data-theme-version="19.21" data-theme-mversion="01" data-level="0" data-user-home="/home/adminuser" data-user-id="1000" data-user="adminuser" data-dashboard="1" data-ltr="1" data-language="en" data-language-full="en" data-charset="UTF-8" data-notice="0" data-redirect="" data-initial-wizard="1" data-webprefix="" data-current-product="webmin" data-module="" data-uri="/" data-progress="1" data-product="webmin" data-access-level="0" class="gr__192_168_1_190"><style></style><head>
<noscript> <style> html[data-background-style="gainsboro"] { background-color: #d6d6d6; } html[data-background-style="nightRider"] { background-color: #1a1c20; } html[data-background-style="nightRider"] div[data-noscript] { color: #979ba080; } html[data-slider-fixed='1'] { margin-right: 0 !important; } body > div[data-noscript] ~ * { display: none !important; } div[data-noscript] { visibility: hidden; animation: 2s noscript-fadein; animation-delay: 1s; text-align: center; animation-fill-mode: forwards; } @keyframes noscript-fadein { 0% { opacity: 0; } 100% { visibility: visible; opacity: 1; } } </style> <div data-noscript> <div class="fa fa-3x fa-exclamation-triangle margined-top-20 text-danger"></div> <h2>JavaScript is disabled</h2> <p>Please enable javascript and refresh the page</p> </div> </noscript>
<meta charset="UTF-8">
<link data-link-ref="" rel="apple-touch-icon" sizes="180x180" href="/images/favicons/webmin/apple-touch-icon.png"><link data-link-ref="" rel="icon" type="image/png" sizes="32x32" href="/images/favicons/webmin/favicon-32x32.png"><link data-link-ref="" rel="icon" type="image/png" sizes="192x192" href="/images/favicons/webmin/android-chrome-192x192.png"><link data-link-ref="" rel="icon" type="image/png" sizes="16x16" href="/images/favicons/webmin/favicon-16x16.png"><link data-link-ref="" rel="manifest" href="/images/favicons/webmin/site.webmanifest"><link data-link-ref="" rel="mask-icon" href="/images/favicons/webmin/safari-pinned-tab.svg" color="#3d74ca"><meta name="msapplication-TileColor" content="#3d74ca"><meta data-link-ref="" name="msapplication-TileImage" content="/images/favicons/webmin/mstile-144x144.png"><meta name="theme-color" content="#3d74ca"> <title>Webmin 1.890 on ImABigBoy (Ubuntu Linux 16.04.3)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>HTTP/1.0 500 Perl execution failed
Server: MiniServ/1.890
Date: Fri, 16 Nov 2018 14:24:03 GMT
Content-type: text/html; Charset=iso-8859-1
Connection: close
<h1>Error - Perl execution failed</h1>
<p>Undefined subroutine &WebminCore::convert_to_json called at /usr/share/webmin/authentic-theme/authentic-funcs.pm line 72.
</p>
</script><link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,600,700&amp;subset=cyrillic" rel="stylesheet"></head><span id="warning-container"><i data-reactroot=""></i></span><body data-gr-c-s-loaded="true" class=" hasGoogleVoiceExt"></body></html>
So how do I do a shell command to reverse the upgrade?
Also, a minor point is that the favicon changed back to the blue "w" triangle.
Comments
Submitted by andreychek on Fri, 11/16/2018 - 09:15 Comment #1
Howdy -- thanks for contacting us!
It looks like you're receiving the following error:
Undefined subroutine &WebminCore::convert_to_json
What Webmin version is it that you're using there?
If you aren't using the most recent Webmin, you may want to try updating that (the most recent being 1.894).
@andreychek How can I find out the version with a shell command? I don't memorize the version I'm running. I always upgrade to the latest stable release, and sometimes (lately) I've tried the Beta releases just to get the status message about upgrading to go away.
On my Virtualmin managed server it's 1.894 so they probably are the same.
Submitted by andreychek on Fri, 11/16/2018 - 09:25 Comment #3
The issue you're seeing may just be an issue with the theme using a particular feature from the latest Webmin, but that not currently being installed... but let's check --
What is the output of this command:
dpkg -l webmin
@andreychek
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii webmin 1.890 all web-based administration interfac
Submitted by andreychek on Fri, 11/16/2018 - 09:34 Comment #5
That looks like an earlier Webmin version... try updating that to the most recent.
You could update all packages on your system with "apt-get upgrade".
@andreychek Just did
sudo apt-get update
and:Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Ign:5 http://download.webmin.com/download/repository sarge InRelease
Hit:6 http://download.webmin.com/download/repository sarge Release
Fetched 323 kB in 1min 3s (5,077 B/s)
Reading package lists... Done
A long time passed while updating the webmin repository.
Then did
sudo apt-get upgrade
and:Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
While were this far, I can't seem to ssh into my outward facing server. It could be my fault. I'm trying to diagnose it on my own. I duck-duck-go'ed the error
ssh_exchange_identification: read: Connection reset by peer
and saw this stack exchange post. I have a long list in my/etc/hosts.deny
file that I put in because China Telecom hacking and so forth, but the I set theALL : PARANOID
in it so I could stop looking for bad IP addresses. Today I commented out theALL : PARANOID
and added my IP in the/etc/hosts.allow
then used Webmin to apply the changes to SSH Server but still can't ssh in.Do I need to regenerate the keys? The stack exchange article suggests:
$ ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
$ ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
$ ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
$ /etc/init.d/sshd start
but I would like to achieve the same results with Webmin. I don't know how.
Webmin version 1.900 is about to be out.
Simply downgrade the theme back to 19.19 by running the update script from consple.:
./theme-update.sh -release:19.19
..and wait for upcoming release.
In case you don't want to see notifications, you don't need to do install to make them go away. You should disable checking updates in theme configuration.
Okay, @Ilia you solved my problem.
$ CD /usr/share/webmin/authentic-theme
$ sudo ./theme-update.sh -release:19.19
finished the job. My internal server is back to normal now. Thanks.
The part about no SSH can be ignored. I'll figure that out on my own.
About the SSH problem, I poked around in the AUTH logs filtering on "sshd" in Webmin. I thought this was odd
error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
so I duck-duck-go'ed and landed on Ask Ubuntu where the root of my problems was I didn't have the key on the server that the ssh from my desktop was asking for. Thessh-keygen -A
command solved it.Mysterious as to why I had the key on both servers long ago, but for some reason didn't have it on the Virtualmin managed server recently. Been so long since I ssh'ed into that server cause everything is in Webmin/Virtualmin now that I have no idea when it could have gone missing.
Just for the record--in case anybody with the same problem arrives here--I had the same trouble with Usermin but didn't discover it till today. This fixed it too:
$ CD /usr/share/usermin/authentic-theme
$ sudo ./theme-update.sh -release:19.19