Upload failed: not enough contracts to upload file
-
Hello, I am running into a wall here and don't know how to fix it. I have googled my problem, read the documentation on github, but could not find a solution online. Maybe this forum can help me.
Today, I have installed Sia on a linux machine. Installed both SIAD/SIAC (0.6.0) and SIA-UI (0.5.2). Ran siad and downloaded the blockchain. Once in synch, I purchased SiaCoins on Poloniex and transferred them to my newly created local wallet (about 25KS). Then, I used the command line to set a few allowances and created contracts - tried different values.
If I run "siac renter", the response tells me that I have unspent funds and total allocated of 12.69 KS.
Running "siac renter contracts" shows all the contracts that have been created at different Values. There are about 16 contracts, but spread over only 8 hosts. So far so good.
The problem: when trying to upload a file with either the UI or the command line "siac renter upload [Path to file] [nickname]" - I get the following error:
"Could not upload file: Upload failed: not enough contracts to upload file"
What I am doing wrong, or what step did I forget to do?
-
You need 12 different hosts (multiple contracts with the same host don't count) before Sia will let you upload, because fewer is not safe. My hostdb is currently showing 22 hosts. You will probably see more hosts if you close
siad, delete your hostdb (that won't delete your contracts), and then restartsiad. Startup will likely take a while, potentially up to an hour. But a few minutes after it finishes, there should be enough hosts.You'll need to also set another allowance, and I recommend a minimum of 20 KS as the allowance. Sorry for the inconvenience, we should have had the hostdb reset automatically upon upgrade.
-
Also, you may have to set your allowance multiple times. I have experiences that when I set the allowance the first time, siad did not form contracts with enough hosts resulting in the "not enough hosts" error. I then set the allowance 1-2 times more, and the error then went away, suggesting I had finally formed contracts with enough hosts.
-
@Taek Thank you for the answer. As suggested, I raised the allowance to 15KS which added 6KS to my contracts, and more hosts accepted the offer - to the point that I have now 13 hosts. I didn't have to delete the hostdb file.
Tried to send a file and it worked this time.