Search code examples
ipfs

Can not access file in ipfs


In my ubuntu 18.04 ipfs desktop client i have uploaded a file. But can not access the file with link, which i obtained from Share link option.

enter image description here

Here is my shareable link.

I can not access the other file too, link.

why is this happening?


Solution

  • To keep a file available in the Peer2Peer IPFS system the file mus have been pinned. Remember to pin the files you want to keep available even when your computer is not Peering the file and for longer times.


    I'm new to IPFS and found your Stack Overflow question when trying to figure out how to solve the same problem. In my experience I had uploaded a File in the IPFS and it had been reachable over the share link for a period of time until today when it wasn't.

    So, after some research I got it working again when I pinned the file. This Medium article was a good read. In the screenshot you provided I can see that only one of the files are pinned, not the one you shared the link to. Most likely the problem will be fixed after you pinned it. This can be done through the client or Terminal commands (see the medium article to learn more about those).

    Best of luck!