ERROR | the item is unexpectedly not pinned on IPFS

My env:
Ubuntu Linux x86_64 x86_64
ipfs version 0.4.17
ipfs-cluster-service version: 0.4.0

I have ipfs cluster with 3 servers with default configuration.
When i upload file to cluster (using proxy):

curl -v “http://localhost:9095/api/v0/add” -F file=@filename

everything seems to be fine :

ipfs-cluster-ctl --debug status QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe

QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe :
> Peer xxxxxxxx1 : PINNED
> Peer xxxxxxxx2 : PINNED
> Peer xxxxxxxx3 : PINNED

But after couple of minutes when i check again it fails:

ipfs-cluster-ctl --debug status QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe

12:56:38.146 DEBUG cluster-ct: Using http(s) to /ip4/127.0.0.1/tcp/9094 app.go:235
12:56:38.146 DEBUG apiclient: GET: http://127.0.0.1:9094/pins/QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe?local=false request.go:14
12:56:38.150 DEBUG apiclient: Response body: {“cid”:“QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe”,“peer_map”:{“xxxxxxx1”:{“cid”:“QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe”,“peer”:“xxxx”,“status”:“pin_error”,“timestamp”:“2018-08-21T11:58:49Z”,“error”:“the item is unexpectedly not pinned on IPFS”},“xxxxxxx2”:{“cid”:“QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe”,“peer”:“xxxx”,“status”:“pin_error”,“timestamp”:“2018-08-21T11:58:55Z”,“error”:“the item is unexpectedly not pinned on IPFS”},“xxxxxxx3”:{“cid”:“QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe”,“peer”:“xxxx”,“status”:“pin_error”,“timestamp”:“2018-08-21T12:03:39Z”,“error”:“the item is unexpectedly not pinned on IPFS”}}}
request.go:18
QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe :
> Peer xxxxxxx1 : ERROR | the item is unexpectedly not pinned on IPFS
> Peer xxxxxxx2 : ERROR | the item is unexpectedly not pinned on IPFS
> Peer xxxxxxx3 : ERROR | the item is unexpectedly not pinned on IPFS

Any suggest how to handle / debug / fix it ?

PS. When i list pinned files (ipfs pin ls) - i see this file on every peer

ipfs pin ls | grep QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe
QmWfvQz47x5eZH1XtMaQZY1HdGmHDNaVfiGu5W6jp9qQNe direct

hi @przemeko, unfortunately this is a bug in 0.4.0.

But it’s been fixed in master, and today or tomorrow in 0.5.0-rc1.

Note that the proxy /add endpoint will now do a “cluster add”. Preliminary changelog: https://github.com/ipfs/ipfs-cluster/blob/fc48578df4b8e30b9d971ab4319c00670937ebf4/CHANGELOG.md

1 Like

@hector sounds great!
Thank You for your time.