I put up a directory as a host a while ago, but it pretty much deducted the entire amount of an incomining original transaction - how do I get that amount back? It's not showing in my wallet and it's been more than 12 weeks. Is it lost because that pc with the host went down? Why was it that amount, I thought it would be much much less...not some arbitrary incoming transaction amnount!
Currently you can get all your siacoins back using just the wallet seed. You CANNOT do the same with the files.
To get your files back, you need a recent copy of the renter folder. We understand that this is a pretty big ask, and we are working in the direction of being able to recover all files using only the wallet seed. This will probably be ready in 2017, but likely not until late 2017.
exited Sia-UI (Quit from taskbar icon), waited for all processes to end
made a copy of %appdata%/host/storagemanager/storagemanager.json
Checked that all the symlinks were correct
Opened storagemanager.json in Notepad++
Noted that the first entry was 100% correct, but the remaining entries all had the same UID, which also did not correspond to any of the symlinks
converted the missing symlinks from hex to Base64 using http://tomeko.net/online_tools/hex_to_base64.php?lang=en , and replaced the erroneous entries with the proper UID and Path. Note that I did not change any of the other values, like the Size, SizeRemaining, etc
saved the file and opened Sia-UI. Unlocked Wallet. Everything looks good in the UI, except the SizeRemaining of the folders being inaccurate.
From the terminal (in SIA-UI) I ran host folder remove N:\ and could see (via Resource Monitor) that the files in N:\ were being copied to C:\Sia1\Storage\ - however after this was finished, all the files were still in N: (and a quick check showed that all the files appeared to be in C:\Sia1\Storage\ as well), and the terminal gave the error: Could not remove folder: could not successfully offload specified number of sectors from storage folder - this cannot actually be due to the lack of available space as there is over 930GB available in C:\Sia1\Storage\.
Replicated this with the other 3 erroneous folders, same results (only tried one at a time of course)
It seems your hostdb is empty, i.e. Sia is not aware of any available hosts. It could be that you are not fully synch'ed with the network, or something else. I would leave things running for a few hours, then go to the Terminal plugin and type hostdb and report back the result here.
Typically it is good enough to wait a few blocks. Sia will not spend unconfirmed money because it means that a whole series of transactions can fail if just one transaction is double-spent (whether accidentally or on purpose).
hmm, we have file protections in place that should prevent these types of failures during crashes. You may have to delete a few of the settings files.
To the best of my knowledge, these types of crashes only happen on Windows, both Mac and Linux have safer filesystems. Still, I would like to find out how we can prevent these issues on Windows as well.
In the future we may be coming out with more detailed guides for understanding the contracts that get made on the Sia network, which will probably correspond with adding API endpoints to let developers make their own contracts, instead of having the renter do all of the work for them.
You need the entire renter/ folder to recover your uploaded files. At some point in the moderate future (1-3 years), we will be able to add extensions so that you can recover everything using just the seed, but that is not possible today.
Possibly it could be menthioned in the geting started /store guide that siac exists, but I can see the benifit of not doing it. Hereby keeping the text shorter and as simple as possible. Anyhow think about it.