You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
MayeulC opened this issue
May 13, 2022
· 4 comments
Labels
A-PushIssues related to push/notificationsS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.
This is probably a bug with DNS resolution inside twisted.
MayeulC
changed the title
Pusher always fails with DNSLookupError for unifiedPush instance
Pusher always fails with DNSLookupError if hostname is in hosts file
May 13, 2022
DMRobertson
added
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
labels
May 13, 2022
I think i have similar problem.
I am hosting a synpase + postgres + mautrix-telegram over docker-compose
everything works fine for 5 minutes, then i start receiving those errors:
synapse | 2022-07-27 18:55:16,103 - synapse.http.client - 455 - INFO - as-recoverer-telegram-2 - Error sending request to PUT http://mtele:29317/transactions/1128?access_token=<redacted>: DNSLookupError Couldn't find the hostname 'mtele'
synapse | 2022-07-27 18:55:16,103 - synapse.appservice.api - 323 - WARNING - as-recoverer-telegram-2 - push_bulk to http://mtele:29317/transactions/1128 threw exception(DNSLookupError) DNS lookup failed: Couldn't find the hostname 'mtele'. args=("Couldn't find the hostname 'mtele'",)
but first 5 minutes or so, everything is working fine:
synapse | 2022-07-27 18:49:39,952 - synapse.http.client - 446 - INFO - as-sender-telegram-108 - Received response to PUT http://mtele:29317/transactions/1126?access_token=<redacted>: 200
synapse | 2022-07-27 18:49:44,340 - synapse.http.client - 446 - INFO - as-sender-telegram-109 - Received response to PUT http://mtele:29317/transactions/1127?access_token=<redacted>: 200
I think this was just an issue where 127.0.0.1 was blacklisted by default: #7113 (comment)#10224 . This is the address I was putting in my host file, while the DNS was returning my (hairpinned) external IP.
I just had another issue where the DNS lookup would "fail" according to the log (while using testdns.pyfrom twisted was returning 127.0.0.1 without complaining). Adding the loopback address to /etc/hosts explicitly worked around that other issue, somehow, so this confirms that the current issue is, if not mistaken, at least fixed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A-PushIssues related to push/notificationsS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
Original report by @xundeenergie in #7113 (comment)
I think I have the same symptoms, here are a few notes on my install:
/etc/hosts
<- later identified as the issueMetrics screenshots:
Synapse logs:
I replaced my pusher host name as the ntfy instance is public, and I am not sure of the trade-offs.
Steps to reproduce
TBD
Version information
If not matrix.org:
The text was updated successfully, but these errors were encountered: