nachdem ich mit einer externen Batterie als UPS für den Loxberry "experimentiert" habe, hat sich herausgestellt, dass zwar das umschalten zwischen Stromversorgung und Batteriebetrieb kein Problem ist, jedoch sich die Batterie auf lange Zeit wohl entladen hat bzw. gar nicht geladen hat.
Jedenfalls geht seitdem nicht mehr der Mosquitto Prozess.
Führe ich manuell im Terminal /opt/loxberry/sbin/mqttgateway.pl aus, kommt nachfolgender Log.
Hat jemand eine Idee was das Problem sein könnte? Irgendwie waren auch die Gateway-Einstellungen, also z.B. das Passwort weg, das habe ich aber alles wieder eingetragen.
19:44:48.414 <OK> Subscription Expression Filter 'status_alarm_schedule' is valid
19:44:48.415 <OK> Subscription Expression Filter 'hourly_tm' is valid
19:44:48.415 <OK> Subscription Expression Filter 'status_multimedia_privacy' is valid
19:44:48.415 <OK> Subscription Expression Filter '_RESULT_' is valid
19:44:48.416 <INFO> Subscription Expression Filters are applied to current data
19:44:48.416 <OK> Processing conversions
19:44:48.417 <INFO> Adding user defined conversions
19:44:48.417 <INFO> Adding plugin conversions
19:44:48.417 <INFO> Processing Reset After Send
19:44:48.418 <INFO> Adding user defined Reset After Send
19:44:48.418 <INFO> Adding plugins Reset After Send
19:44:48.418 <INFO> Processing Do Not Forward
19:44:48.419 <INFO> Adding user defined Do Not Forward
19:44:48.419 Creating udp-in socket
19:44:48.420 <ERROR> Could not create UDP IN socket: IO::Socket::INET: Address already in use
19:44:48.421 Creating udp-in socket
19:44:48.421 <ERROR> Could not create UDP IN socket: IO::Socket::INET: Address already in use
19:44:53.005 <WARNING> No connection to MQTT Server localhost - Check host/port/user/pass and your connection.
19:44:53.017 Creating udp-in socket
19:44:53.019 <ERROR> Could not create UDP IN socket: IO::Socket::INET: Address already in use
/opt/loxberry/sbin/mqttgateway.pl: connect: Connection refused
/opt/loxberry/sbin/mqttgateway.pl: connect: Connection refused
19:44:59.005 <WARNING> No connection to MQTT Server localhost - Check host/port/user/pass and your connection.
19:44:59.016 Creating udp-in socket
19:44:59.017 <ERROR> Could not create UDP IN socket: IO::Socket::INET: Address already in use
/opt/loxberry/sbin/mqttgateway.pl: connect: Connection refused
19:45:05.002 <WARNING> No connection to MQTT Server localhost - Check host/port/user/pass and your connection.
19:45:05.007 Creating udp-in socket
19:45:05.007 <ERROR> Could not create UDP IN socket: IO::Socket::INET: Address already in use
in socket
....
sudo systemctl status mosqitto.service ergibt:
● mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-07-01 19:49:29 CEST; 7min ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 2208 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=3)
Main PID: 2208 (code=exited, status=3)
Jul 01 19:49:29 loxberry systemd[1]: mosquitto.service: Service RestartSec=100ms expired, scheduling restart.
Jul 01 19:49:29 loxberry systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 5.
Jul 01 19:49:29 loxberry systemd[1]: Stopped Mosquitto MQTT v3.1/v3.1.1 Broker.
Jul 01 19:49:29 loxberry systemd[1]: mosquitto.service: Start request repeated too quickly.
Jul 01 19:49:29 loxberry systemd[1]: mosquitto.service: Failed with result 'exit-code'.
Jul 01 19:49:29 loxberry systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
Kommentar