eclipse / mosquitto

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

unable to establitsh mqtt broker bridge with AWS broker #1218

Open cah-sachin opened 5 years ago

cah-sachin commented 5 years ago

I am trying to setup Brdige between AWS MQTT broker and my local mosquitto broker with version 1.5.8

I checked private key certificate and rootca by publishing pub message like below those are correct in configuration of mqtt.

mosquitto_pub --cafile rootca.crt --cert certificate_1.crt --key private_pem_1.key -h -p 443 -q 1 -d -t "/testping" -i 23234 -m "Hello World" Client 23234 sending CONNECT Client 23234 received CONNACK (0) Client 23234 sending PUBLISH (d0, q1, r0, m1, 'tfc/GT_QPCR_SYSTEM/ca3104a9-5242-11e9-8661-0242ac11000520/ping', ... (11 bytes)) Client 23234 received PUBACK (Mid: 1) Client 23234 sending DISCONNECT

when i put same configuration for broker in mosquitto configuration file for broker, then it does not work. Any clue here ?

Panometric commented 5 years ago

I've seen this when the client id is duplicated. Bridge clients must have a unique client ID, set with "connection" or "remote_clientid" options. .

karlp commented 5 years ago

Given that they're setting the client id specifically, that's a good bet.