[Synapse/mautrix bridge] DNSLookupError: DNS lookup failed: no results for hostname lookup

rku

Benutzer
Mitglied seit
24. Mai 2024
Beiträge
7
Punkte für Reaktionen
3
Punkte
3
Hallo zusammen,

kurz zur Einleitung:

Ich habe auf meiner Synology über den Container Manager u.a. folgendes laufen:
  • Postgres Datenbank
  • Synpase Server
  • Mautrix Signal Bridge
  • Mautrix WhatsApp Bridge
Informationen zum Setup (Bridges, Netzwerk) sind hier zu finden.

Dieses Setup lief anfangs auch gut zusammen. Allerdings macht seit einigen Tagen der Container der WhatsApp Bridge Probleme. In den Logs findet sich folgendes (Ausschnitt):

HTML:
2024/10/14 11:56:29    stdout    [90m2024-10-14T09:56:29.147Z[0m [31mERR[0m [1mHomeserver -> bridge connection is not working, retrying in 5 seconds...[0m [36merror=[0m[31m[1m"failed to POST /_matrix/client/v1/appservice/whatsapp/ping: M_CONNECTION_FAILED (HTTP 502): DNSLookupError: DNS lookup failed: no results for hostname lookup: mautrix-whatsapp-2."[0m[0m [36mtxn_id=[0mmautrix-go_1728899789106616678_5
2024/10/14 11:56:29    stdout    [90m2024-10-14T09:56:29.146Z[0m [34mDBG[0m Request completed [36mduration=[0m40.136824 [36mmethod=[0mPOST [36mreq_body=[0m{"transaction_id":"mautrix-go_1728899789106616678_5"} [36mreq_id=[0m7 [36mresponse_length=[0m130 [36mresponse_mime=[0mapplication/json [36mstatus_code=[0m502 [36murl=[0mhttps://matrix.mydomain.de/_matrix/client/v1/appservice/whatsapp/ping?user_id=%40whatsappbot%3Amydomain.de
2024/10/14 11:56:24    stdout    [90m2024-10-14T09:56:24.102Z[0m [31mERR[0m [1mHomeserver -> bridge connection is not working, retrying in 5 seconds...[0m [36merror=[0m[31m[1m"failed to POST /_matrix/client/v1/appservice/whatsapp/ping: M_CONNECTION_FAILED (HTTP 502): DNSLookupError: DNS lookup failed: no results for hostname lookup: mautrix-whatsapp-2."[0m[0m [36mtxn_id=[0mmautrix-go_1728899784061789864_4
2024/10/14 11:56:24    stdout    [90m2024-10-14T09:56:24.102Z[0m [34mDBG[0m Request completed [36mduration=[0m40.339015 [36mmethod=[0mPOST [36mreq_body=[0m{"transaction_id":"mautrix-go_1728899784061789864_4"} [36mreq_id=[0m6 [36mresponse_length=[0m130 [36mresponse_mime=[0mapplication/json [36mstatus_code=[0m502 [36murl=[0mhttps://matrix.mydomain.de/_matrix/client/v1/appservice/whatsapp/ping?user_id=%40whatsappbot%3Amydomain.de
2024/10/14 11:56:19    stdout    [90m2024-10-14T09:56:19.061Z[0m [31mERR[0m [1mHomeserver -> bridge connection is not working, retrying in 5 seconds...[0m [36merror=[0m[31m[1m"failed to POST /_matrix/client/v1/appservice/whatsapp/ping: M_CONNECTION_FAILED (HTTP 502): DNSLookupError: DNS lookup failed: no results for hostname lookup: mautrix-whatsapp-2."[0m[0m [36mtxn_id=[0mmautrix-go_1728899779024065211_3
2024/10/14 11:56:19    stdout    [90m2024-10-14T09:56:19.061Z[0m [34mDBG[0m Request completed [36mduration=[0m37.280426 [36mmethod=[0mPOST [36mreq_body=[0m{"transaction_id":"mautrix-go_1728899779024065211_3"} [36mreq_id=[0m5 [36mresponse_length=[0m130 [36mresponse_mime=[0mapplication/json [36mstatus_code=[0m502 [36murl=[0mhttps://matrix.mydomain.de/_matrix/client/v1/appservice/whatsapp/ping?user_id=%40whatsappbot%3Amydomain.de
2024/10/14 11:56:14    stdout    [90m2024-10-14T09:56:14.019Z[0m [31mERR[0m [1mHomeserver -> bridge connection is not working, retrying in 5 seconds...[0m [36merror=[0m[31m[1m"failed to POST /_matrix/client/v1/appservice/whatsapp/ping: M_CONNECTION_FAILED (HTTP 502): DNSLookupError: DNS lookup failed: no results for hostname lookup: mautrix-whatsapp-2."[0m[0m [36mtxn_id=[0mmautrix-go_1728899773979482858_2
2024/10/14 11:56:14    stdout    [90m2024-10-14T09:56:14.019Z[0m [34mDBG[0m Request completed [36mduration=[0m40.115875 [36mmethod=[0mPOST [36mreq_body=[0m{"transaction_id":"mautrix-go_1728899773979482858_2"} [36mreq_id=[0m4 [36mresponse_length=[0m130 [36mresponse_mime=[0mapplication/json [36mstatus_code=[0m502 [36murl=[0mhttps://matrix.mydomain.de/_matrix/client/v1/appservice/whatsapp/ping?user_id=%40whatsappbot%3Amydomain.de
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.975Z[0m [31mERR[0m [1mHomeserver -> bridge connection is not working, retrying in 5 seconds...[0m [36merror=[0m[31m[1m"failed to POST /_matrix/client/v1/appservice/whatsapp/ping: M_CONNECTION_FAILED (HTTP 502): DNSLookupError: DNS lookup failed: no results for hostname lookup: mautrix-whatsapp-2."[0m[0m [36mtxn_id=[0mmautrix-go_1728899768936035748_1
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.975Z[0m [34mDBG[0m Request completed [36mduration=[0m39.059711 [36mmethod=[0mPOST [36mreq_body=[0m{"transaction_id":"mautrix-go_1728899768936035748_1"} [36mreq_id=[0m3 [36mresponse_length=[0m130 [36mresponse_mime=[0mapplication/json [36mstatus_code=[0m502 [36murl=[0mhttps://matrix.mydomain.de/_matrix/client/v1/appservice/whatsapp/ping?user_id=%40whatsappbot%3Amydomain.de
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.935Z[0m [34mDBG[0m Request completed [36mduration=[0m3.790572 [36mmethod=[0mGET [36mreq_id=[0m2 [36mresponse_length=[0m54 [36mresponse_mime=[0mapplication/json [36mstatus_code=[0m200 [36murl=[0mhttps://matrix.mydomain.de/_matrix/client/v3/account/whoami?user_id=%40whatsappbot%3Amydomain.de
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.93Z[0m [34mDBG[0m Request completed [36mduration=[0m36.880455 [36mmethod=[0mGET [36mreq_id=[0m1 [36mresponse_length=[0m1038 [36mresponse_mime=[0mapplication/json [36mstatus_code=[0m200 [36murl=[0mhttps://matrix.mydomain.de/_matrix/client/versions?user_id=%40whatsappbot%3Amydomain.de
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.892Z[0m [32mINF[0m [1mStarting HTTP listener[0m [36maddress=[0m0.0.0.0:29318
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.892Z[0m [34mDBG[0m Checking connection to homeserver
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.892Z[0m [34mDBG[0m Starting application service HTTP server
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.892Z[0m [32mINF[0m [1mDatabase is up to date[0m [36mcurrent_version=[0m7 [36mdb_section=[0mmatrix_state [36mlatest_known_version=[0m7 [36moldest_compatible_version=[0m3
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.887Z[0m [32mINF[0m [1mDatabase is up to date[0m [36mcurrent_version=[0m57 [36mdb_section=[0mmain [36mlatest_known_version=[0m57 [36moldest_compatible_version=[0m45
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.862Z[0m [34mDBG[0m Running database upgrades
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.862Z[0m [32mINF[0m [1mBridge initialization complete, starting...[0m
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.861Z[0m [34mDBG[0m Bridge built with end-to-bridge encryption, but disabled in config
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.861Z[0m [34mDBG[0m Initializing Matrix event handler
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.861Z[0m [34mDBG[0m Initializing Matrix event processor
2024/10/14 11:56:08    stdout    [90m2024-10-14T09:56:08.861Z[0m [34mDBG[0m Initializing state store

Ähnliche Meldungen gab es auch für die Signal-Bridge, allerdings waren folgende (13.10.24) die letzten Meldungen im Log hierzu und diese läuft wieder wie zuvor:

Code:
2024/10/13 02:04:43,stdout,[90m2024-10-13T00:04:43.904Z[0m [32mINF[0m [1mSee https://docs.mau.fi/faq/as-ping for more info[0m
2024/10/13 02:04:43,stdout,[90m2024-10-13T00:04:43.904Z[0m [31mFTL[0m [1mHomeserver -> bridge connection is not working[0m [36merror=[0m[31m[1m"failed to POST /_matrix/client/v1/appservice/signal/ping: M_CONNECTION_FAILED (HTTP 502): DNSLookupError: DNS lookup failed: no results for hostname lookup: mautrix-signal-1."[0m[0m [36mtxn_id=[0mmautrix-go_1728777883866595907_7
2024/10/13 02:04:43,stdout,[90m2024-10-13T00:04:43.904Z[0m [34mDBG[0m Request completed [36mduration=[0m37.758254 [36mmethod=[0mPOST [36mreq_body=[0m{"transaction_id":"mautrix-go_1728777883866595907_7"} [36mreq_id=[0m9 [36mresponse_length=[0m128 [36mresponse_mime=[0mapplication/json [36mstatus_code=[0m502 [36murl=[0mhttps://matrix.mydomain.de/_matrix/client/v1/appservice/signal/ping?user_id=%40signalbot%3Amydomain.de
2024/10/13 02:04:38,stdout,"[90m2024-10-13T00:04:38.862Z[0m [31mERR[0m [1mHomeserver -> bridge connection is not working, retrying in 5 seconds...[0m [36merror=[0m[31m[1m\"failed to POST /_matrix/client/v1/appservice/signal/ping: M_CONNECTION_FAILED (HTTP 502): DNSLookupError: DNS lookup failed: no results for hostname lookup: mautrix-signal-1.\"[0m[0m [36mtxn_id=[0mmautrix-go_1728777878821770277_6
"
2024/10/13 02:04:38,stdout,[90m2024-10-13T00:04:38.862Z[0m [34mDBG[0m Request completed [36mduration=[0m40.295893 [36mmethod=[0mPOST [36mreq_body=[0m{"transaction_id":"mautrix-go_1728777878821770277_6"} [36mreq_id=[0m8 [36mresponse_length=[0m128 [36mresponse_mime=[0mapplication/json [36mstatus_code=[0m502 [36murl=[0mhttps://matrix.mydomain.de/_matrix/client/v1/appservice/signal/ping?user_id=%40signalbot%3Amydomain.de
2024/10/13 02:04:33,stdout,"[90m2024-10-13T00:04:33.819Z[0m [31mERR[0m [1mHomeserver -> bridge connection is not working, retrying in 5 seconds...[0m [36merror=[0m[31m[1m\"failed to POST /_matrix/client/v1/appservice/signal/ping: M_CONNECTION_FAILED (HTTP 502): DNSLookupError: DNS lookup failed: no results for hostname lookup: mautrix-signal-1.\"[0m[0m [36mtxn_id=[0mmautrix-go_1728777873779622537_5
"

Der Logteil

HTML:
DNSLookupError: DNS lookup failed: no results for hostname lookup: mautrix-whatsapp-2."[0m[0m [36mtxn_id=[0mmautrix-go_1728899789106616678_5

würde andeuten, dass der eigene Name (Containername mautrix-whatsapp-2) nicht gefunden wird?

Detailinformationen aus dem docker inspect (zum whatsapp Container, Ausschnitt):

JSON:
"Config": {
            "Hostname": "mautrix-whatsapp-2",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": true,
            "OpenStdin": true,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "UID=1337",
                "GID=1337",
                "BRIDGEV2=1"
            ],
            "Cmd": [
                "/docker-run.sh"
            ],
            "Image": "dock.mau.dev/mautrix/whatsapp:latest",
            "Volumes": {
                "/data": {}
            },
            "WorkingDir": "/data",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {},
            "DDSM": false
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "44855299a58e39d7f442726f80b877c500ce5be545a0f97752622b07a8f4df8d",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {},
            "SandboxKey": "/var/run/docker/netns/44855299a58e",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "febe74d0f060cbf78f49cf89e99e3c847a89e6e72aed1717b0670acf18a11748",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "",
                    "DriverOpts": null
                }
            }



Aktuell vermute ich, dass das kein Container Problem, sondern ein Docker Problem ist, sicher bin ich mir aber nicht (siehe z.B. https://github.com/mautrix/whatsapp/issues/291) , insbesondere da die Bridge am Anfang funktioniert hat. Der in den Logs angesprochene Link https://docs.mau.fi/faq/as-ping ist leider wenig hilfreich. Weitere Analysen im Container kann ich leider nicht vornehmen, da dieser kurz nach dem Start direkt beendet wird.

Leider bin ich aktuell etwas ratlos, wie ich mich dem Problem weiter nähern kann. Hat vielleicht jemand hilfreiche Erfahrungen oder Tipps?
 

rku

Benutzer
Mitglied seit
24. Mai 2024
Beiträge
7
Punkte für Reaktionen
3
Punkte
3
Zur aktuellen Situation:

Ich habe das Setup auf einem separaten Docker-Netzwerk (bridge) aufgesetzt, und habe (bis jetzt) keine Probleme.

Von daher: Problem gelöst.
 


 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat