[Debian-iot-maintainers] Bug#1071721: [mosquitto] mosquittostart-stop-daemon: unable to open pidfile '/run/mosquitto/mosquitto.pid' for writing (No such file or directory)
Gianfranco Costamagna
locutusofborg at debian.org
Thu Oct 10 09:10:39 BST 2024
control: fixed -1 2.0.17-1
this was reworked, and fixed in sid in commit 403562388f8e0a6b9ee937d6832b039c584153be
On Fri, 24 May 2024 12:23:36 +0200 Jean-Marc LACROIX <jeanmarc.lacroix at free.fr> wrote:
> Package: mosquitto
> Version: 2.0.11-1.2+deb12u1
> Severity: grave
>
> Is seems that on package mosquitto (Debian 12.5 Bookworm), is is not
> possible to install the package & start the daemon.
>
> Please note following example are done on amd64 architecture, but
> behaviour is the same on others architectures.
>
> This bug is probably due to the directory created with the pid file.
>
> ansible at hn-asusgl752-400:~$ LC_ALL=C dpkg -l |grep mosquitto
> ii libmosquitto1:amd64 2.0.11-1.2+deb12u1
> amd64 MQTT version 5.0/3.1.1/3.1 client library
> ii mosquitto-clients 2.0.11-1.2+deb12u1
> amd64 Mosquitto command line MQTT clients
> ansible at hn-asusgl752-400:~$
>
> ansible at hn-asusgl752-400:~$ cat /etc/debian_version
> 12.5
>
>
> ansible at hn-asusgl752-400:~$ LC_ALL=C apt policy mosquitto
> mosquitto:
> Installed: (none)
> Candidate: 2.0.11-1.2+deb12u1
> Version table:
> 2.0.18-1+b2 80
> 80 http://ftp.de.debian.org/debian trixie/main amd64 Packages
> 2.0.11-1.2+deb12u1 500
> 500 http://ftp.de.debian.org/debian bookworm/main amd64 Packages
> 500 https://security.debian.org bookworm-security/main amd64
> Packages
> 2.0.11-1+deb11u1 90
> 90 http://ftp.de.debian.org/debian bullseye/main amd64 Packages
> ansible at hn-asusgl752-400:~$
>
>
> ansible at hn-asusgl752-400:~$ LC_ALL=C sudo apt install mosquitto -y
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following NEW packages will be installed:
> mosquitto
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/409 kB of archives.
> After this operation, 1063 kB of additional disk space will be used.
> Selecting previously unselected package mosquitto.
> (Reading database ... 289805 files and directories currently installed.)
> Preparing to unpack .../mosquitto_2.0.11-1.2+deb12u1_amd64.deb ...
> Unpacking mosquitto (2.0.11-1.2+deb12u1) ...
> Setting up mosquitto (2.0.11-1.2+deb12u1) ...
> Starting network daemon:: mosquittostart-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
> failed!
> invoke-rc.d: initscript mosquitto, action "start" failed.
> dpkg: error processing package mosquitto (--configure):
More information about the Debian-iot-maintainers
mailing list