ChainSafe/js-libp2p-yamux

muxer closed locally

bakhshandeh opened this issue · 3 comments

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?

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

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.

closing as stale