Hi guys, I state that I am not an expert, so please forgive my ignorance.
After installing Webmin (working) I had to uninstall it for other needs, once reinstalled it no longer worked, it seems that the service restarts continuously due to an error.
I tried uninstalling/reinstalling several times but the problem persists.
Here are two tests i did
systemctl status webmin.service
â webmin.service - Webmin server daemon
Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: timeout) since Sun 2023-08-27 12:16:13 BST; 463ms ago
Process: 13290 ExecStart=/usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf (code=killed, signal=TERM)
journalctl -xe
Aug 27 12:18:17 raspberrypi rbfeeder[572]: [2023-08-27 12:18:17] ******** Statistics updated every 60 seconds ********
Aug 27 12:18:17 raspberrypi rbfeeder[572]: [2023-08-27 12:18:17] Packets sent in the last 60 seconds: 3, Total packets
Aug 27 12:18:17 raspberrypi rbfeeder[572]: [2023-08-27 12:18:17] Data sent: 98.5 KB
Aug 27 12:18:17 raspberrypi rbfeeder[572]: [2023-08-27 12:18:17] Data received: 186 B
Aug 27 12:18:18 raspberrypi systemd[1]: webmin.service: Service RestartSec=2s expired, scheduling restart.
Aug 27 12:18:18 raspberrypi systemd[1]: webmin.service: Scheduled restart job, restart counter is at 30.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit webmin.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 27 12:18:18 raspberrypi systemd[1]: Stopped Webmin server daemon.
-- Subject: A stop job for unit webmin.service has finished
-- Defined-By: systemd
--
-- A stop job for unit webmin.service has finished.
--
-- The job identifier is 66786 and the job result is done.
Aug 27 12:18:18 raspberrypi systemd[1]: Starting Webmin server daemon...
-- Subject: A start job for unit webmin.service has begun execution
-- Defined-By: systemd
--
-- A start job for unit webmin.service has begun execution.
--
-- The job identifier is 66786.
Youâll need to look in the logs in /var/webmin. Thereâs a miniserv.error log that is probably where youâll find whatâs keeping it from starting.
Did your âother needsâ also remove some webmin dependency which need to be reinstalled ? If no log is written it would appear that webmin is terminating before it can write anything to itâs log
Most likely yes, i have removed some webmin dependency, but I think I reinstalled everything I needed via âapt-get install webmin --install-recommendsâ
If it works then no need to go further. When you reinstalled you pretty much clobbered any clues and chance of figuring out what went wrong. All would be guess work, so, pointless. Glad you are up and running.
Hi guys, Iâm here again with the same problem⊠This time I just stopped the service via /etc/webmin/stop and now it wonât start again. I tried restarting system and starting the service via /etc/webmin/start but it doesnât workâŠ
[28/Aug/2023:13:53:55 +0100] miniserv.pl started
[28/Aug/2023:13:53:55 +0100] IPv6 support cannot be enabled without the Socket6 perl module
[28/Aug/2023:13:53:55 +0100] Using MD5 module Digest::MD5
[28/Aug/2023:13:53:55 +0100] Using SHA512 module Crypt::SHA
[28/Aug/2023:13:53:55 +0100] PAM authentication enabled
[28/Aug/2023:13:56:39 +0100] Reloading configuration
[28/Aug/2023:13:57:09 +0100] Reloading configuration
[28/Aug/2023:14:26:50 +0100] Shutting down
[28/Aug/2023:14:28:37 +0100] miniserv.pl started
[28/Aug/2023:14:28:37 +0100] IPv6 support cannot be enabled without the Socket6 perl module
[28/Aug/2023:14:28:37 +0100] Using MD5 module Digest::MD5
[28/Aug/2023:14:28:37 +0100] Using SHA512 module Crypt::SHA
[28/Aug/2023:14:28:37 +0100] PAM authentication enabled
[28/Aug/2023:14:52:50 +0100] Shutting down
[28/Aug/2023:14:54:21 +0100] miniserv.pl started
[28/Aug/2023:14:54:21 +0100] IPv6 support cannot be enabled without the Socket6 perl module
[28/Aug/2023:14:54:21 +0100] Using MD5 module Digest::MD5
[28/Aug/2023:14:54:21 +0100] Using SHA512 module Crypt::SHA
[28/Aug/2023:14:54:21 +0100] PAM authentication enabled
[28/Aug/2023:15:08:01 +0100] Shutting down
[28/Aug/2023:15:09:34 +0100] miniserv.pl started
[28/Aug/2023:15:09:34 +0100] IPv6 support cannot be enabled without the Socket6 perl module
[28/Aug/2023:15:09:34 +0100] Using MD5 module Digest::MD5
[28/Aug/2023:15:09:34 +0100] Using SHA512 module Crypt::SHA
[28/Aug/2023:15:09:34 +0100] PAM authentication enabled
scheduled_collect_system_info : Already running
[28/Aug/2023:17:20:32 +0100] Shutting down
[28/Aug/2023:17:20:32 +0100] Shutting down
I donât see any evidence of Webmin trying to start after that last âShutting downâ.
Did you install using the deb package? If so, you should have a systemd unit or initscript for starting and stopping Webmin, rather than /etc/webmin/start or /etc/webmin/stop (though those should also work, and I would think would provide more errors.
Youâre not giving us anything to go on. There will be errors if Webmin canât start, soâŠwhere are the errors? Are you sure it isnât starting? Do you have a firewall preventing access? Have you checked to see if it is listening (netstat -lnp|grep 10000)? Looked in the process list to see if there are processes for Webmin?
curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sh setup-repos.sh
I tried many times /etc/webmin/start and stop but without success and without generating any log because Webmin crashes during startup (see first test, it gets stuck on Active: activating (auto-restart) ).
I donât have firewall problems because I already used it once and everything was ok.
I also already tried netstat -lnp|grep 10000 and there was only perl result. Now I removed one of the two software I used and Webmin is back to workâŠ