I have this 2 sites link1, link2. When I didn’t visited my sites for a long time (1-2 months), ipfs.io was not able to load them.
The server was up, ipfs daemon was running. After I started some diagnostics (for example
ipfs stats bitswap,
ipfs stats bw,
ipfs stats dht), the site loaded.
I think, it was not about the commands that I ran, but about the thing that the IPFS peers started to discover the network for the given files, peers added the CIDs to their wantlist.
I would like to understand what was happening here. What can cause this? Is it possible, that my IPFS peer does not advertise itself automatically if nobody asks anything from it?
These were the results of the diagnostics by the way:
# ipfs stats bw Bandwidth TotalIn: 14 GB TotalOut: 8.8 GB RateIn: 47 kB/s RateOut: 20 kB/s
# ipfs stats dht DHT wan (192 peers): Bucket 0 (20 peers) - refreshed 16s ago: Peer last useful last queried Agent Version @ QmRKzpFsNGXQg6k1obwrjNGUwpwHRbdirEa4xwD1aj9oMX 0s ago 0s ago go-ipfs/0.4.21/ @ QmRMkTYMK9iuu3UqpwHhbCPcLPHEMVcaL9BurCGdNLrS8W 1s ago 1s ago go-ipfs/0.8.0/48f94e2 @ 12D3KooWRA5WdCTGsFRatyx7dmRj16SqXacAsNDUyMjBuvVdhY16 1s ago 1s ago go-ipfs/0.10.0/ @ QmRoGVbUtf3Q4JkWYCyte5fmBdjHYnZdJyS6Qb2qBJgDst 1s ago 1s ago go-ipfs/0.8.0/ @ QmbEjWRSFtwRDzno8iSjZe2ntAM72ujcrhtRZvpNRffVxh 2s ago 0s ago go-ipfs/0.9.1/ @ QmTHdMNsDjPkE7fhG71smGSawtq74TeDFzTF8DBDdykpTb 1s ago 1s ago go-ipfs/0.8.0/ @ QmcvpmY8jrDmVJqsE4LxW91fbFRAgHdz5c5EhNtDr2zXDo 2s ago 2s ago go-ipfs/0.8.0/ @ 12D3KooWJK1QQF1n9JTmMzLU52BWHV9FEUuQCfvD4PUu3XmBMLkK 3s ago 3s ago go-ipfs/0.8.0/16615d7 @ 12D3KooWKo5qEttgaFEgRKUpwMLBDQJaMNpBrFcv2qPLXoTMWmoB 3s ago 3s ago go-ipfs/0.9.1/ @ QmRXP6S7qwSH4vjSrZeJUGT68ww8rQVhoFWU5Kp7UkVkPN 4s ago 0s ago go-ipfs/0.9.1/ @ 12D3KooWD4S6jky1hfrCj79cNbMbRzxQ3PznoQBYzjPaAHeq2btt 4s ago 4s ago go-ipfs/0.10.0/ @ 12D3KooWCKusV8PGhjcJr6Lo6sR5uC8hcJ32TSc2VBKyu1KnwzFZ 4s ago 4s ago rust-libp2p/0.2.0 @ QmaPpVkaD5ceri35pB9KgpTQ2PwJdknaXCxJwJxmNXTKCG 4s ago 4s ago go-ipfs/0.8.0/48f94e2 [long list]
# ipfs stats bitswap bitswap status provides buffer: 0 / 256 blocks received: 0 blocks sent: 102 data received: 0 data sent: 324449 dup blocks received: 0 dup data received: 0 wantlist [0 keys] partners