-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Relay does not work on v0.41.1 #3290
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
Comments
I went back to v0.39.1 and the connection was immediately established. The bug is on the client side that wants to connect. Since the other applications were with 0.41.1 Maybe it's because of changes in the holepunch algorithm. Since access to the second gray ip was through holepunch. |
Can you git bisect the commits to narrow down the issue? If not, could you give us a way to reproduce this issue? Ideally in a controlled environment like docker compose. |
@MarcoPolo A way to reproduce: And I don't use a docker. Because I'm a programmer. This is really very difficult to prove and demonstrate. Because this is the most difficult case. |
@master255 please add some debug logs _ = golog.SetLogLevel("autonatv2", "debug")
_ = golog.SetLogLevel("autonat", "debug")
_ = golog.SetLogLevel("p2p-holepunch", "debug")
_ = golog.SetLogLevel("relay", "debug")
_ = golog.SetLogLevel("nat", "debug")
_ = golog.SetLogLevel("p2p-circuit", "debug")
_ = golog.SetLogLevel("basichost", "debug")
_ = golog.SetLogLevel("swarm2", "debug")
_ = golog.SetLogLevel("autorelay", "debug")
_ = golog.SetLogLevel("net/identify", "debug")
_ = golog.SetLogLevel("tcp-tpt", "debug") |
My Libp2p creation:
|
I'll take those logs down on the next update. So far I don't have this problem because I removed some functionality from the library. |
@sukunrt @MarcoPolo
Relay doesn't work on 0.41.1.
I am trying to connect from gray ip -> white ip (Relay) -> gray ip.
At the same time white ip (Relay) -> gray ip connection exists.
The connection from gray ip -> white ip (Relay) is also exist.
But connection from gray ip -> white ip (Relay) -> gray ip does not pass. Although reservation on white ip (Relay) exists.
I looked at debug logs. Found that it immediately returns an error with the id of the node of the white ip address:
“skipping node that we recently failed to obtain a reservation with....”.
But before that there is no reservation error. And reservation is definitely exist. And there are several nodes with reservation.
Reservation by client.Reserve command
Is there a bug somewhere or am I doing something wrong?
The text was updated successfully, but these errors were encountered: