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

bitswap: BNs + LNs seeing tons of bitswap stream resets #3099

Open
renaynay opened this issue Jan 12, 2024 · 4 comments
Open

bitswap: BNs + LNs seeing tons of bitswap stream resets #3099

renaynay opened this issue Jan 12, 2024 · 4 comments
Assignees
Labels
area:p2p bug Something isn't working

Comments

@renaynay
Copy link
Member

Seeing these logs quite frequently, both on BNs and LNs on mainnet (dating back to versions below v0.12.3)

2024-01-11T15:13:41.755Z        INFO    bitswap-server  server/server.go:547    Bitswap Client ReceiveError: stream reset
2024-01-11T15:13:41.762Z        INFO    bitswap-server  server/server.go:547    Bitswap Client ReceiveError: stream reset
2024-01-11T15:13:41.763Z        INFO    bitswap-server  server/server.go:547    Bitswap Client ReceiveError: stream reset

Weird considering it's a "client" error and BNs are seeing it.

@renaynay renaynay added bug Something isn't working area:p2p labels Jan 12, 2024
@Wondertan
Copy link
Member

Weird considering it's a "client" error and BNs are seeing it.

Is it? The log says its bitswap-server

@renaynay
Copy link
Member Author

Yeah i see that it's coming from the server component but why is the error Bitswap Client ReceiveError ?

@Wondertan
Copy link
Member

They might meant its coming "from a client" cc @Jorropo

The stream reset might come from multiple sources, and it is hard to know what's causing this. I think we need more bit swap server debug logs or info from the client side to continue debugging this.

@Jorropo
Copy link
Contributor

Jorropo commented Jan 15, 2024

> git grep "Bitswap Client ReceiveError"
bitswap/bitswap.go:     log.Infof("Bitswap Client ReceiveError: %s", err)
bitswap/client/client.go:       log.Infof("Bitswap Client ReceiveError: %s", err)
bitswap/server/server.go:       log.Infof("Bitswap Client ReceiveError: %s", err)

There used to only be one of them, but I copy pasted code around when splitting the server and client objects and didn't noticed this log message, it should be fixed.
If the logger says it's server then it's server.

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

No branches or pull requests

4 participants