owntracks / recorder

Store and access data published by OwnTracks apps
Other
907 stars 123 forks source link

MQTT Quickstart stuck at Mosquitto Service #508

Closed amrul-jamrul closed 5 days ago

amrul-jamrul commented 5 days ago

Tried my hand at the MQTT quick guide ended up always getting stuck at mosquitto service failing to load. hostnamectl:

I commented out email and set dns_domain: "127.0.0.1" in the configuration.yaml. Perhaps this is the underlying issue but I'm not sure.

Operating System: Raspbian GNU/Linux 12 (bookworm)
 Kernel: Linux 6.6.51+rpt-rpi-v8
 Architecture: arm64

journal logs

░░ Subject: A stop job for unit mosquitto.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit mosquitto.service has finished.
░░ 
░░ The job identifier is 30015 and the job result is done.
Nov 21 22:28:39 raspberrypi systemd[1]: mosquitto.service: Start request repeated too quickly.
Nov 21 22:28:39 raspberrypi systemd[1]: mosquitto.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit mosquitto.service has entered the 'failed' state with result 'exit-code'.
Nov 21 22:28:39 raspberrypi systemd[1]: Failed to start mosquitto.service - Mosquitto MQTT Broker.
░░ Subject: A start job for unit mosquitto.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit mosquitto.service has finished with a failure.
░░ 
░░ The job identifier is 30015 and the job result is failed.

systemctl status

× mosquitto.service - Mosquitto MQTT Broker
     Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; preset: enabled)
     Active: failed (Result: exit-code
       Docs: man:mosquitto.conf(5)
             man:mosquitto(8)
    Process: 11036 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS)
    Process: 11037 ExecStartPre=/bin/chown mosquitto /var/log/mosquitto (code=exited, status=0/SUCCESS)
    Process: 11038 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS)
    Process: 11039 ExecStartPre=/bin/chown mosquitto /run/mosquitto (code=exited, status=0/SUCCESS)
    Process: 11040 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=13)
   Main PID: 11040 (code=exited, status=13)
        CPU: 12ms

Nov 21 22:28:39 raspberrypi systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 5.
Nov 21 22:28:39 raspberrypi systemd[1]: Stopped mosquitto.service - Mosquitto MQTT Broker.
Nov 21 22:28:39 raspberrypi systemd[1]: mosquitto.service: Start request repeated too quickly.
Nov 21 22:28:39 raspberrypi systemd[1]: mosquitto.service: Failed with result 'exit-code'.
Nov 21 22:28:39 raspberrypi systemd[1]: Failed to start mosquitto.service - Mosquitto MQTT Broker.

Perhaps the ansible playbook is querying it too often? I'm not quite sure how to diagnose from here. I have run this on an x86 debian machine and the results have been the same as well.

amrul-jamrul commented 5 days ago

I made a duplicate post there is already one at https://github.com/owntracks/quicksetup/issues/67