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

muxer closed locally #55

Open
bakhshandeh opened this issue May 31, 2023 · 2 comments
Open

muxer closed locally #55

bakhshandeh opened this issue May 31, 2023 · 2 comments

Comments

@bakhshandeh
Copy link

We have a network of libp2p nodes. All of the nodes run on public IPs and a fixed port.
Sometimes some of the nodes throw this error and the connection between them gets disconnected.

CodeError: muxer closed locally
YamuxMuxer.newStream (file:///root/node_modules/@chainsafe/libp2p-yamux/src/muxer.ts:172:13)
ConnectionImpl.newStream [as _newStream] (file:///root/node_modules/libp2p/src/upgrader.ts:437:41)
ConnectionImpl.newStream (file:///root/node_modules/libp2p/src/connection/index.ts:117:31)
EventTarget.dialProtocol (file:///root/node_modules/libp2p/src/libp2p.ts:299:23)

Each node is a Node.js process and it may sometimes restart.
The error throws here:

throw new CodeError('muxer closed locally', ERR_MUXER_LOCAL_CLOSED)

and value of this.localGoAway is NormalTermination.

Is this an issue on yamux or libp2p?

@bakhshandeh
Copy link
Author

"@chainsafe/libp2p-yamux": "^4.0.1"
"libp2p": "^0.45.2",

@maschad
Copy link
Contributor

maschad commented May 31, 2023

The value of this.localGoAway being NormalTermination suggests that it's not an error with the muxer as this is a regular termination whilst dialling. It perhaps is a connection error, could you raise an issue on js-libp2p using our issue template so that we can get some more info please.

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

No branches or pull requests

3 participants