ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.2k stars 3.03k forks source link

websocket: failed to close network connection: close tcp #10416

Closed phpmac closed 3 months ago

phpmac commented 7 months ago

Checklist

Installation method

ipfs-desktop

Version

No response

Config

No response

Description

[a](http://23.95.11.66:3000/projects/a)
/

ipfs

APP
CPU 0.4%
Memory 410.8 MB
Network I/O 244.1 MB / 158.8 MB
Edit to pin a message for this service
initializing IPFS node at /data/ipfs
Initializing daemon...
Kubo version: 0.28.0-e7f0f34
Repo version: 15
System version: amd64/linux
Golang version: go1.22.2
2024/05/04 18:58:32 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
Swarm listening on /ip4/10.0.1.174/tcp/4001
Swarm listening on /ip4/10.0.1.174/udp/4001/quic-v1
Swarm listening on /ip4/10.0.1.174/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm listening on /ip4/10.0.2.129/tcp/4001
Swarm listening on /ip4/10.0.2.129/udp/4001/quic-v1
Swarm listening on /ip4/10.0.2.129/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/127.0.0.1/udp/4001/quic-v1
Swarm listening on /ip4/127.0.0.1/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm listening on /ip4/172.19.0.20/tcp/4001
Swarm listening on /ip4/172.19.0.20/udp/4001/quic-v1
Swarm listening on /ip4/172.19.0.20/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/127.0.0.1/udp/4001/quic-v1
Swarm announcing /ip4/127.0.0.1/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm announcing /ip4/172.19.0.20/tcp/4001
Swarm announcing /ip4/172.19.0.20/udp/4001/quic-v1
Swarm announcing /ip4/172.19.0.20/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm announcing /ip4/23.95.11.66/udp/32980/quic-v1
Swarm announcing /ip4/23.95.11.66/udp/32980/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
RPC API server listening on /ip4/0.0.0.0/tcp/5001
WebUI: http://0.0.0.0:5001/webui
Gateway server listening on /ip4/0.0.0.0/tcp/8080
Daemon is ready
2024/05/04 18:58:56 websocket: failed to close network connection: close tcp 172.19.0.15:57232->145.40.118.135:443: use of closed network connection
2024/05/04 18:59:38 websocket: failed to close network connection: close tcp 172.19.0.20:58760->145.40.118.135:443: use of closed network connection
2024/05/04 19:00:47 websocket: failed to close network connection: close tcp 172.19.0.20:45834->172.64.144.159:443: use of closed network connection
2024/05/04 19:01:39 websocket: failed to close network connection: close tcp 172.19.0.20:43902->145.40.118.135:443: use of closed network connection
2024/05/04 19:02:04 websocket: failed to close network connection: close tcp 172.19.0.15:35512->145.40.118.135:443: use of closed network connection
2024/05/04 19:02:27 websocket: failed to close network connection: close tcp 172.19.0.20:56978->145.40.118.135:443: use of closed network connection
2024/05/04 19:04:11 websocket: failed to close network connection: close tcp 172.19.0.15:37282->145.40.118.135:443: use of closed network connection
2024/05/04 19:05:23 websocket: failed to close network connection: close tcp 172.19.0.15:33652->145.40.118.135:443: use of closed network connection
Changing user to ipfs
ipfs version 0.28.0
Found IPFS fs-repo at /data/ipfs
Initializing daemon...
Error: lock /data/ipfs/repo.lock: someone else has the lock
Kubo version: 0.28.0-e7f0f34
Repo version: 15
System version: amd64/linux
Golang version: go1.22.2

Use
+
K
to trigger search

Logs
Lines
50
initializing IPFS node at /data/ipfs
Initializing daemon...
Kubo version: 0.28.0-e7f0f34
Repo version: 15
System version: amd64/linux
Golang version: go1.22.2
2024/05/04 18:58:32 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
Swarm listening on /ip4/10.0.1.174/tcp/4001
Swarm listening on /ip4/10.0.1.174/udp/4001/quic-v1
Swarm listening on /ip4/10.0.1.174/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm listening on /ip4/10.0.2.129/tcp/4001
Swarm listening on /ip4/10.0.2.129/udp/4001/quic-v1
Swarm listening on /ip4/10.0.2.129/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/127.0.0.1/udp/4001/quic-v1
Swarm listening on /ip4/127.0.0.1/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm listening on /ip4/172.19.0.20/tcp/4001
Swarm listening on /ip4/172.19.0.20/udp/4001/quic-v1
Swarm listening on /ip4/172.19.0.20/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/127.0.0.1/udp/4001/quic-v1
Swarm announcing /ip4/127.0.0.1/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm announcing /ip4/172.19.0.20/tcp/4001
Swarm announcing /ip4/172.19.0.20/udp/4001/quic-v1
Swarm announcing /ip4/172.19.0.20/udp/4001/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
Swarm announcing /ip4/23.95.11.66/udp/32980/quic-v1
Swarm announcing /ip4/23.95.11.66/udp/32980/quic-v1/webtransport/certhash/uEiBC1lPftzpyh1tTvr_DmNbimm5r3TRhYrS6B3oB6hDInA/certhash/uEiDtaSGsb2bB2cqNMhCWw5rwGwbrK1eA1DAEqYfA5XyguQ
RPC API server listening on /ip4/0.0.0.0/tcp/5001
WebUI: http://0.0.0.0:5001/webui
Gateway server listening on /ip4/0.0.0.0/tcp/8080
Daemon is ready
2024/05/04 18:58:56 websocket: failed to close network connection: close tcp 172.19.0.15:57232->145.40.118.135:443: use of closed network connection
2024/05/04 18:59:38 websocket: failed to close network connection: close tcp 172.19.0.20:58760->145.40.118.135:443: use of closed network connection
2024/05/04 19:00:47 websocket: failed to close network connection: close tcp 172.19.0.20:45834->172.64.144.159:443: use of closed network connection
2024/05/04 19:01:39 websocket: failed to close network connection: close tcp 172.19.0.20:43902->145.40.118.135:443: use of closed network connection
2024/05/04 19:02:04 websocket: failed to close network connection: close tcp 172.19.0.15:35512->145.40.118.135:443: use of closed network connection
2024/05/04 19:02:27 websocket: failed to close network connection: close tcp 172.19.0.20:56978->145.40.118.135:443: use of closed network connection
2024/05/04 19:04:11 websocket: failed to close network connection: close tcp 172.19.0.15:37282->145.40.118.135:443: use of closed network connection
2024/05/04 19:05:23 websocket: failed to close network connection: close tcp 172.19.0.15:33652->145.40.118.135:443: use of closed network connection
Changing user to ipfs
ipfs version 0.28.0
Found IPFS fs-repo at /data/ipfs
Initializing daemon...
Error: lock /data/ipfs/repo.lock: someone else has the lock
Kubo version: 0.28.0-e7f0f34
Repo version: 15
System version: amd64/linux
Golang version: go1.22.2
pablomendezroyo commented 7 months ago

Can someone give more context about the criticality of this issue, please?

aschmahmann commented 7 months ago

This bug here seems to be obnoxious logging rather than some other underlying issue. It's going to be reverted in the next go-libp2p release (and will get propagated into the following kubo release) https://github.com/libp2p/go-libp2p/issues/2762.

phpmac commented 7 months ago

I built the error with docker. You can try it.

If I need to provide detailed information, it will be a few days later.

2024 年 5 月 6 日星期一 20:04, pablomendezroyo @.***(mailto:2024 年 5 月 6 日星期一 20:04, pablomendezroyo < 来信:

Can someone give more context about the criticality of this issue, please?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

darshsingh116 commented 6 months ago

image Basically ipfs is trying to close a port which has already terminated by itself or some other reason.. also stopping ipfs deamon is not closing the ports properly i think (use netstat to see). After restarting pc , launching ipfs daemon , adding a file , ipfs.io works fine for few minutes or few tries.. after that 504 Gateway timeout it gives on any further uploads. My theory is that the ports binding is not good and is lost resulting misbehaviour after few tries/minutes for launching ipfs for first time after restarting pc.

lidel commented 5 months ago

This should be fixed in v0.29

Ref. https://github.com/ipfs/kubo/releases/tag/v0.29.0

wenyue commented 5 months ago

Not fixed yet, still have the bug.

lidel commented 5 months ago

Indeed, the upstream project had some hiccups. Reopening as we need https://github.com/libp2p/go-libp2p/pull/2861

Tuanm commented 4 months ago

Still faced this issue when using Kubo (containerized in version 0.29.0-3f0947b).