Skip to content

ipfs-cluster Routing not found #222

@ehsan6sha

Description

@ehsan6sha

ipfs-cluster does not add peer to cluster complaininig routing not found, however the underlying ipfs can ping and connect to the peer target:

ubuntu@pool-4:~$ curl -X POST http://127.0.0.1:5001/api/v0/routing/findpeer?arg=12D3KooWScK4y7q6JdCSCNE3RLAwHkzpf1i2o6uiYs4aaFBwYZmS
{"Extra":"","ID":"","Responses":[{"ID":"12D3KooWScK4y7q6JdCSCNE3RLAwHkzpf1i2o6uiYs4aaFBwYZmS","Addrs":["/ip4/45.130.104.233/udp/4001/quic-v1/p2p/12D3KooWNaR6pKmLt93oi3YyfsSRSeLPHMK1utVNpU9rJEmKm5vW/p2p-circuit","/ip4/51.81.243.144/tcp/4001/p2p/12D3KooWPRGH84dHpLedqFqK62m42zcdPV8fCsRStSYJCwZdTeaj/p2p-circuit","/ip6/2604:2dc0:200:f90::/tcp/4001/p2p/12D3KooWPRGH84dHpLedqFqK62m42zcdPV8fCsRStSYJCwZdTeaj/p2p-circuit","/ip4/51.81.243.144/udp/4001/quic-v1/webtransport/certhash/uEiAxM5W30eIsRnIOhmcMmhpDgSm1sTejbWiV004WNSgzJA/certhash/uEiDG2m2_cz0SkmAGZ1eEH2CWkpKujeoW-eRhFkfWJKyRbQ/p2p/12D3KooWPRGH84dHpLedqFqK62m42zcdPV8fCsRStSYJCwZdTeaj/p2p-circuit","/ip6/2604:2dc0:200:f90::/udp/4001/quic-v1/webtransport/certhash/uEiAxM5W30eIsRnIOhmcMmhpDgSm1sTejbWiV004WNSgzJA/certhash/uEiDG2m2_cz0SkmAGZ1eEH2CWkpKujeoW-eRhFkfWJKyRbQ/p2p/12D3KooWPRGH84dHpLedqFqK62m42zcdPV8fCsRStSYJCwZdTeaj/p2p-circuit","/ip6/2604:2dc0:200:f90::/udp/4001/quic-v1/p2p/12D3KooWPRGH84dHpLedqFqK62m42zcdPV8fCsRStSYJCwZdTeaj/p2p-circuit","/ip4/45.130.104.233/udp/4001/quic/p2p/12D3KooWNaR6pKmLt93oi3YyfsSRSeLPHMK1utVNpU9rJEmKm5vW/p2p-circuit","/ip4/51.81.243.144/udp/4001/quic-v1/p2p/12D3KooWPRGH84dHpLedqFqK62m42zcdPV8fCsRStSYJCwZdTeaj/p2p-circuit","/ip4/45.130.104.233/udp/4001/quic-v1/webtransport/certhash/uEiB2C2u0560eYgPa5k7885SbR2qJKtvFPZudGMmgn9KsOw/certhash/uEiAoJUfsbCICrAVv_pokPKNI30bQUnaMM6TiKMRdAEakbQ/p2p/12D3KooWNaR6pKmLt93oi3YyfsSRSeLPHMK1utVNpU9rJEmKm5vW/p2p-circuit"]}],"Type":2}
ubuntu@pool-4:~$ curl -X POST http://127.0.0.1:5001/api/v0/routing/findpeer -H "Content-Type: application/json" -d '{"peer_id":"12D3K
ooWScK4y7q6JdCSCNE3RLAwHkzpf1i2o6uiYs4aaFBwYZmS"}'
argument "peerID" is required
ubuntu@pool-4:~$ curl -X POST http://127.0.0.1:9094/peers -H "Content-Type: application/json" -d '{"peer_id":"12D3KooWScK4y7q6JdCSCNE3RLAwHkzpf1i2o6uiYs4aaFBwYZmS"}'
{"code":500,"message":"routing: not found"}

We do not have any code that directly calls this, but hte issue was that when a new peer was added to the pool, ipfs cluster was not showing it as peers, so I think this is the underlying cause of htat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions