Replies: 1 comment
-
I still don't understand anything, but changing the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
TL;DR
Bridge networks don't seem to work as I expect them to?
My possibly misguided expectation from the docker documentation:
However, ports seem to be randomly mapped on each connection and I have a fairly minimal test setup that appears to showcases this.
Context
I'm bringing up a Synapse (Matrix) server and hit issues adding mautrix-bridges, specifically the
mautrix-meta
bridge which i'm running as a container namedmautrix-meta-messenger
.Synapse and its postgres db are working (after strife related to file permissions) but Synapse can't connect to the mautrix-meta bridge. When the bridge makes a request to Synapse (a request to test its connectivity with the bridge), it fails:
synapse.http.client - 451 - INFO - POST-63 - Error sending request to POST http://mautrix-meta-messenger:29319/_matrix/app/v1/ping: ConnectionRefusedError Connection refused
.This category of error is mentioned in the mautrix FAQ here where they say to test the connectivity between Synapse and the bridge.
Initial Testing
Leaving the Synapse container running, I tested connectivity using
nc
in themautrix-meta-messenger
container and running a python one-liner from the Synapse container.Setup Details
The existing setup details are the following:
Test Result
Running a basic test went as follows:
Running the above three times produces this in the mautrix-meta-messenger output:
So what gives? Why is the traffic coming in at these random ports?
I tried a bunch of other ports of lower ranges and it produced similar results.
Minimal Example
I created a more minimal example to observe the same thing:
test_bridge
bridge networktest_receiver
container attached totest_bridge
test_sender
container attached totest_bridge
Results
Running the
test_receiver
:Running the
test_sender
three times:The resulting output in
test_receiver
:Summary
I can't say the test necessarily relates to the Synapse -> mautrix-meta connectivity failure. I know in general connectivity is working because we see output on the receiving side, but it seems like the port is randomly wrong.
I'm guessing the Synapse -> postgres connectivity and mautrix-meta -> postgres connectivity works because of the explicitly exposed port on the postgres container?
I tried explicitly exposing a port
--expose 29319
and that didn't seem to help though.Beta Was this translation helpful? Give feedback.
All reactions