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

Bridge Connection Fails on v 1.4.14 #580

Closed
timpur opened this issue Oct 8, 2017 · 6 comments
Closed

Bridge Connection Fails on v 1.4.14 #580

timpur opened this issue Oct 8, 2017 · 6 comments
Milestone

Comments

@timpur
Copy link

timpur commented Oct 8, 2017

On version 1.4.14 bridge connections fain on windows 10 (server 2016). This issue seems to be low level where the broker wont respond to the tcp sync packet from the remote (from wireshark).

Same computer v1.4.10 works perfectly.

Apart from this i dont know how else to help. The logs just say unknown error while connecting.

@marleau
Copy link

marleau commented Nov 7, 2017

I'm also having this issue with version 1.4.14 on Windows 10.
I don't have any issues bridging with version 1.4.9.

Here is an excerpt of my logs.

1510095695: mosquitto version 1.4.14 (build date Tue 11/07/2017 14:42:35.84) starting
1510095695: Config loaded from mosquitto.conf.
1510095695: Opening websockets listen socket on port 9001.
1510095695: Opening ipv6 listen socket on port 1883.
1510095695: Opening ipv4 listen socket on port 1883.
1510095695: Bridge local.computer.factory-bridge doing local SUBSCRIBE on topic #
1510095695: Connecting bridge factory-bridge (x.x.x.x:1883)
1510095695: Bridge computer.factory-bridge sending CONNECT
1510095695: Error creating bridge: Unknown error.
1510095695: Warning: Unable to connect to bridge factory-bridge.

Here is the bridge configuration.

connection factory-bridge
address x.x.x.x
topic # out "" ""
notifications false
cleansession true
bridge_protocol_version mqttv311

@timpur
Copy link
Author

timpur commented Nov 7, 2017

sorry should of posted my log also. I get the same error Error creating bridge: Unknown error.
Did looking into the issue using wireshark and i saw that mosquitto wouldn't respond to the tcp packets of the handshake from the remote mqtt broker. It was weird.

@PierreF
Copy link
Contributor

PierreF commented Jan 4, 2018

Just to be sure:

  • There is two broker: Broker A and Broker B
  • Logs and configuration comes from Broker A. Therefor bridge is configured for Broker A to connect to Broker B
  • Broker A don't response to Syn packet from Broker B ? Since broker B should not open a connection, I assume it's a syn+ack packet.

The fact that error is "Unknown error" + no response to Syn packet makes me wonder if it's not a firewall/security policy issue ? Could you retry with more permissive firewall configuration ?

@timpur
Copy link
Author

timpur commented Jan 4, 2018

Your understanding is right, but with out changing anything but the version of mosquitto, things work.

@jsirpoma
Copy link

jsirpoma commented Feb 7, 2018

I think this is same as #478.

@ralight
Copy link
Contributor

ralight commented Sep 4, 2019

I agree, this is the same as #478 which is now fixed in the fixes branch.

@ralight ralight closed this as completed Sep 4, 2019
@ralight ralight added this to the 1.6.5 milestone Sep 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants