Steps to migrate IPFS node to new server

Is it enough to just copy over the entire ~/.ipfs folder to the new server are is there more? Thanks

Thanks. It essentially said rsyncing it over is fine as long as you don’t run the old node.

I did notice when I do a ipfs dht findprovs on one of my shares I see a share by a peer I do not recognize. They don’t show up in findpeer but when I ping them I get this:

Ping error: failed to dial 12D3K...piuz: all dials failed
  * [/ip4/127.94.0.2/tcp/4001] failed to negotiate security protocol: peer id mismatch: expected 12D3K...piuz, but remote key matches 12D3K...hmDi
  * [/ip4/127.94.0.1/udp/4001/quic] CRYPTO_ERROR (0x12a): peer IDs don't match
  * [/ip4/127.94.0.1/tcp/4001] failed to negotiate security protocol: peer id mismatch: expected 12D3K...piuz, but remote key matches 12D3K...hmDi
  * [/ip4/127.0.0.1/udp/4001/quic] CRYPTO_ERROR (0x12a): peer IDs don't match
  * [/ip6/::1/udp/4001/quic] CRYPTO_ERROR (0x12a): peer IDs don't match
  * [/ip4/127.94.0.2/udp/4001/quic] CRYPTO_ERROR (0x12a): peer IDs don't match
  * [/ip4/<<<MY HOME IP>>>/udp/3151/quic] NO_ERROR: Handshake did not complete in time

12D3K...hmDi being my current and previous node.

Somehow the peer is resolving to local addresses, which are useless. In those local addresses your own peer is running so you get these errors.

1 Like