[GH-ISSUE #1660] Mosquitto post-install info - service not starting #361

Closed
opened 2026-02-26 12:45:14 +03:00 by kerem · 1 comment
Owner

Originally created by @TungriDev on GitHub (Jan 22, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/1660

Discussed in https://github.com/community-scripts/ProxmoxVE/discussions/782

Originally posted by havardthom December 11, 2024
Original thread: https://github.com/tteck/Proxmox/discussions/2921

I used the Helper script, and also run the after installation like described, and i did in the past with my docker setup as well, which is runing well.

Currently i'm receiving the following output by check the status of the service:

× mosquitto.service - Mosquitto MQTT Broker
     Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Wed 2025-01-22 01:19:32 CET; 10s ago
       Docs: man:mosquitto.conf(5)
             man:mosquitto(8)
    Process: 298 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS)
    Process: 299 ExecStartPre=/bin/chown mosquitto:mosquitto /var/log/mosquitto (code=exited, status=0/SU>
    Process: 301 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS)
    Process: 302 ExecStartPre=/bin/chown mosquitto:mosquitto /run/mosquitto (code=exited, status=0/SUCCES>
    Process: 303 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=3)
   Main PID: 303 (code=exited, status=3)
        CPU: 10ms

Jan 22 01:19:32 mqtt systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 5.
Jan 22 01:19:32 mqtt systemd[1]: Stopped mosquitto.service - Mosquitto MQTT Broker.
Jan 22 01:19:32 mqtt systemd[1]: mosquitto.service: Start request repeated too quickly.
Jan 22 01:19:32 mqtt systemd[1]: mosquitto.service: Failed with result 'exit-code'.
Jan 22 01:19:32 mqtt systemd[1]: Failed to start mosquitto.service - Mosquitto MQTT Broker.

Here is my mosquitto.conf file:

#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.gz

pid_file /run/mosquitto/mosquitto.pid

persistence true
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

include_dir /etc/mosquitto/conf.d

password_file /etc/mosquitto/mosquitto.passwd
allow_anonymous false

listener 1883

Is there anybody who can help, what blocks the service from starting?

Originally created by @TungriDev on GitHub (Jan 22, 2025). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/1660 ### Discussed in https://github.com/community-scripts/ProxmoxVE/discussions/782 <div type='discussions-op-text'> <sup>Originally posted by **havardthom** December 11, 2024</sup> Original thread: https://github.com/tteck/Proxmox/discussions/2921 </div> I used the Helper script, and also run the after installation like described, and i did in the past with my docker setup as well, which is runing well. Currently i'm receiving the following output by check the status of the service: ```root@mqtt:~# systemctl status mosquitto.service × mosquitto.service - Mosquitto MQTT Broker Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Wed 2025-01-22 01:19:32 CET; 10s ago Docs: man:mosquitto.conf(5) man:mosquitto(8) Process: 298 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS) Process: 299 ExecStartPre=/bin/chown mosquitto:mosquitto /var/log/mosquitto (code=exited, status=0/SU> Process: 301 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS) Process: 302 ExecStartPre=/bin/chown mosquitto:mosquitto /run/mosquitto (code=exited, status=0/SUCCES> Process: 303 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=3) Main PID: 303 (code=exited, status=3) CPU: 10ms Jan 22 01:19:32 mqtt systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 5. Jan 22 01:19:32 mqtt systemd[1]: Stopped mosquitto.service - Mosquitto MQTT Broker. Jan 22 01:19:32 mqtt systemd[1]: mosquitto.service: Start request repeated too quickly. Jan 22 01:19:32 mqtt systemd[1]: mosquitto.service: Failed with result 'exit-code'. Jan 22 01:19:32 mqtt systemd[1]: Failed to start mosquitto.service - Mosquitto MQTT Broker. ``` Here is my mosquitto.conf file: ```# Place your local configuration in /etc/mosquitto/conf.d/ # # A full description of the configuration file is at # /usr/share/doc/mosquitto/examples/mosquitto.conf.gz pid_file /run/mosquitto/mosquitto.pid persistence true persistence_location /var/lib/mosquitto/ log_dest file /var/log/mosquitto/mosquitto.log include_dir /etc/mosquitto/conf.d password_file /etc/mosquitto/mosquitto.passwd allow_anonymous false listener 1883 ``` Is there anybody who can help, what blocks the service from starting?
kerem closed this issue 2026-02-26 12:45:14 +03:00
Author
Owner

@TungriDev commented on GitHub (Jan 22, 2025):

solved by myself, Found that in conf.d there is a default.conf which i wasn't aware off. Because of that i had duplicate entries and that blocked the loading of the service.

<!-- gh-comment-id:2606030224 --> @TungriDev commented on GitHub (Jan 22, 2025): solved by myself, Found that in conf.d there is a default.conf which i wasn't aware off. Because of that i had duplicate entries and that blocked the loading of the service.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#361
No description provided.