The miniserv.conf file is not properly cleaned up after virtual server is deleted

Webmin was down on one of our servers and attempt to restart it from CLI gave:

service webmin restart
Stopping Webmin server in /usr/libexec/webmin
/etc/webmin/stop: line 4: kill: (22801) - No such process
Starting Webmin server in /usr/libexec/webmin
Failed to open SSL key /home/somesite/ssl.key at /usr/libexec/webmin/miniserv.pl line 4434.

which was a surprise to see, because the website somesite.com had been deleted quite some time ago. Anyway, I had to open the /etc/webmin/miniserv.conf file and delete the following lines:

ipkey_somesite.com,*.somesite.com=/home/somesite/ssl.key
ipcert_somesite.com,*.somesite.com=/home/somesite/ssl.cert

and then only Webmin came up.

Status: 
Active

Comments

Status:
Active
»
Closed (fixed)

I had a look at the code, and I found a situation in which this could happen - I'll fix it in the next Virtualmin release.

Status: Fixed ยป Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Status:
Closed (fixed)
»
Active

Guess what - -just happened to me.

I deleted a domain and virutamin crashed. When I try to webin restart it gives

sudo /etc/init.d/webmin restart Stopping Webmin server in /usr/share/webmin cat: /var/webmin/miniserv.pid: No such file or directory /etc/webmin/stop: 4: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or kill -l [exitstatus] Starting Webmin server in /usr/share/webmin Failed to open SSL key /home/new.idio.net/ssl.key at /usr/share/webmin/miniserv.pl line 4434.

Where is .conf file so I can turn off SSL temporarily? or is there a way to fix this error. new.idio.net is the domain I deleted.

The file is /etc/webmin/miniserv.conf

kkallsen, read how I fixed the issue. And as I understand Jamie had fixed it on his end. But I wonder has the fix ever been released or is still pending, Jamie?

The fix should have been out for a while, assuming you're running the latest Virtualmin release (6.06) ?