From @cerberusaeon on Sat Jun 11 2016 17:18:03 GMT+0000 (UTC)
I just added a file to ipfs. It should be available at the following URI but never appears to resolve. My ipfs version is 0.4.2 (same as the gateway). I was following the demo, am I missing something?
From @VictorBjelkholm on Tue Nov 22 2016 11:55:20 GMT+0000 (UTC)
@norzak are you connected to other peers? You should be able to see that if you run ipfs swarm peers. Also, could be that the gateways can’t fetch the content for the hash you’re trying to load. Do you happen to know where the hash come from and if someone is seeding it?
It appeared that I was able to successfully add a file using the node.files.add() method, and I received the following hash as part of the response: QmYWxNNP3tUp5FSLZgAvQLzqcL3ER19aECAr1EqHoPudLp
However, when I try to retrieve the file using .files.cat(hash), nothing happens. No error, nothing. I have also tried to access the file from the command line and from the public gateway - http://gateway.ipfs.io/ipfs/QmYWxNNP3tUp5FSLZgAvQLzqcL3ER19aECAr1EqHoPudLp - no joy. It just sits and spins. Any thoughts?
❯ curl -o TEST https://ipfs.io/ipfs/QmYWxNNP3tUp5FSLZgAvQLzqcL3ER19aECAr1EqHoPudLp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:05:47 --:--:-- 0
Usually, you’ll get the total filesize pretty quickly, even if the gateway doesn’t have the (complete) file yet. So it seems that you’ve added the file to the IPFS using your in-browser node, but it isn’t seeding it to the network. (No daemon?)
Thanks, Jay. How could I tell if there was a daemon running? Assuming there isn’t, how would I fire one up in the browser so that the file gets seeded?
I had a similar problem with my IPFS redirect userscript, and @lidel had a great solution, namely to check whether a png in the WebUI can be accessed or not, meaning IPFS daemon is enabled or not. See here:
How to enable the daemon in the browser, I don’t yet know. Maybe someone can chime in.