Menu

#5568 Restart failed on upgrade from 1.994 to 1.995

1.995
open
nobody
None
5
2022-07-09
2022-07-01
No

On two Ubuntu Servers one 18.04.6 and the other 20.04.4
Manually responded to update alert inside Webmin, clicked to update to 1.995 - got:

Installing package(s) with command apt-get -y install webmin ..
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
ttf-dejavu-core
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
webmin
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.4 MB of archives.
After this operation, 152 kB of additional disk space will be used.
Get:1 https://download.webmin.com/download/repository sarge/contrib amd64 webmin all 1.995 [28.4 MB]
Fetched 28.4 MB in 2s (18.7 MB/s)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
... {snip} ...
(Reading database ... 100%
(Reading database ... 81214 files and directories currently installed.)
Preparing to unpack .../archives/webmin_1.995_all.deb ...
Unpacking webmin (1.995) over (1.994) ...
Setting up webmin (1.995) ...
.. install failed!

Successfully installed 1 packages.


Then lost connectivity. From command line, with the restart failed, as root:

root@lxc:~# service webmin status
● webmin.service - Webmin server daemon
Loaded: loaded (/lib/systemd/system/webmin.service; enabled; vendor preset: e
Active: failed (Result: exit-code) since Fri 2022-07-01 10:40:20 EDT; 7min ag
Process: 8772 ExecStop=/usr/bin/kill $MAINPID (code=exited, status=203/EXEC)
Main PID: 229

Jul 01 10:39:19 lxc systemd[8772]: webmin.service: Failed at step EXEC spawning
Jul 01 10:39:19 lxc systemd[1]: webmin.service: Control process exited, code=exi
Jul 01 10:39:34 lxc systemd[1]: webmin.service: State 'stop-sigterm' timed out.
Jul 01 10:39:34 lxc systemd[1]: webmin.service: Killing process 229 (n/a) with s
Jul 01 10:39:49 lxc systemd[1]: webmin.service: Processes still around after SIG
Jul 01 10:40:05 lxc systemd[1]: webmin.service: State 'stop-final-sigterm' timed
Jul 01 10:40:05 lxc systemd[1]: webmin.service: Killing process 229 (n/a) with s
Jul 01 10:40:20 lxc systemd[1]: webmin.service: Processes still around after fin
Jul 01 10:40:20 lxc systemd[1]: webmin.service: Failed with result 'exit-code'.
Jul 01 10:40:20 lxc systemd[1]: Stopped Webmin server daemon.


Restarted fine with :

service webmin start

Discussion

  • Ilia

    Ilia - 2022-07-01

    Thanks. We are aware of that and working on a fix. Also, it was already reported.

    Anyone installing Webmin 1.995 please run updates via console.

     
  • Earl Daniels

    Earl Daniels - 2022-07-01

    Another server of mine, also an LXC container running Ubuntu 18.04.6, apparently ran the auto upgrade cron with no problems.

    Thank you for the prompt reply and the great control panel!

     
  • Ilia

    Ilia - 2022-07-01

    Thank you for your kind words. I promise we're gonna nail this bug and eventually support properly both old and new systems (using systemd).

     
  • Richard Farthing

    There appears to be a new and more complicated unit file which fails to start for me on 2 RPM systems - Opensuse and Centos. I see now it's also now in Debian, not rebooted to try that yet.

    NEW - fails to start

    [Unit]
    Description=Webmin server daemon
    
    [Service]
    Environment="PERLLIB=/usr/libexec/webmin-1.996"
    ExecStart=/usr/libexec/webmin-1.996/miniserv.pl /etc/webmin/miniserv.conf
    ExecStop=/bin/kill $MAINPID
    ExecReload=/bin/kill -USR1 $MAINPID
    PIDFile=/var/webmin/miniserv.pid
    Type=forking
    Restart=always
    RestartSec=2s
    TimeoutSec=15s
    
    [Install]
    WantedBy=multi-user.target
    

    OLD - simpler and still works. I swapped out the new for old as I need webmin working.

    Description=Webmin server daemon
    After=syslog.target
    
    [Service]
    ExecStart=/etc/webmin/.start-init
    ExecStop=/etc/webmin/.stop-init
    PIDFile=/var/webmin/miniserv.pid
    Type=forking
    KillMode=none
    
    [Install]
    WantedBy=multi-user.target
    

    Are there significant advantages of the new more complicated version ?

     
  • Jamie Cameron

    Jamie Cameron - 2022-07-09

    Richard Farthing - what error did you get when trying to start Webmin with the new unit?

     

Log in to post a comment.

Monday.com Logo