[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mosquitto-dev] Cannot connect to a bridge
|
Hello again,
Thank you for your feedback. I have somehow found the issue, althought not fully aware what the problem was.
First thing I did was adding the cert related settings in /etc/mosquitto/conf.d/supla_broker.conf:
bridge_capath /etc/ssl/certs
require_certificate true
But after that Mosquito started crashing at startup, as (I am guessing) it tried to open the same listener socket (for the same port). This I deduced from the logs:
1695582607: mosquitto version 2.0.11 starting
1695582607: Config loaded from /etc/mosquitto/mosquitto.conf.
1695582607: Opening ipv4 listen socket on port 1883.
1695582607: Opening ipv6 listen socket on port 1883.
1695582607: Opening ipv4 listen socket on port 1883.
1695582607: Error: Address already in use
1695582607: mosquitto version 2.0.11 starting
1695582607: Config loaded from /etc/mosquitto/mosquitto.conf.
1695582607: Opening ipv4 listen socket on port 1883.
1695582607: Opening ipv6 listen socket on port 1883.
1695582607: Opening ipv4 listen socket on port 1883.
1695582607: Error: Address already in use
1695582607: mosquitto version 2.0.11 starting
...
Not sure why this happened. I decided to remove the listener 1883 line from the /etc/mosquitto/mosquitto.conf
though and that did the trick. The bridge now works.
Also, I removed the persistence true from the given conf and thanks to that the previous error in the logs dissapeared:
1695506647: Failed to associate persisted user 07df9cbb081... with ACLs, likely due to changed ports while using a per_listener_settings configuration.
It seems that that's it... Thanks again guys!
------ Original Message ------
Date 2023-09-24 19:28:01
Subject Re: [mosquitto-dev] Cannot connect to a bridge
Unfortunately there is no interface for that. All I can do is enable
the MQTT integration:
I'm not going to pay attention to anything on dropbox (or attached
images in email). I suggest doing everything in CLI/text mode.
If you are using something which doesn't provide adeuqate support, then
you'll have to bring that up with them. You're having a supla issue,
not a mosquitto issue, as I see it.
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.
The mosquitto.conf(5) man page desecribes bridge_capath and similar.
You should thoroughly read both that man page and the example
mosquitto.conf provided in the sources, which has a lot of discussion of
bridging.
After that, I suggest setting up mosquitto someplace else, with a valid
certificate, and getting bridging working between your own two systems.
Then move on to supla.