I updated some of my servers to version 5.03 last night.
While most of the updates work perfectly right away, I had some problems during upgrading to this version. - 2 servers didn't (re)start Apache after the update (Debian Wheezy & an Ubuntu 14.04) - One of the servers didn't finish the update. (Debian Squeeze, I know I have to update it soon)
Of course, problem 1 was simple to repair. I could start Apache2 without problems.
I restarted server 3 (the one that didn't finish) after 8 hours of waiting. After using "dpkg --configure -a", I got the following:
Setting up webmin-virtual-server (5.03.gpl) ...
virtual-server/postinstall.pl failed : virtual-server::module_install failed : useradmin::lock_user_files failed : Failed to lock file <tt>/etc/passwd</tt> after 5 minutes. Last error was : at web-lib-funcs.pl line 1427.
Now, I can't access the controlpanel. When I access the server on port 1000, the page keeps on loading and I don't get any response. In the processlist I see an process '/usr/share/webmin/authentic-theme/index.cgi' running on 100% on a core.
I tried changing the theme by editing the config file (/etc/webmin/config) but it didn't solve the problem: also that page keeps loading.
I can't find any errors in /var/log/syslog etc., and I can't find other logs that need to be checked.
What can I do? Thank you in advance for your responses!
Howdy,
If you restart the Webmin service, does that get things back up and running again?
But it sounds like the issue is related to some lock files... you may find to run a comment such as this to find what lock files are laying around:
find /etc -name "*.lock"
Hi,
I'm sorry I didn't tell before, but I've already tried the following:
I started with:
/etc/group.lock
/etc/passwd.lock
/etc/shadow.lock
/etc/apache2/mods-available/ssl.conf.lock
/etc/gshadow.lock
/etc/webmin/virtual-server/names/somedomains.tld.lock
...
/etc/webmin/virtual-server/everyone/136575990617002.lock
/etc/webmin/virtual-server/collected.lock
But after some time (or restarting webmin or trying contacting the controlpanel again) they recreate. I now have:
/etc/group.lock
/etc/passwd.lock
/etc/shadow.lock
/etc/gshadow.lock
Update 26-5:
/etc/group.lock
/etc/passwd.lock
/etc/shadow.lock
/etc/gshadow.lock
/etc/webmin/virtual-server/collected.lock
Update 27-5 9:00
Just got an update to webmin 1.801. It didn't solve the problem. The installation hang, but after removing the locks it did finish. The locks are (already) back now. The authentic-theme loads it's bar at the side, but it keeps on 'loading' the main frame. The old/default theme loads two radio buttons and a empty button in the left upper corner and also keeps loading. I thing something hangs in the /usr/share/webmin/virtual-server/list-domains.pl. (but I have to say also collectinfo.pl and with authentic theme, the authentic-theme/index keeps having cpu on 100%.
How can I see where it hangs? Is there some kind of debugging mode?
Update: the process /usr/share/webmin/virtual-server/collectinfo.pl keeps on growing. It doesn't end. It's now (before I killed it) almost 10GB and CPU is constantly at 100%. Server load of 60 (it's a quadcore + 8GB).
The server is unstable and I have to kill processes every few hours. I hope that someone can tell me what to do.
I've got backups, but the server keeps being used (except for the dashboard that doesn't work) so I prefer to only repair (or replace) virtualmin without losing data/settings.
Update: new error in old theme
Failed to lock file /etc/group after 5 minutes. Last error was :
It seems the lockfiles are an issue, but why do they keep on appearing?
root@hosting4:/home/mverhoef# lsof /etc/passwd.lock
root@hosting4:/home/mverhoef# lsof /etc/passwd
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
proftpd 2081 proftpd 7r REG 254,1 82553 702567 /etc/passwd
miniserv. 3621 root mem REG 254,1 82553 702567 /etc/passwd
miniserv. 3621 root 6r REG 254,1 82553 702567 /etc/passwd
sudo 5208 root 3r REG 254,1 82553 702567 /etc/passwd
Same problem on only one server (I have 10 servers), I did a rollback to 5.02 (OS: Ubuntu):
apt-get --reinstall install webmin-virtual-server=5.02.gpl
You may be seeing a bug that popped up recently.
What I would suggest, is look in /etc/webmin/virtual-server/domains, and make sure each file has a "dom=YOUR-DOMAIN.TLD" line.
If one of those files is missing that line, or the domain is blank, that could cause the issue you're seeing.
-Eric
Thank, I found one file with only entry ssl_same.
Okay, try moving that file out of the domains directory... put it into /tmp or so... and then restart Webmin.
After doing that, are you able to access Virtualmin?
-Eric
This file was completely empty only a line with ssl_same, I think it's the last domain I deleted. So, I deleted the file.
Did things work after deleting that file, and restarting Webmin?
-Eric