app domain does not appear to resolve to app server mixing up IPv4 and IPv6 #490

Closed
opened 2023-09-04 11:15:53 +00:00 by knoflook · 3 comments
Owner

Got this glorious error today. Both addresses are right, maybe there should be a way to run abra ipv4/ipv6 only?

FATA[0003] app domain collabora.ostrom.collective.tools (2a01:4f8:222:f0a::2) does not appear to resolve to app server ostrom.collective.tools (88.198.81.228)?

The workaround was to add the IPv4 address to /etc/hosts.: 88.198.81.228 collabora.ostrom.collective.tools

Got this glorious error today. Both addresses are right, maybe there should be a way to run abra ipv4/ipv6 only? `FATA[0003] app domain collabora.ostrom.collective.tools (2a01:4f8:222:f0a::2) does not appear to resolve to app server ostrom.collective.tools (88.198.81.228)? ` The workaround was to add the IPv4 address to `/etc/hosts`.: `88.198.81.228 collabora.ostrom.collective.tools`
knoflook added the
bug
label 2023-09-04 11:15:53 +00:00
decentral1se added the
abra
label 2023-09-05 15:47:24 +00:00
Owner

Sadness 😬 I guess abra should just grok whether it's reading a ipv4/ipv6 record and match accordingly? In this case, abra should have tried to look up the ipv6 record for ostrom.collective.tools to make the comparison, right?

Sadness 😬 I guess `abra` should just grok whether it's reading a ipv4/ipv6 record and match accordingly? In this case, `abra` should have tried to look up the ipv6 record for `ostrom.collective.tools` to make the comparison, right?
Owner
➜ host ostrom.collective.tools
ostrom.collective.tools has address 88.198.81.228
ostrom.collective.tools has IPv6 address 2a01:4f8:222:f0a::2

So either would have worked, seems like the problem is that it did one kind of lookup on IPv4 and the other on IPv6.

``` ➜ host ostrom.collective.tools ostrom.collective.tools has address 88.198.81.228 ostrom.collective.tools has IPv6 address 2a01:4f8:222:f0a::2 ``` So either would have worked, seems like the problem is that it did one kind of lookup on IPv4 and the other on IPv6.
Owner

Note, coop-cloud/abra#364 fixes that we do only stick to ipv4 when possible. I couldn't quite reproduce the issue but I think this could help fix it. This is ofc sadness for the ipv6 hackers amongst us. I welcome a change set which adapts this function to support ipv6 in the case of ipv4 matching failing. I think it's just repeating the logic and then passing "ip6" into the resolver.

Note, https://git.coopcloud.tech/coop-cloud/abra/pulls/364 fixes that we do only stick to ipv4 when possible. I couldn't quite reproduce the issue but I think this could help fix it. This is ofc sadness for the ipv6 hackers amongst us. I welcome a change set which adapts this function to support ipv6 in the case of ipv4 matching failing. I think it's just repeating the logic and then passing `"ip6"` into the resolver.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#490
No description provided.