# Ipfs-cluster per add throws "routing: not found"

**URL:** <https://discuss.ipfs.tech/t/ipfs-cluster-per-add-throws-routing-not-found/17730>\
**Category:** IPFS Cluster\
**Tags:** ipfs-cluster\
**Created:** [March 19, 2024, 2:47pm UTC](https://discuss.ipfs.tech/t/ipfs-cluster-per-add-throws-routing-not-found/17730 "2024-03-19T14:47:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehsan6sha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ehsan6sha/32/4639_2.png) [@ehsan6sha](https://discuss.ipfs.tech/u/ehsan6sha)\
**Post date:** [March 19, 2024, 2:47pm UTC](https://discuss.ipfs.tech/t/ipfs-cluster-per-add-throws-routing-not-found/17730/1 "2024-03-19T14:47:52Z")

</div>

Hi  
When a new peer joins the cluster I created, it is not shown in the peers list. so I tried to manually add the peer by calling:

```auto
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"}

```

But the error is thrown. However the underlying IPFS can connect to the peer with no issue:

```auto
curl -X POST "http://127.0.0.1:5001/api/v0/swarm/connect?arg=/ip4/51.81.243.144/tcp/4001/p2p/12D3KooWPRGH84dHpLedqFq
K62m42zcdPV8fCsRStSYJCwZdTeaj/p2p-circuit/p2p/12D3KooWScK4y7q6JdCSCNE3RLAwHkzpf1i2o6uiYs4aaFBwYZmS"
{"Strings":["connect 12D3KooWScK4y7q6JdCSCNE3RLAwHkzpf1i2o6uiYs4aaFBwYZmS success"]}

```

Anything I am missing here?

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [March 19, 2024, 5:13pm UTC](https://discuss.ipfs.tech/t/ipfs-cluster-per-add-throws-routing-not-found/17730/2 "2024-03-19T17:13:28Z")

</div>

It seems you are re-using peer IDs when normally the IPFS and the cluster peer IDs would be different.

Secondly, the “peer add” method is undocumented for a reason, it is a legacy endpoint that was used with Raft. You need to configure your peers with a peerstore file ([Download and setup - Pinset orchestration for IPFS](https://ipfscluster.io/documentation/deployment/setup/#the-peerstore-file)) or start the cluster with `--bootstrap` and the cluster peer multiaddress of other cluster peer, so that each peer has some information of who to talk to and can discover the rest.

Finally, please check that there is connectivity to the cluster-swarm ports (tcp:9096 iirc).
