Giter Site home page Giter Site logo

Comments (12)

aqueos avatar aqueos commented on August 27, 2024

Screenshot from 2023-01-30 16-07-18
hard to read in the ticket here is the trace in txt file !
usermintrace.txt

from usermin.

iliajie avatar iliajie commented on August 27, 2024

Webmin and Usermin usually never crash really. Although, it can be killed by kernel (OOM). Try checking this out, e.g.:

dmesg -T | grep -i 'kill'

from usermin.

aqueos avatar aqueos commented on August 27, 2024

oh yes good idea i had not look there but i just reviewed all the kernel and syslog of the server and there is not any ooem or other messages.

the usermin log show only this when i click on it:
==> /var/usermin/miniserv.error <==
[30/Jan/2023:17:45:34 +0100] Shutting down

best regards,
Ghislain.

from usermin.

swelljoe avatar swelljoe commented on August 27, 2024

That indicates it was told to shut down. Quite different from a "crash".

from usermin.

aqueos avatar aqueos commented on August 27, 2024

yes the strace show the same but the very same thing work on the previous version and here each click makes it shutdown for no reason.

i dont know what i can do more to debug this :(

from usermin.

iliajie avatar iliajie commented on August 27, 2024

What is the output of systemctl restart usermin and then systemctl status usermin?

Also, check what is getting printed to /var/usermin/miniserv.error after running those commands.

from usermin.

aqueos avatar aqueos commented on August 27, 2024

its a sysv system here it is:


VSGUEST:root@:[~]: /etc/init.d/usermin restart
Stopping Usermin server in /usr/share/usermin
/etc/usermin/.stop-init: 10: kill: No such process

Starting Usermin server in /usr/share/usermin

VSGUEST:root@:[~]: /etc/init.d/usermin restart
Stopping Usermin server in /usr/share/usermin
Starting Usermin server in /usr/share/usermin
VSGUEST:root@:[~]: 

resulting logs:

[30/Jan/2023:18:33:10 +0100] miniserv.pl started
[30/Jan/2023:18:33:10 +0100] Using MD5 module Digest::MD5
[30/Jan/2023:18:33:10 +0100] Using SHA512 module Crypt::SHA
[30/Jan/2023:18:33:10 +0100] PAM authentication enabled
[30/Jan/2023:18:33:13 +0100] Shutting down
[30/Jan/2023:18:33:16 +0100] miniserv.pl started
[30/Jan/2023:18:33:16 +0100] Using MD5 module Digest::MD5
[30/Jan/2023:18:33:16 +0100] Using SHA512 module Crypt::SHA
[30/Jan/2023:18:33:16 +0100] PAM authentication enabled
VSGUEST:root@:[~]: facter os
{
  architecture => "amd64",
  distro => {
    codename => "buster",
    description => "Debian GNU/Linux 10 (buster)",
    id => "Debian",
    release => {
      full => "10.13",
      major => "10",
      minor => "13"
    }
  },
  family => "Debian",
  hardware => "x86_64",
  name => "Debian",
  release => {
    full => "10.13",
    major => "10",
    minor => "13"
  },
  selinux => {
    enabled => false
  }
}

VSGUEST:root@:[~]: dpkg -l usermin-webmail
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name            Version      Architecture Description
+++-===============-============-============-================================================================
ii  usermin-webmail 1.861        all          web-based user account administration interface for Unix systems

from usermin.

iliajie avatar iliajie commented on August 27, 2024

I thought that Debian 10 is always a systemd system .. why not sticking with systemd anyway?

It is not clear what is happening with Usermin but you will have to debug it. Start from looking into available resources (memory and disk space/quota).

By the way, what about Webmin? Does it get killed too?

from usermin.

aqueos avatar aqueos commented on August 27, 2024

no webmin/virtualmin are fine.

connecting directly from usermin with the user login/pass works. This is when i come from virtualmin that usermin is shutdown.

from usermin.

Stephano2000 avatar Stephano2000 commented on August 27, 2024

I can reproduce that issue (Jan 7 Virtualmin install / Usermin 1.861). Actually I had been experiencing its side effects without realizing the cause.
Steps to reproduce:

  • Edit Users -> Click on a user
  • Click "Login to Usermin"
  • A new webpage will open, but with an "Unable to connect" error
  • Refreshing that page once or twice brings up Usermin

Usermin log:
[03/Apr/2023:12:28:52 +0000] PAM authentication enabled
[03/Apr/2023:12:28:52 +0000] Using SHA512 module Crypt::SHA
[03/Apr/2023:12:28:52 +0000] Using MD5 module Digest::MD5
[03/Apr/2023:12:28:52 +0000] miniserv.pl started
[03/Apr/2023:12:28:48 +0000] Shutting down

Syslog:
Apr 3 12:28:52 mars systemd[1]: Started Usermin server daemon.
Apr 3 12:28:52 mars systemd[1]: usermin.service: Can't open PID file /var/usermin/miniserv.pid (yet?) after start: Operation not permitted
Apr 3 12:28:50 mars systemd[1]: Starting Usermin server daemon...
Apr 3 12:28:50 mars systemd[1]: usermin.service: Consumed 2.312s CPU time.
Apr 3 12:28:50 mars systemd[1]: Stopped Usermin server daemon.
Apr 3 12:28:50 mars systemd[1]: usermin.service: Scheduled restart job, restart counter is at 4.
Apr 3 12:28:48 mars systemd[1]: usermin.service: Consumed 2.312s CPU time.
Apr 3 12:28:48 mars systemd[1]: usermin.service: Failed with result 'signal'.
Apr 3 12:28:48 mars systemd[1]: usermin.service: Main process exited, code=killed, status=10/USR1

from usermin.

iliajie avatar iliajie commented on August 27, 2024

Confirmed.

The reason why this happens is because when setting a new session for the user, Usermin is getting killed and automatically restarted only in 3 seconds (by systemd). I will look into this problem deeper.

Thanks for reporting this.

from usermin.

iliajie avatar iliajie commented on August 27, 2024

This issue will be fixed in the next Webmin release.

webmin/webmin@eaaa470

from usermin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.