mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.21k stars 170 forks source link

ConnectionRefusedError: Connection was refused by other side: 111: Connection refused. #684

Closed crmado closed 4 months ago

crmado commented 4 months ago

Hello, I would like to ask about the following error that occurs when I execute ./mautrix-whatsapp. The registration.yaml file has already been placed in the synapse directory, and other bridged services are running normally, but there are issues with Whatsapp:

2024-02-15T04:56:50.334709361Z 2024-02-15T04:56:50Z INF Initializing bridge built_at="Feb 14 2024, 18:46:54" go_version=go1.22.0 name=mautrix-whatsapp version=0.10.5+dev.f8a22aab
2024-02-15T04:56:50.334771436Z 2024-02-15T04:56:50Z DBG Initializing database connection
2024-02-15T04:56:50.334780426Z 2024-02-15T04:56:50Z DBG Initializing state store
2024-02-15T04:56:50.335181907Z 2024-02-15T04:56:50Z DBG Initializing Matrix event processor
2024-02-15T04:56:50.335191113Z 2024-02-15T04:56:50Z DBG Initializing Matrix event handler
2024-02-15T04:56:50.335197915Z 2024-02-15T04:56:50Z DBG Bridge built with end-to-bridge encryption, but disabled in config
2024-02-15T04:56:50.335717319Z 2024-02-15T04:56:50Z INF Bridge initialization complete, starting...
2024-02-15T04:56:50.335758482Z 2024-02-15T04:56:50Z DBG Running database upgrades
2024-02-15T04:56:50.367066235Z 2024-02-15T04:56:50Z INF Database is up to date current_version=57 db_section=main latest_known_version=57 oldest_compatible_version=45
2024-02-15T04:56:50.372273474Z 2024-02-15T04:56:50Z INF Database is up to date current_version=5 db_section=matrix_state latest_known_version=5 oldest_compatible_version=5
2024-02-15T04:56:50.372306760Z 2024-02-15T04:56:50Z DBG Starting application service HTTP server
2024-02-15T04:56:50.372316047Z 2024-02-15T04:56:50Z DBG Checking connection to homeserver
2024-02-15T04:56:50.373213811Z 2024-02-15T04:56:50Z INF Starting HTTP listener address=0.0.0.0:29318
2024-02-15T04:56:50.378076626Z 2024-02-15T04:56:50Z DBG Request completed as_user_id=@whatsappbot:skaiqwenapi.skaispace.com duration=5.488474 method=GET req_id=1 response_length=932 response_mime=application/json status_code=200 url=http://synapse:8008/_matrix/client/versions?user_id=%40whatsappbot%3Askaiqwenapi.skaispace.com
2024-02-15T04:56:50.381315292Z 2024-02-15T04:56:50Z DBG Request completed as_user_id=@whatsappbot:skaiqwenapi.skaispace.com duration=2.381005 method=GET req_id=2 response_length=69 response_mime=application/json status_code=200 url=http://synapse:8008/_matrix/client/v3/account/whoami?user_id=%40whatsappbot%3Askaiqwenapi.skaispace.com
2024-02-15T04:56:50.690870742Z 2024-02-15T04:56:50Z DBG Request completed as_user_id=@whatsappbot:skaiqwenapi.skaispace.com duration=309.21599 method=POST req_body={"transaction_id":"mautrix-go_1707973010381238299_1"} req_id=3 response_length=130 response_mime=application/json status_code=502 url=http://synapse:8008/_matrix/client/v1/appservice/whatsapp/ping?user_id=%40whatsappbot%3Askaiqwenapi.skaispace.com
2024-02-15T04:56:50.690911697Z 2024-02-15T04:56:50Z ERR Homeserver -> bridge connection is not working, retrying in 5 seconds... error="failed to POST /_matrix/client/v1/appservice/whatsapp/ping: M_CONNECTION_FAILED (HTTP 502): ConnectionRefusedError: Connection was refused by other side: 111: Connection refused." txn_id=mautrix-go_1707973010381238299_1
2024-02-15T04:56:56.001552461Z 2024-02-15T04:56:56Z DBG Request completed as_user_id=@whatsappbot:skaiqwenapi.skaispace.com duration=309.203531 method=POST req_body={"transaction_id":"mautrix-go_1707973015691810708_2"} req_id=4 response_length=130 response_mime=application/json status_code=502 url=http://synapse:8008/_matrix/client/v1/appservice/whatsapp/ping?user_id=%40whatsappbot%3Askaiqwenapi.skaispace.com
2024-02-15T04:56:56.001609345Z 2024-02-15T04:56:56Z ERR Homeserver -> bridge connection is not working, retrying in 5 seconds... error="failed to POST /_matrix/client/v1/appservice/whatsapp/ping: M_CONNECTION_FAILED (HTTP 502): ConnectionRefusedError: Connection was refused by other side: 111: Connection refused." txn_id=mautrix-go_1707973015691810708_2
2024-02-15T04:57:01.314823123Z 2024-02-15T04:57:01Z DBG Request completed as_user_id=@whatsappbot:skaiqwenapi.skaispace.com duration=308.803465 method=POST req_body={"transaction_id":"mautrix-go_1707973021005516116_3"} req_id=5 response_length=130 response_mime=application/json status_code=502 url=http://synapse:8008/_matrix/client/v1/appservice/whatsapp/ping?user_id=%40whatsappbot%3Askaiqwenapi.skaispace.com
2024-02-15T04:57:01.314864662Z 2024-02-15T04:57:01Z ERR Homeserver -> bridge connection is not working, retrying in 5 seconds... error="failed to POST /_matrix/client/v1/appservice/whatsapp/ping: M_CONNECTION_FAILED (HTTP 502): ConnectionRefusedError: Connection was refused by other side: 111: Connection refused." txn_id=mautrix-go_1707973021005516116_3
tulir commented 4 months ago

GitHub issues is not the place for debugging setup issues, but that happens when the appservice address is wrong