Hi - I’ve just upgraded Webmin to 1.560, and I find the startup action that’s been successfully starting Webmin at boot time has gone away.
What’s more, I can’t get it back.
When I visit “Bootup and Shutdown” I select Webmin and press the “Start on Boot” button, which takes me to a message saying “Enabling service webmin at boot time”. However when I go back to the Bootup and Shutdown list, Webmin is still not enabled at startup (marked “No” in the column marked “Start at Boot?”).
The same thing happens if I visit “Webmin Configuration” - select the radio button that says “Yes” next to “Start at Boot Time”, click the button, and the page reloads, but it still displays “No” as being checked.
I’ve confirmed that in fact Webmin is NOT starting at boot, so the displayed settings are technically correct.
Any idea how I can fix this?
I’ll hack the startup script into rc.local if I have to, but that seems wrong…
After upgrading to Webmin 1.560, the softlink in /etc/rc2.d to Webmin and Usermin disappeared. Like Sam described, the Bootup and Shutdown module consequently lists Webmin as “Start at boot: No”. Trying to change that yields the following debug log:
@Sam: As concluded in the issue tracker entry, after quite some back-and-forth between Jamie and me :), it turned out to be an Upstart/insserv related problem.
Try if the following fixes the problem for you. Locate the file /lib/init/upstart-job and insert the following part before the line near the end that contains the text *)
I’ve run into this too, yesterday after a kernel update I restarted the server just to realize I could no longer connect to webmin/virtualmin after the server was online again. After a brief and minor spasm I restarted it from shell.
Should maybe release a notice since this probably effects all Ubuntu 10.04 servers.
I think the reason for this hassle is a bug in Ubuntu. The insserv command does not work properly, at least at some point, due to the erroneous “upstart-job” script, and Webmin is trying to make use of it to set its startup.
But putting out a warning, combined with a hint how to fix it, would sure be a nice thing.
What would be a good way to notify people of this problem? Would stickying this particular thread help? Perhaps a note in the News forum that includes the fix?
While I have successfully used this fix on two Virtualbox installations, one of the Vbox (after applying the fix) reports the following at every boot:-
/dev/sda1 was not cleanly unmounted, check forced.
Your disk drives are being checked for errors, this may take some time
Press C to cancel all checks currently in progress
/dev/sda1: 206/124496 files (1.9% non-contiguous, 31943/248832 blocks
mountall: fsck /boot [260] terminted with status 1
etc.
etc.
The only difference between the Vbox installations is, the one making that report had the harddrive configured with LVM during partition configuration (not encrypted).
Everything appears to be running fine on both, apart from that forced check at every boot on that one Vbox.
Anyone else come across this? Anyone know how I can ‘fix’ this?
Hmm, I don’t really think that this unmount issue is related to the fix in upstart-job. I can’t see how the two should have anything to do with each other.
Can you double-check this by “unfixing” the fix, and see if you still get the unmount-fsck thing then?
After much experimentation, it appears that the unmount issue only occurs after applying the fix to ‘/lib/init/upstart-job’ then running ‘/etc/init.d/webmin start’ during a clean installation of Ubuntu 10.04 and Virtualmin.
Reversing the fix and disabling Webmin from running at boot does not resolve the issue.
Have an Ubuntu 10.04 here, and troubleshooting the same problem so I’d say it’s Ubuntu 10.04-wide. Hope a sudo apt-get update then sudo apt-get upgrade will fix things at some point in the future…manual fixing gets tedious.
Here’s the summary for others coming along on how to fix the problem. I learned some more about ubuntu going thru this, hopefully the below will also help others like me
Verify problem
login via ssh and check webmin status
“sudo service webmin status” - This will report webmin not running
“sudo service webmin start” - manually starts webmin for this session
Open webmin and goto System | Bootup and Shutdown. Try and enable webmin to start at boot. You will see it won’t update start at boot status.
Fix problem - per Locutus thanks!
In ssh
“sudo vim /lib/init/upstart-job”
and insert the following part before the line near the end that contains the text *)