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
Uh oh!
There was an error while loading. Please reload this page.
-
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-metabridge 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
ncin themautrix-meta-messengercontainer 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_bridgebridge networktest_receivercontainer attached totest_bridgetest_sendercontainer attached totest_bridgeResults
Running the
test_receiver:Running the
test_senderthree 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 29319and that didn't seem to help though.Beta Was this translation helpful? Give feedback.
All reactions