Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use next hint in case a hint fails. #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeltevanbommel
Copy link

When bootstrapping at ETH on freshly installed hosts that have some sort of IPv6 connectivity, the bootstrapper uses an IPv6 hint, which fails with a context deadline exceeded error. While there is a check whether an IPv6 address is routable, this check (erroneously?) does allow the bootstrapper to use IPv6 hints that are in fact not reachable. This PR circumvents the problem by using the next available hint, if this hint is different than previous hints. In the ETH case, falling back to an IPv4 hint, which does succeed.

Relevant logging:

t=2025-02-07T09:51:24+0000 lvl=info msg="DNS hint" Addr="{IP:2001:67c:10ec:3544::26 Port:8041 Zone:}"
t=2025-02-07T09:51:24+0000 lvl=info msg="Fetching TRCs index" url=http://[2001:67c:10ec:3544::26]:8041/trcs
t=2025-02-07T09:51:24+0000 lvl=info msg="DNS hint" Addr="{IP:129.132.121.175 Port:8041 Zone:}"
t=2025-02-07T09:51:24+0000 lvl=info msg="DHCP hinting done"
t=2025-02-07T09:51:26+0000 lvl=eror msg="Failed to fetch TRCs index from http://[2001:67c:10ec:3544::26]:8041/trcs" err="HTTP request failed: c>
t=2025-02-07T09:51:26+0000 lvl=eror msg="Bootstrapping failed" err="HTTP request failed: context deadline exceeded"
t=2025-02-07T09:51:26+0000 lvl=info msg="=====================> Service stopped bootstrapper"
[email protected]: Main process exited, code=exited, status=1/FAILURE
[email protected]: Failed with result 'exit-code'.
Failed to start [email protected] - SCION Endhost Bootstrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant