You are here
Chris - Thu, 2024/08/29 - 22:40
I had a turnkey core v16.1, with gitlab omnibus running on top. I lost that VM due to a power issue. I tried restoring to a fresh core v16.1 with gitlab (same version I had previously) installed and that restore didn't work. So then I spun up a fresh turnkey gitlab v18, upgraded gitlab to the same version I had, got the login page for gitlab to come up, and then performed the restore from core gitlab v16.1. And it worked wonderfully. Except now I can no longer access webmin (12321) or shell in a box (12320). They both show on the confconsole, with the correct IP address. Any help? I can provide more info if needed. Thank you
Forum:
Tags:
re: Lost access to webmin and shellinabox after upgrade/restore
Hi Chris
Glad to hear that you've had some progress with your move to a v18.x base, although this issue sounds like a bit of a pain!
I think what's happened is that your restore has pulled in some older config which has overwritten the updated config in v18.x. I'm guessing that what confconsole is showing has come from your old server. I had hoped to automate some v18.x TKLBAM migrations by now, but my todo list grows faster than I can tick things off...
There are a few significant changes in v18.x. Webshell has been replaced by a Webmin "Terminal" module. With the removal of Webshell, we also removed Stunnel (which was doing SSL/TLS termination for both Webshell and Webmin). Webmin is now being served directly via it's own built in mini server. As Webmin is directly web facing now, it's mini server config (/etc/webmin/miniserv.conf) needs quite a few updates.
Initially I was going to guide you how to update your config file manually step by step. However, we have a script that we use to set up the default Webmin config we ship with. Leveraging that seems like a better idea.
First I'll note the steps to be done:
And now the code to copy/paste into your terminal to apply the steps noted above:
That should finish pretty quickly. Double check that Webmin is now working via your browser.
If it still isn't working, then please give me the output of the following commands:
Please share any other info you think might be useful.
If Webmin is working now and all is well, then great! :)
If you are running the latest v18.1 release (released early July) then you should be all good to go and you can skip this next little bit.
If you're running the older v18.0 release, then I have a few other Webmin related improvements for you. Adding a couple of modules and removing one.
As for the Webshell entry in confconsole. Edit the /etc/confconsole/services.txt file that generates that output. Then remove the whole line noting Webshell and save it.
In future if you want to access a terminal via web UI (like you did before with Webshell) log into Webmin and browse to Tools >> Terminal.
Good luck! :)
I'd love to hear how you go.
re: Lost access to webmin and shellinabox after upgrade/restore
I can see the issue.
I can see the issue.
Webmin is listening on the right port - 12321, but only listening on 127.0.0.1 - i.e. localhost.
I won't explain what all the output means right now, but note the "Local Address" is '127.0.0.1:12321'. That means Webmin is listening on the right port (12321) but only listening on localhost (127.0.0.1) - so only available within the server, not via an external PC. To be externally accessible a server needs to listen on at least one interface. Often 0.0.0.0 is used - which means all interfaces. So in this case, you want the "Local Address" to be 0.0.0.0:12321.
As an aside, it likely isn't obvious to you that that specific process is Webmin (other than the port) - but Webmin is written in Perl, so between the port and the process being 'perl', I'm sure that's it. FWIW you can also ignore the "Foreign Address" in this case.
Looking closer at the code I gave you to update your Webmin config, I'm not 100% sure why it doesn't include/update that. I'm guessing that by default it listens on 0.0.0.0. Anyway, to make it listen externally, edit the Webmin miniserver config - look for a line like this:
Update that to:
Then restart Webmin again:
Then hopefully you should be good.
If it's still not working, give me the output of the last 3 commands I asked for before - i.e. 'netstat -tlnp', 'systemctl status webmin' and 'journalctl -u webmin --since="10 minutes ago"'. It would also be useful to see your full Webmin miniserver config:
Add new comment