Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Synapse fails to talk to appservices that listen on an IPv6 address. #4092

Open
jcgruenhage opened this issue Oct 25, 2018 · 3 comments
Open
Labels
A-Application-Service Related to AS support O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. Z-Upstream-Bug This issue requires a fix in an upstream dependency.

Comments

@jcgruenhage
Copy link
Contributor

Description

Synapse fails to talk to appservices that listen on an IPv6 address.

Steps to reproduce

  • Set up some appservice
  • Use the IPv4 address to verify it's working
  • Now change the registration file pointing to the appservice's IPv6
  • The logs will now contain errors like this:
2018-10-24 16:44:23,723 - synapse.appservice.scheduler - 240 - INFO - - Retrying transaction 338847 for AS ID telegram                                                              
2018-10-24 16:44:23,725 - synapse.http.client - 96 - INFO - - Sending request PUT http://[::1]:8187/transactions/338847?access_token=<redacted>
2018-10-24 16:44:23,726 - synapse.http.client - 118 - INFO - - Error sending request to  PUT http://[::1]:8187/transactions/338847?access_token=<redacted>: IDNAError The label b'::1' is not a valid A-label
2018-10-24 16:44:23,727 - synapse.appservice.api - 249 - WARNING - - push_bulk to http://[::1]:8187/transactions/338847 threw exception The label b'::1' is not a valid A-label

Maybe there is more info on this here, but I tried to get all the relevant things into this issue.

Version information

  • Homeserver: jcg.re
  • Version: v0.33.7
  • Install method: docker
  • Platform: Fedora Host, official docker image, running with network_mode=host in docker-compose
@neilisfragile neilisfragile added z-bug (Deprecated Label) z-p2 (Deprecated Label) labels Nov 8, 2018
@hawkowl
Copy link
Contributor

hawkowl commented Dec 6, 2018

Related issue: python-hyper/hyperlink#68

@silkeh
Copy link
Contributor

silkeh commented Jan 25, 2019

Workaround: use ip6-localhost instead of [::1] (assuming it is defined in /etc/hosts)

@martinetd
Copy link

copying the up to date error since that apparently changed since 2019 and my issue was a duplicate...

synapse[3490779]: synapse.appservice.api: [as-recoverer-telegram-5]
push_bulk to http://[::1]:8010/transactions/1 threw exception(
   InvalidCodepoint) Codepoint U+003A at position 1 of '::1' not allowed
   args=("Codepoint U+003A at position 1 of '::1' not allowed",)

same workaround works (use something from /etc/hosts), so it's better than some apps that don't support ipv6 at all, but meh is all I can say.

@anoadragon453 anoadragon453 added Z-Upstream-Bug This issue requires a fix in an upstream dependency. S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. labels Jun 30, 2022
@erikjohnston erikjohnston added O-Uncommon Most users are unlikely to come across this or unexpected workflow and removed z-bug (Deprecated Label) z-p2 (Deprecated Label) labels Nov 15, 2022
@MadLittleMods MadLittleMods added the A-Application-Service Related to AS support label Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Application-Service Related to AS support O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. Z-Upstream-Bug This issue requires a fix in an upstream dependency.
Projects
None yet
Development

No branches or pull requests

8 participants