Usermin not starting up / authenicating after webmin 1.999 update?

Usermin is not starting up. I’m suspect it is posibly related to the webmin update to 1.999 (I have a server running the same Virtualmin 7.1-1 version but on webmin 1.994 and Usermin is up and running) as I think I lost Usermin after the webmin update.

journalctl -xe and systemctl status shows:

– The unit usermin.service has entered the ‘failed’ state with result ‘exit-code’.
Sep 13 13:01:14 one.communiffy.com systemd[1]: Failed to start Usermin server daemon.
– Subject: A start job for unit usermin.service has failed

root@one:~# systemctl status usermin
● usermin.service - Usermin server daemon
Loaded: loaded (/lib/systemd/system/usermin.service; enabled; vendor preset: enabled)
Active: activating (start) since Tue 2022-09-13 13:01:53 PDT; 2s ago
Cntrl PID: 7418 (miniserv.pl)
Tasks: 1 (limit: 4915)
Memory: 20.5M
CGroup: /system.slice/usermin.service
└─7418 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf

Sep 13 13:01:53 one.communiffy.com systemd[1]: Starting Usermin server daemon…
Sep 13 13:01:53 one.communiffy.com perl[7418]: pam_unix(usermin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root

. . .

Anyone have any suggestions on how to troubleshoot and resolve the Usermin authentication?

Thanks,

SYSTEM INFORMATION
OS type and version debian 10
Virtualmin version 7.1-1

Why are you logging into Usermin as root? That doesn’t make sense. (I’m not sure if it prevents it, but I would think it would. I don’t think I’ve ever tried it.)

Yeah, you’re right. It’s not best practice to log as root. But I haven’t changed that habit.

The one server with the working Usermin and webmin 1.994, I also log in as root to virtualmin/webmin. Then I check the Virtualmin users. With the webmin 1.994 server, Usermin is up and running. So I see the loginto Usermin option.

on the working Usermin/webmin 1.994 system:

systemctl status usermin
● usermin.service - LSB: web-based account administration interface for Unix systems
Loaded: loaded (/etc/init.d/usermin; generated)
Active: active (running) since Mon 2022-05-02 14:33:04 PDT; 4 months 12 days ago
Docs: man:systemd-sysv-generator(8)
Tasks: 38 (limit: 4915)
Memory: 209.2M
CGroup: /system.slice/usermin.service
├─ 1706 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf
├─ 1828 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf
├─ 1829 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf
├─ 2068 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf

but on the nonworking webmin1.999/Usermin:

systemctl status usermin

● usermin.service - Usermin server daemon
Loaded: loaded (/lib/systemd/system/usermin.service; enabled; vendor preset: enabled)
Active: activating (start) since Tue 2022-09-13 14:13:35 PDT; 3s ago
Cntrl PID: 5281 (miniserv.pl)
Tasks: 1 (limit: 4915)
Memory: 20.5M
CGroup: /system.slice/usermin.service
└─5281 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf

Sep 13 14:13:34 one.communiffy.com systemd[1]: usermin.service: Service RestartSec=2s expired, scheduling restart.
Sep 13 14:13:34 one.communiffy.com systemd[1]: usermin.service: Scheduled restart job, restart counter is at 130005.
Sep 13 14:13:34 one.communiffy.com systemd[1]: Stopped Usermin server daemon.
Sep 13 14:13:35 one.communiffy.com systemd[1]: Starting Usermin server daemon…
Sep 13 14:13:35 one.communiffy.com perl[5281]: pam_unix(usermin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root

. . .

Is it a consideration that Loaded of the working webmin 1.994/Usermin says /etc/init.d/usermin

while the nonworking webmin 1.999 says /lib/systemd/system/usermin.service

Just in case, I’m reporting I have the same issue.

Usermin won’t be available at all, for any user, it’s not username-related, webmin/virtualmin have ceased offering it the option.

The serverurl:port that I used to open usermin, from which I’d provide the username and password, doesn’t resolve at all.

For instance, again,

service usermin status
* usermin.service - Usermin server daemon
   Loaded: loaded (/lib/systemd/system/usermin.service; enabled; vendor preset: enabled)
   Active: activating (start) since Mon 2022-10-31 22:36:04 CET; 259ms ago
Cntrl PID: 1919 (miniserv.pl)
    Tasks: 1 (limit: 4915)
   Memory: 9.8M
   CGroup: /system.slice/usermin.service
           `-1919 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf

Oct 31 22:36:04 ns3168409.ip-51-178-79.eu systemd[1]: Starting Usermin server daemon...
Oct 31 22:36:04 ns3168409.ip-51-178-79.eu perl[1919]: pam_unix(usermin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root

Same, in the virtualmin panel, server-url/usermin/?xnavigation=1 nothing will happen when I click the button to start up usermin, a brief wait time, and the button to start it is clickable again.

Not sure if I’m asking for support or simply providing a “me too, it’s not random bad luck and maybe something more widespread” report. I can be DMed if more details are necessary, no worries.

A very odd issues you’re having there. I couldn’t reproduce neither of those.

If you run the following command does it solve your problem:

pkill -9 miniserv
systemctl restart webmin usermin

Thanks Ilia.

I ran what you proposed, here’s the (unsatisfactory, I’m afraid) output, giving the same PAM authentification error for both webmin and usermin (but, hey, webmin is still working so I’ve got that!)

[root@#######:~]$ pkill -9 miniserv
[root@#######:~]$ systemctl restart webmin usermin
[root@#######:~]$ service webmin status
* webmin.service - Webmin server daemon
   Loaded: loaded (/lib/systemd/system/webmin.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2022-11-07 16:50:10 CET; 43s ago
  Process: 14407 ExecStart=/usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf (code=exited, status=0/SUCCESS)
 Main PID: 14705 (miniserv.pl)
    Tasks: 2 (limit: 4915)
   Memory: 296.3M
   CGroup: /system.slice/webmin.service
           |-14705 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
           `-16226 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf

Nov 07 16:50:06 ####### systemd[1]: Starting Webmin server daemon...
Nov 07 16:50:07 ####### perl[14407]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root
Nov 07 16:50:09 ####### webmin[14407]: Webmin starting
Nov 07 16:50:10 ####### systemd[1]: Started Webmin server daemon.
[root@#######:~]$ service usermin status
* usermin.service - Usermin server daemon
   Loaded: loaded (/lib/systemd/system/usermin.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2022-11-07 16:50:09 CET; 9min ago
 Main PID: 14684 (miniserv.pl)
    Tasks: 1 (limit: 4915)
   Memory: 17.4M
   CGroup: /system.slice/usermin.service
           `-14684 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf

Nov 07 16:50:06 ####### systemd[1]: Starting Usermin server daemon...
Nov 07 16:50:07 ####### perl[14406]: pam_unix(usermin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root
Nov 07 16:50:09 ####### systemd[1]: Started Usermin server daemon.

Have you tried restarting saslauthd service and/or changing user password?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.