Seems like I have a similar issue, messing with this two days already and I’ll be very very grateful for help.
I’m playing with ipfs-cluster and its pins do not work well.
pin_timeout is set to
30m in ipfs-cluster config.
ipfs add <file>
ipfs-cluster-ctl pin add <hash>
ipfs-cluster-ctl status says that it’s
PINNED on the node that executes these commands, but it remains
PINNING on the other node, typically ending up with the following message in the other node’s log:
09:20:54.539 ERROR ipfshttp: error posting to IPFS:Post http://127.0.0.1:5001/api/v0/refs?arg=QmZT5FuxLk2CbH7415qn7dZsfnR5to142k1FaNMdp8X4Cv&recursive=true: context deadline exceeded ipfshttp.go:775
09:20:54.540 ERROR p2p-gorpc: Post http://127.0.0.1:5001/api/v0/refs?arg=QmZT5FuxLk2CbH7415qn7dZsfnR5to142k1FaNMdp8X4Cv&recursive=true: context deadline exceeded client.go:245
Only once it went through, but I suppose that the file was taken from the public nodes, since the file’s content was as simple as
I googled a bit and figured out that nodes should be able to see each other in the swarm.
But when I try to connect with
ipfs -D swarm connect /ip4/<ip>/tcp/4001/ipfs/<hash>
I get this:
Error: connect <hash> failure: dial attempt failed: failed to dial <peer.ID eXAr9a> (default failure)
Instantly, and ipfs -D gives nothing too.
Meanwhile the firewalls seems to be OK, no rules at iptables, and when I do
nc -v <ip> 4001
Connection to <ip> 4001 port [tcp/*] succeeded!
And I get
Connection refused for closed ports. Though, no
/multistream/1.0.0 message appears event in debug mode.
Any ideas what could be wrong with the swarm connection, and could it affect cluster pinning?