I cant access Webmin after IP changed

SYSTEM INFORMATION
OS type and version Centos 7 REQUIRED
Webmin version I don’t remember. REQUIRED
Hello. I manage a server that uses Webmin (without Virtualmin). Due to an unforeseen event, said server had to be moved to another, and an emergency backup of everything there was installed.
Since then, I can’t log in using https://urlserver:10000 as usual. Absolutely nothing appears except that it took too long to respond.
Can you guide me? I have SSH access to the server. I checked the miniserv.conf file and there is no ban on any IP.
This text is translated by Google Translate and I apologize if there is an error that prevents its understanding. I am willing to pass on any information you need to help me.

If you know the IP, use https://yourip:10000/

Once logged in there is normally a update ip warning or something similar.
I was looking at command line, this may fix
https://www.virtualmin.com/documentation/developer/cli/check_config/

Hi! As I clarified, the server uses Webmin without Virtualmin. Therefore the command does not work.
On the other hand, logging in with https://myip:10000 hasn’t worked either.

that sounds like a firewall issue. In shell try to open port 10000 although by default it should be open I think. Long time since I used webmin by itself.

Also see if it running
systemctl status webmin

Thanks! I open the port, but now, I see the screen completely blank. Above (in the tab title) “Login to Webmin” appears, but nothing on the screen.
The service is running:

webmin.service - Webmin server daemon
   Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled; vendor preset: disabled)
   Active: active (running) since vie 2023-06-02 19:22:18 -03; 2 days ago
  Process: 10305 ExecStop=/bin/kill $MAINPID (code=exited, status=0/SUCCESS)
  Process: 10307 ExecStart=/usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf (code=exited, status=0/SUCCESS)
 Main PID: 10309 (miniserv.pl)
   CGroup: /system.slice/webmin.service
           └─10309 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf

that is weird, try restarting webmin. also is this https or just http?

I just reset it and the same thing happens: white screen and nothing appears.
Is https, http never works on webmin, shows ERR_EMPTY_RESPONSE.

You may have try and get @Jamie to help, he is the webmin guru. As far as i can go with it.

P.S. Does temp stopping firewall help at all?

1 Like

No. Honestly it was the first thing I tried after going through some forums and trying those solutions before coming to ask.
Thanks stefan1959, I hope @Jamie can help me.

Is Webmin perhaps configured to listen only on the old IP? You can check for this by editing /etc/webmin/miniserv.conf and changing any occurrences of the old IP to the new one, and then running /etc/webmin/restart

Hi Jamie! I had no IP in the file in question, neither allow nor deny. But reading the file with the intention of pasting it here I came up with “allow=0.0.0.0” and now it works.
I understand that it is surely a security risk, but my IP changes periodically and I think it will be my best alternative.
Thanks for your help and Stefan!

1 Like

Allow all is default, (deleting that line should allow all). So I add my PC’s IP to restrict.
Well all sorted anyway.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.