eclipse-mosquitto / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
9.08k stars 2.4k forks source link

bridge_outgoing_retain prevents Mosquitto from starting #2728

Open buteomont opened 1 year ago

buteomont commented 1 year ago

Running mosquitto version 1.5.7. Adding bridge_outgoing_retain false to the configuration file causes this error:

Job for mosquitto.service failed because the control process exited with error code.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.

systemctl status mosquitto.service yields:

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 Sun 2023-01-15 15:35:33 CST; 39s ago
     Docs: man:mosquitto.conf(5)
           man:mosquitto(8)
  Process: 22768 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=3)
 Main PID: 22768 (code=exited, status=3)

This is the exact same error that's in issue #2120 That issue was closed but no fix or workaround is shown. Commenting out the offending configuration line (_bridge_outgoingretain false) allows mosquitto to start, but it fails when connecting to the external broker.

ralight commented 1 year ago

bridge_outgoing_retain was added in mosquitto v2.0, so you'd need to update to that version for it to work.