Webmin not start

SYSTEM INFORMATION
OS type and version Raspbian GNU/Linux 10 (buster) Release: 10
Webmin version 2.102

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.

There is no logs in that folder…

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”

Update:

I reinstalled the system completely, did all package updates, installed my 2 softwares and then Webmin. Now it works correctly.
Some ideas?

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.

1 Like

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…

Look at the logs for webmin… unless your other software is doing something to the system that webmin is un aware of

Okay, now i have the logs:

miniserv.error

[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

miniserv.log

192.168.1.159 - pi [28/Aug/2023:15:20:25 +0100] "GET /proc/index_cpu.cgi HTTP/1.1" 200 21354
192.168.1.159 - pi [28/Aug/2023:15:24:27 +0100] "GET /sysinfo.cgi HTTP/1.1" 200 14827
192.168.1.159 - pi [28/Aug/2023:15:26:25 +0100] "GET /index.cgi/?xhr-info=1 HTTP/1.1" 200 9810
192.168.1.159 - pi [28/Aug/2023:15:28:09 +0100] "POST /acl/edit_user.cgi?user=root HTTP/1.1" 200 93121
192.168.1.159 - pi [28/Aug/2023:15:28:12 +0100] "GET /unauthenticated/fonts/KFOmCnqEu92Fr1Mu5mxKOzY.woff2 HTTP/1.1" 200 9688
192.168.1.159 - pi [28/Aug/2023:15:28:12 +0100] "GET /unauthenticated/fonts/KFOmCnqEu92Fr1Mu7GxKOzY.woff2 HTTP/1.1" 200 11860
192.168.1.159 - pi [28/Aug/2023:15:28:12 +0100] "GET /unauthenticated/fonts/KFOmCnqEu92Fr1Mu4WxKOzY.woff2 HTTP/1.1" 200 7100
192.168.1.159 - pi [28/Aug/2023:15:28:51 +0100] "POST /sshd/ HTTP/1.1" 200 7634
192.168.1.159 - pi [28/Aug/2023:15:28:53 +0100] "GET /images/modules/sshd/net.gif HTTP/1.1" 200 3816
192.168.1.159 - pi [28/Aug/2023:15:28:54 +0100] "GET /images/modules/sshd/access.gif HTTP/1.1" 200 3200
192.168.1.159 - pi [28/Aug/2023:15:28:54 +0100] "GET /images/modules/sshd/users.gif HTTP/1.1" 200 2848
192.168.1.159 - pi [28/Aug/2023:15:28:55 +0100] "GET /images/modules/sshd/hosts.gif HTTP/1.1" 200 2974
192.168.1.159 - pi [28/Aug/2023:15:28:55 +0100] "GET /images/modules/sshd/misc.gif HTTP/1.1" 200 5346
192.168.1.159 - pi [28/Aug/2023:15:28:55 +0100] "GET /images/modules/sshd/sync.gif HTTP/1.1" 200 2407
192.168.1.159 - pi [28/Aug/2023:15:28:55 +0100] "GET /sshd/images/keys.gif HTTP/1.1" 200 200
192.168.1.159 - pi [28/Aug/2023:15:28:55 +0100] "GET /images/modules/sshd/manual.gif HTTP/1.1" 200 5031
192.168.1.159 - pi [28/Aug/2023:15:30:56 +0100] "POST /backup-config/ HTTP/1.1" 200 27143
192.168.1.159 - pi [28/Aug/2023:15:32:11 +0100] "GET /sysinfo.cgi HTTP/1.1" 200 14827
192.168.1.159 - pi [28/Aug/2023:15:33:34 +0100] "GET /index.cgi/?xhr-info=1 HTTP/1.1" 200 9809
192.168.1.159 - pi [28/Aug/2023:15:33:59 +0100] "GET /index.cgi/?xhr-info=1 HTTP/1.1" 200 9809
192.168.1.159 - pi [28/Aug/2023:15:34:06 +0100] "GET /stats.cgi?xhr-stats=general&sdata=1 HTTP/1.1" 200 1962
192.168.1.159 - pi [28/Aug/2023:15:34:24 +0100] "GET /stats.cgi?xhr-stats=general&sdata=1 HTTP/1.1" 200 1967
192.168.1.159 - - [28/Aug/2023:15:35:15 +0100] "GET / HTTP/1.1" 200 1850
192.168.1.159 - pi [28/Aug/2023:15:36:18 +0100] "GET /proc/index_cpu.cgi HTTP/1.1" 200 21340
192.168.1.159 - pi [28/Aug/2023:15:37:05 +0100] "GET /sysinfo.cgi HTTP/1.1" 200 14826
192.168.1.159 - pi [28/Aug/2023:15:37:47 +0100] "POST /software/ HTTP/1.1" 200 11241
192.168.1.159 - pi [28/Aug/2023:15:39:28 +0100] "POST /package-updates/ HTTP/1.1" 200 15411
192.168.1.159 - pi [28/Aug/2023:15:39:35 +0100] "GET /index.cgi/?xhr-info=1 HTTP/1.1" 200 9810
192.168.1.159 - pi [28/Aug/2023:15:52:29 +0100] "GET /index.cgi/?xhr-info=1 HTTP/1.1" 200 9808
192.168.1.159 - pi [28/Aug/2023:17:13:22 +0100] "GET /unauthenticated/js/defaults.js?215000009999999999 HTTP/1.1" 200 12138
192.168.1.159 - pi [28/Aug/2023:17:13:22 +0100] "GET /service-worker.js HTTP/1.1" 200 141
192.168.1.159 - pi [28/Aug/2023:17:13:26 +0100] "GET /unauthenticated/css/fonts-roboto.min.css?215000009999999999 HTTP/1.1" 200 971
192.168.1.159 - pi [28/Aug/2023:17:13:26 +0100] "GET /unauthenticated/css/bundle.min.css?215000009999999999 HTTP/1.1" 200 183029
192.168.1.159 - pi [28/Aug/2023:17:13:26 +0100] "GET /unauthenticated/js/bundle.min.js?215000009999999999 HTTP/1.1" 200 490080
192.168.1.159 - pi [28/Aug/2023:17:13:29 +0100] "GET /unauthenticated/fonts/KFOmCnqEu92Fr1Mu4mxK.woff2 HTTP/1.1" 200 15688
192.168.1.159 - pi [28/Aug/2023:17:13:30 +0100] "GET /images/favicons/webmin/favicon-16x16.png HTTP/1.1" 200 1146
192.168.1.159 - pi [28/Aug/2023:17:13:31 +0100] "GET / HTTP/1.1" 200 96037
192.168.1.159 - pi [28/Aug/2023:17:13:32 +0100] "GET /service-worker.js HTTP/1.1" 200 141
192.168.1.159 - pi [28/Aug/2023:17:13:32 +0100] "GET /unauthenticated/fonts/KFOlCnqEu92Fr1MmSU5fBBc4.woff2 HTTP/1.1" 200 15732
192.168.1.159 - pi [28/Aug/2023:17:13:32 +0100] "GET /extensions/stats/stats.min.js?215000009999999999 HTTP/1.1" 200 2546
192.168.1.159 - pi [28/Aug/2023:17:13:33 +0100] "GET /unauthenticated/fonts/KFOlCnqEu92Fr1MmEU9fBBc4.woff2 HTTP/1.1" 200 15920
192.168.1.159 - pi [28/Aug/2023:17:13:33 +0100] "GET /unauthenticated/fonts/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSh0mQ.woff2 HTTP/1.1" 200 22196
192.168.1.159 - pi [28/Aug/2023:17:13:33 +0100] "GET /unauthenticated/fonts/KFOkCnqEu92Fr1Mu51xIIzI.woff2 HTTP/1.1" 200 17304
192.168.1.159 - pi [28/Aug/2023:17:14:21 +0100] "POST /index.cgi HTTP/1.1" 200 1
192.168.1.159 - pi [28/Aug/2023:17:14:36 +0100] "POST /index.cgi HTTP/1.1" 200 1135
192.168.1.159 - pi [28/Aug/2023:17:14:44 +0100] "GET /sysinfo.cgi HTTP/1.1" 200 14834
192.168.1.159 - pi [28/Aug/2023:17:14:46 +0100] "GET /unauthenticated/fonts/KFOlCnqEu92Fr1MmWUlfBBc4.woff2 HTTP/1.1" 200 15828
192.168.1.159 - pi [28/Aug/2023:17:15:25 +0100] "GET /index.cgi/?xhr-info=1 HTTP/1.1" 200 9818
192.168.1.159 - pi [28/Aug/2023:17:16:28 +0100] "POST /index.cgi/?xhr-theme_clear_cache=1 HTTP/1.1" 200 0
192.168.1.159 - pi [28/Aug/2023:17:17:54 +0100] "GET /stats.cgi?xhr-stats=general&sdata=1 HTTP/1.1" 200 513
192.168.1.159 - pi [28/Aug/2023:17:18:25 +0100] "GET /stats.cgi?xhr-stats=general&sdata=1 HTTP/1.1" 200 670
192.168.1.159 - pi [28/Aug/2023:17:19:33 +0100] "GET /system-status/recollect.cgi HTTP/1.1" 302 0

is that even possible? Is it even listed as a class A?

Sorry i don’t know, I’m a bit ignorant in this area, but this is what I’m using

Cattura

Webmin, not Virtualmin mate.

If OP is just using Webmin, as appears to be the case, it runs on just about anything.

1 Like

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?

I installed via

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…

Webmin is a perl program.

I wonder if running the following commands would solve the problem for you:

apt-get install libsocket6-perl -y
/etc/webmin/restart-by-force-kill