Devuan bug report logs - #831
mosquitto: Startup script fails

Package: mosquitto; Reported by: Koos van den Hout <[email protected]>; Keywords: debian; merged with #628; Done: Mark Hindley <[email protected]>; Maintainer for mosquitto is (unknown).
Merged 628 831 Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.
Added tag(s) debian. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.
Marked as found in versions 2.0.11-1. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.
Marked as fixed in versions 2.0.17-1. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.
Notification sent to Koos van den Hout <[email protected]>:
bug acknowledged by developer. Full text available.
Marked bug as done Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.
Set bug forwarded-to-address to 'https://bugs.debian.org/993048'. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 831) by bugs.devuan.org; 28 Jan 2024 17:43:40 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Sun, 28 Jan 2024 17:43:40 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id tf+0EUKStmVvbAAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Sun, 28 Jan 2024 17:43:30 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 1755259D; Sun, 28 Jan 2024 17:43:29 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; [email protected]; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id BDCB8498
	for <[email protected]>; Sun, 28 Jan 2024 17:43:24 +0000 (UTC)
Received: from hindley.org.uk (apollo.hindleynet [192.168.1.3])
	by mx.hindley.org.uk (Postfix) with SMTP id 933729B;
	Sun, 28 Jan 2024 17:43:22 +0000 (GMT)
Received: (nullmailer pid 28245 invoked by uid 1000);
	Sun, 28 Jan 2024 17:43:22 -0000
Date: Sun, 28 Jan 2024 17:43:22 +0000
From: Mark Hindley <[email protected]>
To: Koos van den Hout <[email protected]>, [email protected]
Subject: Re:  bug#831: mosquitto: Startup script fails
Message-ID: <[email protected]>
References: <170646326412.1882.1828390435371304208.reportbug@testerisk.idefix.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <170646326412.1882.1828390435371304208.reportbug@testerisk.idefix.net>
X-Debbugs-No-Ack: No Thanks

Control: force-merge 628 -1

Hi,

This is fixed in version 2.0.17-1. See #628.

Force merging.

Mark

Information forwarded to [email protected], [email protected]:
bug#831; Package mosquitto. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 28 Jan 2024 17:34:38 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Sun, 28 Jan 2024 17:34:38 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id 2e1zJiyQtmWAawAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Sun, 28 Jan 2024 17:34:36 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 8270159D; Sun, 28 Jan 2024 17:34:36 +0000 (UTC)
Authentication-Results: email.devuan.org;
	dkim=pass (2048-bit key; secure) header.d=idefix.net [email protected] header.a=rsa-sha256 header.s=gosper header.b=vXxNSOne;
	dkim-atps=neutral
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham
	autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a10:3781:1669:1::23; helo=gosper.idefix.net; [email protected]; receiver=<UNKNOWN> 
Received: from gosper.idefix.net (gosper.idefix.net [IPv6:2a10:3781:1669:1::23])
	by email.devuan.org (Postfix) with ESMTPS id BB7C6498
	for <[email protected]>; Sun, 28 Jan 2024 17:34:30 +0000 (UTC)
Received: from testerisk.idefix.net (testerisk.idefix.net [IPv6:2a10:3781:1669:1:5054:ff:fec1:31b3])
	by gosper.idefix.net (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTPS id 40SHYOuD019688
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
	Sun, 28 Jan 2024 18:34:25 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=simple/relaxed; d=idefix.net; s=gosper;
	t=1706463265; bh=gPCTQF59KBc3ES9RqzkUBEwj76rrrZWQ9o1gddmnbTE=;
	h=From:To:Subject:Date:From;
	b=vXxNSOner5hi7ZqmjRLp/JTyg6Mn+bSNWQescYuNytvgnW92fPaYnZw3AHQBHbhh7
	 PKvkJTPb84GaQ1ywba71dOml3XNfe7RSrNsg1kU+3meSsJ3YiUgf8d+A7SpUyMCuGr
	 O4PFA769bEk6NDNc2P0EIayjZpzi+3z2pFA4uwbWUHaZt9DB0cn+tyu2MwotZuN+3w
	 LzHfuigQTzVQxHnLO6WNmSBBKwyhgaawY7QmCfCdxR2SVxAMsFScqBCP1K+uo6Oyxb
	 qarApWqpCb5D9N9zGam/puf6AG9e6N6Lbs4N6yyJYGPCGIhRX3H6AgrdLc6A/NTY+4
	 /dhbK3DeGnwOw==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Koos van den Hout <[email protected]>
To: Devuan Bug Tracking System <[email protected]>
Subject: mosquitto: Startup script fails
Message-ID: <170646326412.1882.1828390435371304208.reportbug@testerisk.idefix.net>
X-Mailer: reportbug 7.10.3+devuan1
Date: Sun, 28 Jan 2024 18:34:24 +0100
X-Virus-Scanned: clamav-milter 0.103.9 at gosper
X-Virus-Status: Clean

Package: mosquitto
Version: 2.0.11-1+deb11u1
Severity: normal
Tags: newcomer

Dear Maintainer,

I installed mosquitto mqtt server under Devuan chimera and it failed to
start. Searching for a solution found that this is known in the mosquitto
package

https://github.com/eclipse/mosquitto/issues/2659

This fix just hasn't been implemented in the Devuan Chimera mosquitto
package. Fixing the startup script by hand does fix the problem.

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera)
Release:	4
Codename:	chimaera
Architecture: x86_64

