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

Package: mosquitto; Reported by: Flavio Stanchina <flavio@stanchina.net>; Keywords: debian; Forwarded to https://bugs.debian.org/993048; Maintainer for mosquitto is (unknown).
Set bug forwarded-to-address to 'https://bugs.debian.org/993048'. Request was from Mark Hindley <mark@hindley.org.uk> to 628-submit@bugs.devuan.org. Full text available.
Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to 628-submit@bugs.devuan.org. Full text available.

Message received at 628@bugs.devuan.org:


Received: (at 628) by bugs.devuan.org; 29 Oct 2021 07:00:01 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: devuanbugs@dyne.org
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 <628@bugs.devuan.org>; 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 <mark@hindley.org.uk>)
	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 <mark@hindley.org.uk>
To: Flavio Stanchina <flavio@stanchina.net>, 628@bugs.devuan.org
Subject: Re: bug#628: mosquitto: unable to open pidfile for writing - missing
 directory /run/mosquitto
Message-ID: <YXubjB00jxy3xJRc@hindley.org.uk>
References: <163545464732.4870.11141039894999317101.reportbug@forza.casa>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <163545464732.4870.11141039894999317101.reportbug@forza.casa>
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 devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#628; Package mosquitto. Full text available.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 28 Oct 2021 21:00:02 +0000
Return-Path: <flavio@stanchina.net>
Delivered-To: devuanbugs@dyne.org
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 <submit@bugs.devuan.org>; 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 <flavio@stanchina.net>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: mosquitto: unable to open pidfile for writing - missing directory /run/mosquitto
Message-ID: <163545464732.4870.11141039894999317101.reportbug@forza.casa>
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 <flavio@stanchina.net>:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
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 <owner@bugs.devuan.org>.
Last modified: Sun, 22 May 2022 20:39:01 UTC