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

version graph

Package: mosquitto; Maintainer for mosquitto is (unknown); Source for mosquitto is src:mosquitto.

Reported by: Flavio Stanchina <flavio@stanchina.net>

Date: Thu, 28 Oct 2021 21:02:01 UTC

Severity: normal

Tags: debian

Merged with 831

Found in versions 2.0.11-1, 2.0.11-1+deb11u1

Fixed in version 2.0.17-1

Done: Mark Hindley <mark@hindley.org.uk>

Forwarded to https://bugs.debian.org/993048

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#628: mosquitto: unable to open pidfile for writing - missing directory /run/mosquitto
Reply-To: Flavio Stanchina <flavio@stanchina.net>, 628@bugs.devuan.org
Resent-From: Flavio Stanchina <flavio@stanchina.net>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: devuan-dev@lists.dyne.org
X-Loop: owner@bugs.devuan.org
Resent-Date: Thu, 28 Oct 2021 21:02:01 +0000
Resent-Message-ID: <handler.628.B.163545480215269@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 628
X-Devuan-PR-Package: mosquitto
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.163545480215269
          (code B); Thu, 28 Oct 2021 21:02:01 +0000
Received: (at submit) by bugs.devuan.org; 28 Oct 2021 21:00:02 +0000
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>
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

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Wed May 1 20:39:36 2024;