Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Cannot connect to a bridge
  • From: Svet Bajlekov <svet.bajlekov@xxxxxxx>
  • Date: Sun, 24 Sep 2023 15:06:53 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ammp.io; dmarc=pass action=none header.from=ammp.io; dkim=pass header.d=ammp.io; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eiDZkFgSipoO6zqJAFsqa7sXVGURe9ybe5NSpVohhrc=; b=dz8tDHxzeab9uqLWNZXcZMtcpKsmMGuvSHP/sxBnjyyAoXpfVSRUomrdYontQjR2YZgcR/rqugS71ivMTJbAWQlchKBhGQqqMrrl2ZVWTX0r1wOLM+dwqJk89I0ky4VzodUq3YbXgTXUntWSt1eyqp0pARGYMM4CuMwCFDX5aRQKs+MaDWpSrFOTjRgt5ERHPOdiOOc050g8fUJ3rONLbfcJqSjXHwGdDNKqFsTZGuxqxe+9XJvhT+GR7YHAUNaVnZmOYDZGz0njYaDC/Vx175YOXE2ooSAwsa/MdQzCpBeDGE6rchz19GishjaEdI3ZEzKZ8cZiozx7gnFZ4ZSbcw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YNVufW0SSzZlAl+UE5xYFezPAKmfihQvVyo0IIfqvP2vEs4NiJ0iEkmi5ln3NrE98XEOcwSgL/iC9/CN3g0hwBSNZW1j3VEbg4ABfXHElWfCxa6lPGCUo4Ef6uv2+d2nS4bSh0oW8XtuYuzYr37zplwjwqdH6CEalC06thrlvFGgB49dvoo3RAA+vvZwFTt3V5akjKWXoAg6igUrLWyBFDaraN2F2dD4o9uNRoxHatYM/2Gz6mKc/4OJ4nr+96csZzvmpFKU+JEz5L8vRT6hehEGi+HGKLqhUxFvvi/WDoz663wPQzkG0lJoy6ofHTWUtW9sbSQUqXYjwYvmtY1W9g==
  • Delivered-to: mosquitto-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/mosquitto-dev/>
  • List-help: <mailto:mosquitto-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHZ7muMoedUOppkvUOhbjPHw2his7Ap+uGGgAABbACAABhd0w==
  • Thread-topic: [mosquitto-dev] Cannot connect to a bridge

Yes, mosquitto does (by and large) introduce itself as a client when in bridge mode, but there is still a variety of things that could be causing a failure.

Spitballing re. what you could try:
- turn on debug logging locally to see when exactly the failure occurs, for a hint as to what causing it
- turn on insecure connection (temporarily!) to verify that it’s not a CA issue (as suggested)
- play around with some of the other options (like try_private) to make sure they’re not the reason for the mess-up (the docs actually suggest setting try_private to false if a bridge connection fails)

Hope this helps!
Svet

On Sep 24, 2023, at 9:39 AM, Łukasz Przeniosło via mosquitto-dev <mosquitto-dev@xxxxxxxxxxx> wrote:


Hi Greg, thank you for the answer.

It seems obvious that you have to look in the logs of that remote system
to see what arrives and why it behaves as it does

Unfortunately there is no interface for that. All I can do is enable the MQTT integration: https://www.dropbox.com/scl/fi/r0fgzma5iyjpe9f5zuil3/supla_mqtt_interface.png?rlkey=h9fqcnaxm9uvay4hjptef66nj&dl=0

You will also have to deal with selecting which CAs are valid. I don't
see bridge_capath in your config.
Could you refer a bit more to that? I did not need any of such when connecting directly via MQTT client. I would appreciate further feedback, thanks.

--
Łukasz Przeniosło


------ Original Message ------
From "Greg Troxel via mosquitto-dev" <mosquitto-dev@xxxxxxxxxxx>
To "Łukasz Przeniosło via mosquitto-dev" <mosquitto-dev@xxxxxxxxxxx>
Cc "Greg Troxel" <gdt@xxxxxxxxxx>
Date 2023-09-24 15:34:27
Subject Re: [mosquitto-dev] Cannot connect to a bridge

Łukasz Przeniosło via mosquitto-dev <mosquitto-dev@xxxxxxxxxxx> writes:
 
1695506729: Connecting bridge (step 1) saupla_bridge
(mqtt85.supla.org:8883)
1695506729: Connecting bridge (step 2) saupla_bridge
(mqtt85.supla.org:8883)
1695506729: Client local.brokerSupla closed its connection.
 
It seems obvious that you have to look in the logs of that remote system
to see what arrives and why it behaves as it does. You can also tcpdump
on your local machine.
 
You will also have to deal with selecting which CAs are valid. I don't
see bridge_capath in your config.
 
_______________________________________________
mosquitto-dev mailing list
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top