Kernel: Linux 5.10.0-26-amd64 (SMP w/1 CPU thread)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages mosquitto depends on:
ii  adduser                    3.118+deb11u1
ii  libc6                      2.31-13+deb11u7
ii  libcjson1                  1.7.14-1
ii  libdlt2                    2.18.6-1+deb11u1
ii  libelogind0 [libsystemd0]  246.10-2
ii  libmosquitto1              2.0.11-1+deb11u1
ii  libssl1.1                  1.1.1w-0+deb11u1
ii  libwebsockets16            4.0.20-2
ii  libwrap0                   7.6.q-31
ii  lsb-base                   11.1.0

mosquitto recommends no packages.

Versions of packages mosquitto suggests:
ii  apparmor  2.13.6-10

-- Configuration Files:
/etc/init.d/mosquitto changed:
set -e
PIDDIR=/run/mosquitto
PIDFILE="${PIDDIR}/mosquitto.pid"
DAEMON=/usr/sbin/mosquitto
test -x ${DAEMON} || exit 0
umask 022
. /lib/lsb/init-functions
run_by_init() {
    ([ "$previous" ] && [ "$runlevel" ]) || [ "$runlevel" = S ]
}
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
create_pid_dir() {
    mkdir -p "$PIDDIR"
    chown mosquitto: "$PIDDIR"
}
case "$1" in
  start)
	if init_is_upstart; then
	    exit 1
	fi
	create_pid_dir
	log_daemon_msg "Starting network daemon:" "mosquitto"
	if start-stop-daemon -u mosquitto -c mosquitto --start --quiet --oknodo --background --pidfile ${PIDFILE} --exec ${DAEMON} -- -c /etc/mosquitto/mosquitto.conf ; then
	    log_end_msg 0
	else
	    log_end_msg 1
	fi
	;;
  stop)
	if init_is_upstart; then
	    exit 0
	fi
	log_daemon_msg "Stopping network daemon:" "mosquitto"
	if start-stop-daemon --stop --quiet --oknodo --pidfile ${PIDFILE}; then
	    log_end_msg 0
	    rm -f ${PIDFILE}
	else
	    log_end_msg 1
	fi
	;;
  reload|force-reload)
	if init_is_upstart; then
	    exit 1
	fi
	log_daemon_msg "Reloading network daemon configuration:" "mosquitto"
        if start-stop-daemon -u mosquitto --stop --signal HUP --quiet --oknodo --pidfile $PIDFILE; then
            log_end_msg 0
        else
            log_end_msg 1
        fi	
	;;
  restart)
	if init_is_upstart; then
	    exit 1
	fi
	log_daemon_msg "Restarting network daemon:" "mosquitto"
	if start-stop-daemon -u mosquitto --stop --quiet --oknodo --retry 30 --pidfile ${PIDFILE}; then
	    rm -f ${PIDFILE}
	fi
	create_pid_dir
	if start-stop-daemon -c mosquitto -u mosquitto --start --quiet --oknodo --background --pidfile ${PIDFILE} --exec ${DAEMON} -- -c /etc/mosquitto/mosquitto.conf ; then
	    log_end_msg 0
	else
	    log_end_msg 1
	fi
	;;
  try-restart)
	if init_is_upstart; then
	    exit 1
	fi
	log_daemon_msg "Restarting Mosquitto message broker" "mosquitto"
	set +e
	start-stop-daemon -u mosquitto --stop --quiet --retry 30 --pidfile ${PIDFILE}
	RET="$?"
	set -e
	case $RET in
	    0)
		# old daemon stopped
		rm -f ${PIDFILE}
		if start-stop-daemon -c mosquitto -u mosquitto --start --quiet --oknodo --background --pidfile ${PIDFILE} --exec ${DAEMON} -- -c /etc/mosquitto/mosquitto.conf ; then
		    log_end_msg 0
		else
		    log_end_msg 1
		fi
		;;
	    1)
		# daemon not running
		log_progress_msg "(not running)"
		log_end_msg 0
		;;
	    *)
		# failed to stop
		log_progress_msg "(failed to stop)"
		log_end_msg 1
		;;
	esac
	;;
  status)
	if init_is_upstart; then
	    exit 1
	fi
	status_of_proc -p ${PIDFILE} ${DAEMON} mosquitto && exit 0 || exit $?
	;;
  *)
	log_action_msg "Usage: /etc/init.d/mosquitto {start|stop|reload|force-reload|restart|try-restart|status}"
	exit 1
esac
exit 0


-- no debconf information

Acknowledgement sent to Koos van den Hout <[email protected]>:
New bug report received and forwarded. Copy sent to [email protected]. Full text available.
Report forwarded to [email protected], [email protected]:
bug#831; Package mosquitto. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <[email protected]>.
Last modified: Thu, 28 Nov 2024 06:39:01 UTC