Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client local.RemoteClientId closed its connection. #3069

Open
Wlh0 opened this issue Jun 20, 2024 · 1 comment
Open

Client local.RemoteClientId closed its connection. #3069

Wlh0 opened this issue Jun 20, 2024 · 1 comment

Comments

@Wlh0
Copy link

Wlh0 commented Jun 20, 2024

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
Copy link

ckrey commented Jun 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants