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

fix: Troubleshooting too many local IP allocation failure logs #2996

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elecbug
Copy link

@elecbug elecbug commented Oct 8, 2024

Currently log systems periodically generate too many local IPv6 route failure messages.
It repeats the same content and only grows the size of the log.
Unless there are changes, the local IP binding failure message has been modified to occur only once.

@MarcoPolo
Copy link
Collaborator

What's the error you see?

@elecbug
Copy link
Author

elecbug commented Oct 8, 2024

What's the error you see?

{"level":"debug","ts":"2024-09-06T02:24:26.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:24:31.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:24:36.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:24:41.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:24:46.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:24:51.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:24:56.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:01.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:06.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:11.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:16.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:21.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:26.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:31.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:36.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:41.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:46.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:51.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:25:56.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:01.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:06.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:11.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:16.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:21.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:26.310Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:31.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:36.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:41.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}
{"level":"debug","ts":"2024-09-06T02:26:46.311Z","logger":"basichost","caller":"basic/basic_host.go:380","msg":"failed to fetch local IPv6 address","error":"no route found for ::"}

This is the log I collected in the past, and if it cannot be bound to IPv6, an unnecessary amount of the same log is repeated infinitely. I thought this was a kind of problem, so I presented this PR.

@elecbug elecbug changed the base branch from master to base-host October 9, 2024 01:11
@elecbug elecbug changed the base branch from base-host to master October 9, 2024 01:11
@elecbug elecbug deleted the branch libp2p:master October 9, 2024 01:41
@elecbug elecbug closed this Oct 9, 2024
@elecbug elecbug deleted the master branch October 9, 2024 01:41
@elecbug elecbug restored the master branch October 9, 2024 01:48
@elecbug elecbug reopened this Oct 9, 2024
@elecbug elecbug changed the title feat: Troubleshooting Too Many Local IP Allocation Failure Logs fix: Troubleshooting too many local IP allocation failure logs Oct 9, 2024
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.

2 participants