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

Restarting edge can lead to "address already in use" errors #45

Open
hamishcoleman opened this issue Jul 16, 2024 · 5 comments · Fixed by #52
Open

Restarting edge can lead to "address already in use" errors #45

hamishcoleman opened this issue Jul 16, 2024 · 5 comments · Fixed by #52
Assignees
Labels
bug Something isn't working

Comments

@hamishcoleman
Copy link
Contributor

The supernode is supposed to keep any address from being reused for a period after the last message from that host. This allows an edge to release the address during a controlled shutdown/restart but also alows a crash stop/start to eventually reuse the address.

During a recent stop/start test in a production environment, it was noted that the "not release" message was still occurring over 5 minutes after the edge was restarted

[src/edge_utils.c:2716] ERROR: authentication error, MAC or IP address already in use or not released yet by supernode
@hamishcoleman hamishcoleman added the bug Something isn't working label Jul 16, 2024
@hamishcoleman hamishcoleman self-assigned this Jul 16, 2024
@VergLsm
Copy link
Contributor

VergLsm commented Oct 13, 2024

I have the same problem.

@hamishcoleman
Copy link
Contributor Author

This error is clearly occuring in more situations than it should be, so it will still be investigated.

That being said, there are a number of actions you can take to make it less impacting - have you seen the FAQ entry?

@hamishcoleman
Copy link
Contributor Author

Silly github, I simply mentioned it in a release, I didnt say "Fixes"

@VergLsm
Copy link
Contributor

VergLsm commented Oct 19, 2024

I have read the FAQs, and it appears that the Supernode does not forget the edge, while the edge continuously throws an 'already in use' error indefinitely.

I am currently using v3.4.1 of n3n. Would it be advisable for me to upgrade to the pre-release v3.4.2?

@hamishcoleman
Copy link
Contributor Author

This release is intended to add some missing expiry logic to the path the supernode is using - so yes, you could test upgrading to it.

However, I have not had a chance to try to trigger the issue with 3.4.2 (I dont have a quick way to reproduce the issue, so I just need to have some time to repeatedly kill off an edge) so I cannot say that the new version is fully tested yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants