Open vdamle opened 3 years ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
Hello @aschmahmann , we were looking at a couple other issues:
Could you please take a look and advise if we can help gather any further information from our setup that may help troubleshoot this? Thanks!
I turned on DEBUG
level logs on both nodes in a separate re-create of this issue. It appears that the following happens:
Node2
sends a broadcast: broadcastWantHaves
and tries to findProviders
for CIDNode1
receives the type: 3 Message_GET_PROVIDERS
message from Node2
and responds.Node2
receives Node1
's response and recognizes that a peer has the content it is looking for.Node2
never generates a WANT_HAVE
message to Node1
.2021-08-19T16:28:05.983Z ^[[35mDEBUG^[[0m bitswap providerquerymanager/providerquerymanager.go:323 New Provider Query on cid: Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd
2021-08-19T16:28:05.983Z ^[[35mDEBUG^[[0m bs:sess session/session.go:466 broadcastWantHaves {"session": 1, "cids": [{"/":"Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd"}]}
2021-08-19T16:28:05.983Z ^[[35mDEBUG^[[0m bitswap providerquerymanager/providerquerymanager.go:230 Beginning Find Provider Request for cid: Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd
2021-08-19T16:28:05.983Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/routing.go:502 finding providers {"cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "mh": "bciqmp4cuzucgqyukt2fkmke3dyhgcmsco4sau76miv7mlkqsrrdgnga"}
2021-08-19T16:28:05.983Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/routing.go:502 finding providers {"cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "mh": "bciqmp4cuzucgqyukt2fkmke3dyhgcmsco4sau76miv7mlkqsrrdgnga"}
2021-08-19T16:28:05.984Z ^[[35mDEBUG^[[0m bitswap providerquerymanager/providerquerymanager.go:323 Received provider (QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN) for cid (Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd)
2021-08-19T16:28:05.985Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/routing.go:550 1 provider entries
2021-08-19T16:28:05.985Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/routing.go:555 got provider: {QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN: [/ip4/10.2.73.192/tcp/4001 /ip4/127.0.0.1/tcp/4001]}
2021-08-19T16:28:05.985Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/routing.go:572 got closer peers: 0 []
2021-08-19T16:28:05.985Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/dht.go:628 peer found {"peer": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN"}
2021-08-19T16:28:05.985Z ^[[35mDEBUG^[[0m addrutil go-addr-util@v0.0.2/addr.go:64 adding resolved addr:/ip4/0.0.0.0/tcp/4001 /ip4/10.2.95.245/tcp/4001 [/ip4/10.2.95.245/tcp/4001]
2021-08-19T16:28:05.985Z ^[[35mDEBUG^[[0m addrutil go-addr-util@v0.0.2/addr.go:64 adding resolved addr:/ip4/0.0.0.0/tcp/4001 /ip4/127.0.0.1/tcp/4001 [/ip4/10.2.95.245/tcp/4001 /ip4/127.0.0.1/tcp/4001]
2021-08-19T16:28:05.985Z ^[[35mDEBUG^[[0m addrutil go-addr-util@v0.0.2/addr.go:109 ResolveUnspecifiedAddresses:[/p2p-circuit /ip4/0.0.0.0/tcp/4001 /ip6/::/tcp/4001] [/ip4/10.2.95.245 /ip4/127.0.0.1] [/p2p-circuit /ip4/10.2.95.245/tcp/4001 /ip4/127.0.0.1/tcp/4001]
2021-08-19T16:28:05.985Z ^[[35mDEBUG^[[0m bitswap providerquerymanager/providerquerymanager.go:323 Finished Provider Query on cid: Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd
2021-08-19T16:28:05.984Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/dht.go:628 peer found {"peer": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm"}
2021-08-19T16:28:05.984Z ^[[35mDEBUG^[[0m addrutil go-addr-util@v0.0.2/addr.go:64 adding resolved addr:/ip4/0.0.0.0/tcp/4001 /ip4/10.2.73.192/tcp/4001 [/ip4/10.2.73.192/tcp/4001]
2021-08-19T16:28:05.984Z ^[[35mDEBUG^[[0m addrutil go-addr-util@v0.0.2/addr.go:64 adding resolved addr:/ip4/0.0.0.0/tcp/4001 /ip4/127.0.0.1/tcp/4001 [/ip4/10.2.73.192/tcp/4001 /ip4/127.0.0.1/tcp/4001]
2021-08-19T16:28:05.984Z ^[[35mDEBUG^[[0m addrutil go-addr-util@v0.0.2/addr.go:109 ResolveUnspecifiedAddresses:[/p2p-circuit /ip4/0.0.0.0/tcp/4001 /ip6/::/tcp/4001] [/ip4/10.2.73.192 /ip4/127.0.0.1] [/p2p-circuit /ip4/10.2.73.192/tcp/4001 /ip4/127.0.0.1/tcp/4001]
2021-08-19T16:28:05.984Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/dht_net.go:116 handling message {"from": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "type": 3, "key": "EiDH8FTNBGhiip6KpiibHg5hMkJ3JAp/zEV+xaoSjEZmmA=="}
2021-08-19T16:28:05.984Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/dht_net.go:133 handled message {"from": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "type": 3, "key": "EiDH8FTNBGhiip6KpiibHg5hMkJ3JAp/zEV+xaoSjEZmmA==", "time": 0.000397602}
2021-08-19T16:28:05.984Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/dht_net.go:159 responded to message {"from": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "type": 3, "key": "EiDH8FTNBGhiip6KpiibHg5hMkJ3JAp/zEV+xaoSjEZmmA==", "time": 0.000424566}
Node2
generates a WANT_HAVE
message with the CID, as a result of which Node1
goes in search of the blocks locally, finds it and then streams it to Node2
.2021-08-19T18:08:11.422Z ^[[35mDEBUG^[[0m blockservice go-blockservice@v0.1.4/blockservice.go:238 Blockservice: Searching bitswap
2021-08-19T18:08:11.422Z ^[[35mDEBUG^[[0m bitswap getter/getter.go:80 Bitswap.GetBlockRequest.Start {"cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd"}
2021-08-19T18:08:11.422Z ^[[34mINFO^[[0m bs:sess session/session.go:459 No peers - broadcasting {"session": 4, "want-count": 1}
2021-08-19T18:08:11.479Z ^[[35mDEBUG^[[0m bs:sess session/session.go:466 broadcastWantHaves {"session": 4, "cids": [{"/":"Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd"}]}
2021-08-19T18:08:11.481Z ^[[35mDEBUG^[[0m swarm2 go-libp2p-swarm@v0.5.0/swarm.go:344 [QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm] opening stream to peer [QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN]
2021-08-19T18:08:11.481Z ^[[35mDEBUG^[[0m bitswap messagequeue/messagequeue.go:637 sent message {"type": "WANT_HAVE", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "local": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "to": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN"}
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m basichost basic/basic_host.go:419 protocol negotiation took 195.567µs
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m bitswap_network network/ipfs_impl.go:404 bitswap net handleNewStream from QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m bs:sess session/session.go:223 Bitswap <- HAVE {"local": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "from": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "session": 4}
2021-08-19T18:08:11.493Z ^[[35mDEBUG^[[0m bs:sprmgr sessionpeermanager/sessionpeermanager.go:68 Bitswap: Added peer to session {"session": 4, "peer": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "peerCount": 1}
2021-08-19T18:08:11.494Z ^[[35mDEBUG^[[0m bitswap messagequeue/messagequeue.go:644 sent message {"type": "WANT_BLOCK", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "local": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "to": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN"}
2021-08-19T18:08:11.500Z ^[[35mDEBUG^[[0m basichost basic/basic_host.go:419 protocol negotiation took 67.01µs
2021-08-19T18:08:11.500Z ^[[35mDEBUG^[[0m bitswap_network network/ipfs_impl.go:404 bitswap net handleNewStream from QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN
2021-08-19T18:08:11.500Z ^[[35mDEBUG^[[0m bitswap go-bitswap@v0.3.4/bitswap.go:457 [recv] block; cid=Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd, peer=QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN
2021-08-19T18:08:11.518Z ^[[34mINFO^[[0m bitswap messagequeue/messagequeue.go:210 Bitswap: timeout waiting for blocks {"cids": [{"/":"Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd"}], "peer": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN"}
2021-08-19T18:08:11.518Z ^[[35mDEBUG^[[0m bs:sess session/session.go:226 Bitswap <- DONT_HAVE {"local": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "from": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "session": 4}
2021-08-19T18:08:11.618Z ^[[35mDEBUG^[[0m bs:sess session/session.go:220 Bitswap <- block {"local": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "from": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "session": 4}
2021-08-19T18:08:11.618Z ^[[35mDEBUG^[[0m engine decision/engine.go:577 Bitswap engine <- block {"local": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "from": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "size": 1381}
2021-08-19T18:08:11.618Z ^[[35mDEBUG^[[0m bitswap go-bitswap@v0.3.4/bitswap.go:428 Bitswap.GetBlockRequest.End {"cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd"}
2021-08-19T18:08:11.618Z ^[[35mDEBUG^[[0m bitswap go-bitswap@v0.3.4/workers.go:173 Bitswap.ProvideWorker.Loop
2021-08-19T18:08:11.482Z ^[[35mDEBUG^[[0m bitswap_network network/ipfs_impl.go:404 bitswap net handleNewStream from QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm
2021-08-19T18:08:11.482Z ^[[35mDEBUG^[[0m engine decision/engine.go:424 Bitswap engine <- msg {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "from": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "entryCount": 1}
2021-08-19T18:08:11.482Z ^[[35mDEBUG^[[0m engine decision/engine.go:428 Bitswap engine <- want-have {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "from": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd"}
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m engine decision/ledger.go:32 peer QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm wants Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m engine decision/engine.go:517 Bitswap engine: block found {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "from": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "isWantBlock": false}
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m engine decision/engine.go:330 Bitswap process tasks {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "taskCount": 1}
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m engine decision/engine.go:383 Bitswap engine -> msg {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "to": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "blockCount": 0, "presenceCount": 1, "size": 36}
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m swarm2 go-libp2p-swarm@v0.5.0/swarm.go:344 [QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN] opening stream to peer [QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm]
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m bitswap go-bitswap@v0.3.4/workers.go:83 sent message {"type": "HAVE", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "to": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm"}
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m bitswap go-bitswap@v0.3.4/workers.go:137 sent message {"peer": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm"}
2021-08-19T18:08:11.492Z ^[[35mDEBUG^[[0m bitswap go-bitswap@v0.3.4/workers.go:46 Bitswap.TaskWorker.Loop {"ID": 4}
2021-08-19T18:08:11.495Z ^[[35mDEBUG^[[0m bitswap_network network/ipfs_impl.go:404 bitswap net handleNewStream from QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm
2021-08-19T18:08:11.495Z ^[[35mDEBUG^[[0m engine decision/engine.go:424 Bitswap engine <- msg {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "from": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "entryCount": 1}
2021-08-19T18:08:11.495Z ^[[35mDEBUG^[[0m engine decision/engine.go:430 Bitswap engine <- want-block {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "from": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd"}
2021-08-19T18:08:11.495Z ^[[35mDEBUG^[[0m engine decision/ledger.go:32 peer QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm wants Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd
2021-08-19T18:08:11.495Z ^[[35mDEBUG^[[0m engine decision/engine.go:517 Bitswap engine: block found {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "from": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "isWantBlock": true}
2021-08-19T18:08:11.495Z ^[[35mDEBUG^[[0m engine decision/engine.go:330 Bitswap process tasks {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "taskCount": 1}
2021-08-19T18:08:11.500Z ^[[35mDEBUG^[[0m engine decision/engine.go:383 Bitswap engine -> msg {"local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "to": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm", "blockCount": 1, "presenceCount": 0, "size": 1381}
2021-08-19T18:08:11.500Z ^[[35mDEBUG^[[0m swarm2 go-libp2p-swarm@v0.5.0/swarm.go:344 [QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN] opening stream to peer [QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm]
2021-08-19T18:08:11.500Z ^[[35mDEBUG^[[0m bitswap go-bitswap@v0.3.4/workers.go:102 sent message {"type": "BLOCK", "cid": "Qmbo8PfVs4WWanjFPMboP8Gx5hunN1Tn5kLMmhvB3L1LVd", "local": "QmUAE47723v3bXjYurnQUbH6EpzhfN38mGTATu6VgrygGN", "to": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm"}
2021-08-19T18:08:11.500Z ^[[35mDEBUG^[[0m bitswap go-bitswap@v0.3.4/workers.go:137 sent message {"peer": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm"}
2021-08-19T18:08:11.500Z ^[[35mDEBUG^[[0m bitswap go-bitswap@v0.3.4/workers.go:46 Bitswap.TaskWorker.Loop {"ID": 6}
2021-08-19T18:08:11.620Z ^[[35mDEBUG^[[0m dht go-libp2p-kad-dht@v0.12.2/dht.go:628 peer found {"peer": "QmZfrjDiCE3CwGhVHWWSadChbGuMDWcpXTjGbdgM29qpYm"}
To evaluate this we need someone who has high-level awareness of whether this is a content -routing or bitswap issue. go-ipfs maintainers are currently strapped and I don't have a commitment on when we can investigate this further.
Checklist
Installation method
third-party binary
Version
Config
Description
I've got a 2 node private network with
Node 1
designated as bootstrap node. After the nodes are up and running, I upload a text file using the web UI onNode 1
and I canipfs cat QmcD4SAMXhr4Upko9eC5XKDuGYyP2Q4GRYindJEE3qmesH
the content onNode 1
, but the same command hangs onNode 2
.When checking the output of
ipfs stats
, we observed that:Node 2
lists 0 partners andNode 1
lists 1 partneripfs bitswap reprovide
onNode 1
but that did not help.