DjDecibel's picture

After I updated some repos something went wrong

after rebooting the server, during loading process, I see a error which says Webmin Failed to Start LSB 

I have access to the server but the webmin panel doesn’t appear and I have a database error on all my websites

I tried restarting the webmin service but I receive the same error

No errors on stunnel4..

 

how can I proceed?

 

 

Forum: 
Jeremy Davis's picture

Can you please show the output of these commands:

systemctl status webmin stunnel4@webmin

If either of those says that it's not running (i.e. The line that starts "Active:" is not "active (running)") then please also give me the last 40 lines from the relevant journals:

journalctl -b -u webmin -u stunnel4@webmin | tail -40

The DB errors also don't sound great! That suggests to me that there may be a bigger issue?! (Unless it was an issue before this latest issue with Webmin occurred). Perhaps double check if that is also running (feel free to share that too if you want input there):

systemctl status mysql

Having said all that, if you asked me to guess the cause of the issues you've noted, I'd say, perhaps you've run out of free space? Check that like this:

df -h /
DjDecibel's picture

This is the result after systemctl status webmin stunnel4@webmin

Unit stunnel4@webmin.service could not be found.
* webmin.service - LSB: Webmin
     Loaded: loaded (/etc/init.d/webmin; generated)
     Active: failed (Result: exit-code) since Thu 2022-09-01 08:35:46 UTC; 6min>
       Docs: man:systemd-sysv-generator(8)

Sep 01 08:35:46 lamp systemd[1]: Starting LSB: Webmin...
Sep 01 08:35:46 lamp webmin[806]:  * Starting webmin
Sep 01 08:35:46 lamp systemd[1]: webmin.service: Control process exited, code=e>
Sep 01 08:35:46 lamp systemd[1]: webmin.service: Failed with result 'exit-code'.
Sep 01 08:35:46 lamp systemd[1]: Failed to start LSB: Webmin.

 

result after journalctl -b -u webmin -u stunnel4@webmin | tail -40:

-- Logs begin at Wed 2022-08-31 17:35:43 UTC, end at Thu 2022-09-01 08:48:54 UTC. --
Sep 01 08:35:46 lamp systemd[1]: Starting LSB: Webmin...
Sep 01 08:35:46 lamp webmin[806]:  * Starting webmin
Sep 01 08:35:46 lamp systemd[1]: webmin.service: Control process exited, code=exited, status=127/n/a
Sep 01 08:35:46 lamp systemd[1]: webmin.service: Failed with result 'exit-code'.
Sep 01 08:35:46 lamp systemd[1]: Failed to start LSB: Webmin.

 

after asking the mysql status with systemctl status mysql:

Unit mysql.service could not be found.

 

no, i have enough free space:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       267G   16G  238G   7% /
Jeremy Davis's picture

The only thing that jumps out at me is that this appears to be a relatively old server. Can you tell me which version it is? If you're not sure, please share the output of these commands:

turnkey-version
lsb_release -a

I'm not sure why, but it appears that Webmin is failing for some unspecified reason. Perhaps the Webmin logs might assist? Have a look in /var/log/webmin and you should see some files, hopefully a 'miniserv.error' file, that's the one to check first, but I suggest checking the last 20 or so entries. E.g.:

tail -20 /var/log/webmin/miniserv.error

If you don't find anything in /var/log/webmin (or it doesn't exist) please double check /var/webmin for the files 'miniserv.error', 'miniserv.log' and/or 'webmin.log'.

Please feel free to post the output of those.


As for the lack of MySQL, that is strange!? All I can suggest is that you try to install it and see what happens:

apt-get update
apt-get install default-mysql-server

if that doesn't fix MySQL, please post the output of those 2 commands.

DjDecibel's picture

if i try to start the mysql service i get:

Failed to start mysql.service: Unit mysql.service not found.

 

Jeremy Davis's picture

Thanks for the extra info. Please see my post above.

DjDecibel's picture

the server still had the 15.1 release

i also tryed to reinstall mysql, but i received a strange error (i forgot which one)

then i did the backup of all my files and db's then tryed to reinstall the last turnkey.. tested using both CD's and USB.. but the installer always crashed on  "loading Partitioner"

i solved removing the drive and formatting it outside the server, then  i reinstalled the last 17.1 version without problems.

nothing was working, i had all the sites offline for too much days, so i solved reinstalling all from scratch




 

Jeremy Davis's picture

Glad to hear that you found a work around. Sorry that we couldn't get you back up and running in a timely fashion. I get that it was probably quite frustrating, but upgrading to a newer version is probably a good thing regardless. Hopefully that will ensure a few more years of trouble free service!

Add new comment