powergate: I Made A Hot Storage Deal And I Still Can't Access The Content on IPFS

I made a hot storage deal and I still can’t access the content on IPFS. The content that I put into this deal is the directory of a static website. When I double click the index.html file in Windows Explorer, it opens perfectly in Firefox so I know the website works. I tried to access it with https://ipfs.io/ipfs/<CID> and https://<CID>.ipfs.dweb.link but they both failed. I did the deal perfectly. I did it exactly to spec for a hot storage deal which I believe is the way to get your content on IPFS. Here’s what I did to make my storage deal.

My config file aka config-new.json looks like this.

{
  "hot":  {
    "enabled":  true,
    "allowUnfreeze":  true,
    "unfreezeMaxPrice":  "100000000000000000",
    "ipfs":  {
      "addTimeout":  "900"
    }
  },
  "cold":  {
    "enabled":  true,
    "filecoin":  {
      "replicationFactor":  "2",
      "dealMinDuration":  "518400",
      "excludedMiners":  [],
      "trustedMiners":  ["<Miner Id>", "<Miner Id>", "<Miner Id>", "<Miner Id>", "<Miner Id>",],
      "countryCodes":  [],
      "renew":  {
        "enabled":  false,
        "threshold":  "0"
      },
      "address":  "<my filecoin address>",
      "maxPrice":  "100000000000000000",
      "fastRetrieval":  true,
      "dealStartOffset":  "8640",
      "verifiedDeal":  false
    }
  },
  "repairable":  false
}
  1. git clone https://github.com/textileio/powergate.git
  2. cd powergate/
  3. cd docker/
  4. nano docker-compose.yaml where I added "[“lotus”, “daemon”, “–import-snapshot”, "https://fil-chain-snapshots-fallback.s3.amazonaws.com/mainnet/minimal_finality_stateroots_latest.car"]" between lines 32 and 33.
  5. make up
  6. Waited for the node to finish importing and then syncing.
  7. ^C then make down then deleted the line "[“lotus”, “daemon”, “–import-snapshot”, "https://fil-chain-snapshots-fallback.s3.amazonaws.com/mainnet/minimal_finality_stateroots_latest.car"]" from docker-compose.yaml
  8. make up
  9. Now that the node was running I typed cd .. so I was in the repo’s root directory, then make install-pow
  10. with the pow command in my GOPATH I typed pow to make sure pow was linked fine to powd. It was.
  11. pow admin users create
  12. copied the token and ran export POW_TOKEN=<token copied to here>
  13. Then pow wallet addrs and funded the address
  14. I went to the directory behind the folder of my static website which is about 5GB in size.
  15. I typed pow data stage <my-static-site-folder>
  16. After it was finished staging and printed out the CID I typed pow config apply --watch <CID> -c custom-080121-hot-config.json waited a long time and it worked! I had a Filecoin deal that was duplicated across 2 miners.

So I now have a storage deal but the directory still isn’t on IPFS. Why won’t it work?

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 20 (7 by maintainers)

Most upvoted comments

We’re working on a new and easier solution to allow people like you use Filecoin for your products. I’ll keep you posted around that.

Oh wow that would be amazing! Please keep me posted on that. You can reach me through Github or contact me on Reddit as “u/warpanomaly” or Twitter as “OConnorROCKS” Thanks again!

I’m sorry to hear that. I hope solving this Lotus problem can be easier, but usually deleting the state and spinning again from a snapshot usually solves all the problems.

It’s not your fault and I’m really sorry to be such a pain with this. I just really want to incorporate Filecoin as the backend of my storage app and for some reason that’s proving to be impossible. I will file a bug request with Lotus to see what they say.

Again I really appreciate your help and I love all that you guys do. Please keep following this issue thread as I continue to post updates and ask for help regarding this situation. I really appreciate that you guys have been helping me along the way.