I am running WSL Ubuntu 20.04 (Version 2 with Docker Desktop Support) within Windows 10 Pro Version 21H1
The steps are as follows:
git clone https://github.com/textileio/powergate.git
cd powergate/
cd docker/
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.make up
- Waited for the node to finish importing and then syncing.
^C
thenmake 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.yamlmake up
- Now that the node was running I typed
cd ..
so I was in the repo's root directory, thenmake install-pow
- with the
pow
command in my GOPATH I typedpow
to make sure pow was linked fine topowd
. It was. pow admin users create
- copied the token and ran
export POW_TOKEN=<token copied to here>
- Then
pow wallet addrs
and funded the address - I went to the directory behind the folder of my static website which is about 5GB in size.
- I typed
pow data stage <my-static-site-folder>
- After it was finished staging and printed out the CID I typed
pow config apply --watch <CID
waited a long time while it said the job was executing and then I got...
---------------------------------------+--------------------------------+-------+-------+--------------
<job id here> | JOB_STATUS_FAILED executing | | |
| cold-storage config: making | | |
| deal configs: getting miners | | |
| from minerselector: getting | | |
| miners from reputation | | |
| module: not enough miners from | | |
| reputation module to satisfy | | |
| the constraints | | |
I don't understand what the problem is. I repeated the pow config apply --watch <CID
command each time adding the --override flag with several different modifications to a custom config file. The content did appear briefly on IPFS (not Filecoin), but after I continued running the config apply command the site went down from IPFS.
This problem can be fixed by adding miners to the "trustedMiner" entry in the config file because
pow
doesn't necessary detect miners that fit your specs.I went to a Filecoin miner info aggregation site (I used "https://filrep.io/") and added miners to the
trustedMiner
section of the config file used in the apply command to start a Filecoin deal.For example the "trustedMiners" line in your config file should look like this:
with however many miners you want to add.
Then you would execute the command:
pow config apply --watch <CID> -o -c new-config-file.json
Btw the
--watch
flag is optional as it just allows you to see the status of the deal in real time.