NEWS
Mosquitto Proxmox Installation
-
Hallo Zusammen,
ich habe versucht Mosquitto in einem lxc Container zu installieren in dem schon iobroker läuft.
Die Installation bekomme ich nicht ohne Fehler fertig gestellt.
Ich habe es schon mehrfach Installiert und Deinstalliert.
Kann mir jemand sagen was das Problem ist?
... oder wo ich schauen muss?x mosquitto.service - Mosquitto MQTT Broker Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Tue 2024-04-16 18:33:34 UTC; 23h ago Docs: man:mosquitto.conf(5) man:mosquitto(8) Process: 1764 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS) Process: 1765 ExecStartPre=/bin/chown mosquitto:mosquitto /var/log/mosquitto (code=exited, status=0/SUCCESS) Process: 1766 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS) Process: 1767 ExecStartPre=/bin/chown mosquitto:mosquitto /run/mosquitto (code=exited, status=0/SUCCESS) Process: 1768 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=13) Main PID: 1768 (code=exited, status=13) CPU: 11ms Apr 16 18:33:34 iobroker systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 5. Apr 16 18:33:34 iobroker systemd[1]: Stopped mosquitto.service - Mosquitto MQTT Broker. Apr 16 18:33:34 iobroker systemd[1]: mosquitto.service: Start request repeated too quickly. Apr 16 18:33:34 iobroker systemd[1]: mosquitto.service: Failed with result 'exit-code'. Apr 16 18:33:34 iobroker systemd[1]: Failed to start mosquitto.service - Mosquitto MQTT Broker.
-
@chefkochts dann schau mal ins log unter /var/log/mosquitto.
Ich würde aber auch empfehlen mosquitto in einem eigenen Container zu installieren. Ansonsten halt überprüfen ob der Port frei ist usw..
Insbesondere Adapter die mqtt Broker emulieren, wie Sonoff, Shelly etc - sollten alle deaktiviert bzw. auf anderen Ports laufen.
-
@mickym sagte in Mosquitto Proxmox Installation:
/var/log/mosquitto
Hilft das hier?
Ich habe es in einem separaten Container installiert.
Komme da aber auch nicht zum Ziel.Apr 21 05:51:21 mosquitto systemd[1]: Starting mosquitto.service - Mosquitto MQTT Broker... Apr 21 05:51:21 mosquitto systemd[1]: Started mosquitto.service - Mosquitto MQTT Broker. Apr 21 05:57:52 mosquitto systemd[1]: Stopping mosquitto.service - Mosquitto MQTT Broker... Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Deactivated successfully. Apr 21 05:57:52 mosquitto systemd[1]: Stopped mosquitto.service - Mosquitto MQTT Broker. Apr 21 05:57:52 mosquitto systemd[1]: Starting mosquitto.service - Mosquitto MQTT Broker... Apr 21 05:57:52 mosquitto mosquitto[4547]: 1713679072: Loading config file /etc/mosquitto/conf.d/custom.conf Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Main process exited, code=exited, status=13/n/a Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Failed with result 'exit-code'. Apr 21 05:57:52 mosquitto systemd[1]: Failed to start mosquitto.service - Mosquitto MQTT Broker. Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 1. Apr 21 05:57:52 mosquitto systemd[1]: Stopped mosquitto.service - Mosquitto MQTT Broker. Apr 21 05:57:52 mosquitto systemd[1]: Starting mosquitto.service - Mosquitto MQTT Broker... Apr 21 05:57:52 mosquitto mosquitto[4552]: 1713679072: Loading config file /etc/mosquitto/conf.d/custom.conf Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Main process exited, code=exited, status=13/n/a Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Failed with result 'exit-code'. Apr 21 05:57:52 mosquitto systemd[1]: Failed to start mosquitto.service - Mosquitto MQTT Broker. Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 2. Apr 21 05:57:52 mosquitto systemd[1]: Stopped mosquitto.service - Mosquitto MQTT Broker. Apr 21 05:57:52 mosquitto systemd[1]: Starting mosquitto.service - Mosquitto MQTT Broker... Apr 21 05:57:52 mosquitto mosquitto[4557]: 1713679072: Loading config file /etc/mosquitto/conf.d/custom.conf Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Main process exited, code=exited, status=13/n/a Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Failed with result 'exit-code'. Apr 21 05:57:52 mosquitto systemd[1]: Failed to start mosquitto.service - Mosquitto MQTT Broker. Apr 21 05:57:52 mosquitto systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 3. Apr 21 05:57:52 mosquitto systemd[1]: Stopped mosquitto.service - Mosquitto MQTT Broker. Apr 21 05:57:53 mosquitto systemd[1]: Starting mosquitto.service - Mosquitto MQTT Broker... Apr 21 05:57:53 mosquitto mosquitto[4562]: 1713679073: Loading config file /etc/mosquitto/conf.d/custom.conf Apr 21 05:57:53 mosquitto systemd[1]: mosquitto.service: Main process exited, code=exited, status=13/n/a Apr 21 05:57:53 mosquitto systemd[1]: mosquitto.service: Failed with result 'exit-code'. Apr 21 05:57:53 mosquitto systemd[1]: Failed to start mosquitto.service - Mosquitto MQTT Broker. Apr 21 05:57:53 mosquitto systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 4. Apr 21 05:57:53 mosquitto systemd[1]: Stopped mosquitto.service - Mosquitto MQTT Broker.
-
@chefkochts du solltest dir das log anschauen, dass ich vorher gepostet habe, was da für ein Fehler drin steht. Ansonsten nimm halt das Skript, dass dir einen fix und fertigen Container erstellt.
was steht denn in custom.conf?
Ansonsten nimm das Helperskript, dass erstellt dir einen fix und fertigen Container und befolge die Anweisungen, wie hier auch gemacht: https://forum.iobroker.net/post/1148122