eclipse / mosquitto

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

Client local.RemoteClientId closed its connection. #3069

Open Wlh0 opened 1 week ago

Wlh0 commented 1 week ago

this is mt .conf file

This instance is configured as a bridge to connect to another broker

listener 1883 allow_anonymous true log_type all log_dest stdout

Enable persistence

persistence true

persistence_location /var/lib/mosquitto/

Bridge configuration

connection bridge address 11.101.17.223:1883 bridge_protocol_version mqttv31 remote_clientid RemoteClientId try_private true

Enable persistent session

cleansession false

Configure notifications

notifications true notifications_local_only false notification_topic test-update-persistence/broker/state

Topic mapping

topic # out 1

this is the log file 1718868037: Sending PUBACK to 7f000001fbae6673d845 (m11, rc0) 1718868037: Received DISCONNECT from 7f000001fbae6673d845 1718868037: Client 7f000001fbae6673d845 disconnected. 1718868038: Bridge local.RemoteClientId doing local SUBSCRIBE on topic # 1718868038: Connecting bridge bridge (11.101.17.223:1883) 1718868038: Bridge RemoteClientId sending CONNECT 1718868038: Client local.RemoteClientId closed its connection. 1718868061: Received PINGREQ from mqttx_63929f74 1718868061: Sending PINGRESP to mqttx_63929f74

ckrey commented 4 days ago

Which version of mosquitto are you running? Which operating system? Which broker/version do you use on the target system of the bridge? Why are you explicitly using the ancient protocol version 3.1 bridge_protocol_version mqttv31? mqttv311 is 10 years old, mqttv5 is 6 years old

Can you manually connect from your mosquitto broker's system to the bridge's broker? mosquitto_sub -t '#' -v -d -h 11.101.17.223