• Bug#1055451: prosody: Bug still present in prosody 0.12.4-1~bpo12+1

    From Matija Nalis@21:1/5 to All on Thu Mar 28 21:30:02 2024
    This is a multi-part MIME message sent by reportbug.


    Package: prosody
    Version: 0.12.4-1~bpo12+1
    Followup-For: Bug #1055451
    X-Debbugs-Cc: mnalis-debianbug@voyager.hr
    Control: tags -1 patch

    Dear Maintainer,

    I can confirm the issue is still present in prosody 0.12.4-1~bpo12+1 from bookworm-backports, and affects all non-systemd installations. E.g.:

    # /etc/init.d/prosody stop ; ps auxfw | grep prosod | grep -v grep
    Stopping Prosody XMPP Server: prosody.
    prosody 3005 0.0 0.1 54900 8344 ? S 20:42 0:00 lua5.4 /usr/bin/prosody -D

    Attached is a simple patch that fixes it.

    In the future, /etc/init.d/prosody should be kept in sync with debian/control "Depends:" field (i.e. if prosody depends on "lua5.4", then init.d script should
    reference "lua5.4" too).


    -- System Information:
    Debian Release: 12.5
    APT prefers stable-security
    APT policy: (500, 'stable-security'), (500, 'stable')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.1.0-18-amd64 (SMP w/4 CPU threads; PREEMPT)
    Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: sysvinit (via /sbin/init)
    LSM: AppArmor: enabled

    Versions of packages prosody depends on:
    ii adduser 3.134
    ii init-system-helpers 1.65.2
    ii libc6 2.36-9+deb12u4
    ii libicu72 72.1-3
    ii libssl3 3.0.11-1~deb12u2
    ii lua-bitop [lua5.4-bitop] 1.0.2-7
    ii lua-expat [lua5.4-expat] 1.5.1-3
    ii lua-filesystem [lua5.4-filesystem] 1.8.0-3
    ii lua-sec [lua5.4-sec] 1.2.0-2
    ii lua-socket [lua5.4-socket] 3.1.0-1+b1
    ii lua5.4 5.4.4-3
    ii ssl-cert 1.1.2

    Versions of packages prosody recommends:
    ii lua-event [lua5.4-event] 0.4.6-2+b1
    ii lua-unbound [lua5.4-unbound] 1.0.0-2
    pn lua5.4-readline <none>

    Versions of packages prosody suggests:
    pn lua-dbi-mysql <none>
    pn lua-dbi-postgresql <none>
    pn lua-dbi-sqlite3 <none>
    ii lua-zlib 1.2-3

    -- Configuration Files:
    /etc/prosody/conf.avail/example.com.cfg.lua [Errno 13] Permission denied: '/etc/prosody/conf.avail/example.com.cfg.lua'
    /etc/prosody/conf.avail/localhost.cfg.lua [Errno 13] Permission denied: '/etc/prosody/conf.avail/localhost.cfg.lua'
    /etc/prosody/prosody.cfg.lua [Errno 13] Permission denied: '/etc/prosody/prosody.cfg.lua'

    -- no debconf information

    --- /etc/init.d/prosody.org-bookworm 2020-10-02 11:45:27.000000000 +0200
    +++ /etc/init.d/prosody 2024-03-28 20:38:07.172873463 +0100
    @@ -43,7 +43,7 @@
    chown prosody:adm "$(dirname $PIDFILE)"
    [ -x /sbin/restorecon ] && /sbin/restorecon `dirname $PIDFILE`
    if start-stop-daemon --start --quiet --pidfile "$PIDFILE" \
    - --chuid "$USER" --oknodo --user "$USER" --name lua5.2 \
    + --chuid "$USER" --oknodo --user "$USER" --name lua5.4 \
    $(start_opts) --startas "$DAEMON" -- -D;
    then
    return 0
    @@ -54,7 +54,7 @@

    stop_prosody () {
    if start-stop-daemon --stop --quiet --retry 30 \
    - --oknodo --pidfile "$PIDFILE" --user "$USER" --name lua5.2;
    + --oknodo --pidfile "$PIDFILE" --user "$USER" --name lua5.4;
    then
    return 0
    else
    @@ -64,7 +64,7 @@

    signal_prosody () {
    if start-stop-daemon --stop --quiet --pidfile "$PIDFILE" \
    - --user "$USER" --name lua5.2 --oknodo --signal "$1";
    + --user "$USER" --name lua5.4 --oknodo --signal "$1";
    then
    return 0
    else
    @@ -111,7 +111