Devuan bug report logs - #628
mosquitto: unable to open pidfile for writing - missing directory /run/mosquitto

Package: mosquitto; Reported by: Flavio Stanchina <[email protected]>; Keywords: debian; merged with #831; 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.
Marked as found in versions 2.0.11-1+deb11u1. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 628-done) by bugs.devuan.org; 13 Sep 2023 13:42:04 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2a01:4f8:140:32a1::58c6:6473]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Wed, 13 Sep 2023 13:42:04 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id XQX5Ciy8AWVjDgAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Wed, 13 Sep 2023 13:42:04 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 1728598; Wed, 13 Sep 2023 13:42:04 +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
	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 BEA4029
	for <[email protected]>; Wed, 13 Sep 2023 13:42:03 +0000 (UTC)
Received: from hindley.org.uk (apollo.hindleynet [192.168.1.3])
	by mx.hindley.org.uk (Postfix) with SMTP id 32D7F9C1
	for <[email protected]>; Wed, 13 Sep 2023 14:42:03 +0100 (BST)
Received: (nullmailer pid 8394 invoked by uid 1000);
	Wed, 13 Sep 2023 13:42:02 -0000
Date: Wed, 13 Sep 2023 14:42:02 +0100
From: Mark Hindley <[email protected]>
To: [email protected]
Subject: Fixed in Debian #993048
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debbugs-No-Ack: No Thanks

Version: 2.0.17-1

Notification sent to Flavio Stanchina <[email protected]>:
bug acknowledged by developer. Full text available.
Reply sent to Mark Hindley <[email protected]>:
You have taken responsibility. 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.
Added tag(s) debian. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 628) by bugs.devuan.org; 29 Oct 2021 07:00:01 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Fri, 29 Oct 2021 07:00:01 +0000 (UTC)
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id BE41EF608CD
	for <[email protected]>; Fri, 29 Oct 2021 08:58:24 +0200 (CEST)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1mgLqG-0006qG-Ul; Fri, 29 Oct 2021 07:58:22 +0100
Received: (nullmailer pid 6818 invoked by uid 1000);
	Fri, 29 Oct 2021 06:58:20 -0000
Date: Fri, 29 Oct 2021 07:58:20 +0100
From: Mark Hindley <[email protected]>
To: Flavio Stanchina <[email protected]>, [email protected]
Subject: Re: bug#628: mosquitto: unable to open pidfile for writing - missing
 directory /run/mosquitto
Message-ID: <[email protected]>
References: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
X-Debbugs-No-Ack: No Thanks
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Control: tags -1 debian
Control: forwarded -1 https://bugs.debian.org/993048

Flavio,

On Thu, Oct 28, 2021 at 10:57:27PM +0200, Flavio Stanchina wrote:
> Package: mosquitto
> Version: 2.0.11-1
> Severity: normal
> 
> The init script fails with:

Thanks for this. However, mosquitto is not a forked package and Devuan uses
Debian's packages directly without recompilation. Indeed, this issue is already
reported in Debian's BTS[1]. Please add your voice there to get it fixed.

Mark

[1]  https://bugs.debian.org/993048


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

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 28 Oct 2021 21:00:02 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Thu, 28 Oct 2021 21:00:02 +0000 (UTC)
Received: from stanchina.net (stanchina.net [157.90.146.44])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 63F18F60B1D
	for <[email protected]>; Thu, 28 Oct 2021 22:58:15 +0200 (CEST)
Received: from forza.casa ([::ffff:79.30.106.206])
  (AUTH: LOGIN flavio)
  by stanchina.net with ESMTPA; Thu, 28 Oct 2021 22:58:14 +0200
  id 00000000000265A6.00000000617B0EE6.00003D61
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Flavio Stanchina <[email protected]>
To: Devuan Bug Tracking System <[email protected]>
Subject: mosquitto: unable to open pidfile for writing - missing directory /run/mosquitto
Message-ID: <[email protected]>
Date: Thu, 28 Oct 2021 22:57:27 +0200
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Package: mosquitto
Version: 2.0.11-1
Severity: normal

The init script fails with:

Starting network daemon:: mosquitto
start-stop-daemon: unable to open pidfile '/run/mosquitto/mosquitto.pid' for writing (No such file or directory)
start-stop-daemon: child returned error exit status 2

Apparently, nobody creates directory /run/mosquitto.

Adding the following lines in /etc/init.d/mosquitto solves the problem:
mkdir -m 740 -p /run/mosquitto
chown mosquitto /run/mosquitto

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

Kernel: Linux 5.10.0-9-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
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
ii  libc6                      2.31-13+deb11u2
ii  libcjson1                  1.7.14-1
ii  libdlt2                    2.18.6-1
ii  libelogind0 [libsystemd0]  246.10-2
ii  libmosquitto1              2.0.11-1
ii  libssl1.1                  1.1.1k-1+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

-- no debconf information

Acknowledgement sent to Flavio Stanchina <[email protected]>:
New bug report received and forwarded. Copy sent to [email protected]. Full text available.
Report forwarded to [email protected], [email protected]:
bug#628; 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: Sun, 1 Dec 2024 00:39:02 UTC