Error removing folder from Host
-
What does this indicate? I Am trying to remove a folder from my host

and can it be ignored?
-
Getting the same error using the siac command
Could not remove folder: could not successfully offload specified number of sectors from storage folder
-
If you remove a host storage folder there must be an alternative place to store the hosted files. So before you can remove a folder you need to add another one first so Sia knows where to move the hosted files to
-
I started by adding a new folder and selected even the same size.
After that I got the error, then restarted the GUI
And ended up rebooting just to be on the safe side
-
I think the problem is a space in the file directory. Is it possible to change the folder name in some configuration file ?
-
Currently not possible to rename/move folders. The required method is that you have to add a new folder and delete the old one. The new folder must be added so that it is large enough to get all of the data in the old folder.
For example, if you have folder '/home/sia' with 500GB of data, first you should add a new folder '/home/new' with at least 500GB of storage, and then delete '/home/sia'. The program will move all of the data from the one folder to the other while it deletes the old folder.
-
Hi Taek
Thats precisely what I did.
Added a new folder, and tried to remove the old one.
Any way to change the name of the folder and manually move the files ?
-
This is preventing me form moving my host to a new server as there is no Disk with that drive, and changing that will conflict with other stuff.
Any hints ?
-
Seems har to get help for this, so I started debugging it
I added some debug lines in storagefolders.go
for emptiestFolder != nil { oldSectorPath := filepath.Join(sm.persistDir, offloadFolder.uidString(), string(currentSectorID)) // Try reading the sector from disk. fmt.Printf("Try reading the sector from disk %s\n", oldSectorPath) sectorData, err := sm.dependencies.readFile(oldSectorPath) if err != nil { fmt.Printf("err %s\n",err) // Inidicate that the storage folder is having read // troubles. offloadFolder.FailedReads++and got this output
Try reading the sector from disk host\storagemanager\09aa3400\zeY3trKToCCCv7DO err open host\storagemanager\09aa3400\zeY3trKToCCCv7DO: The system cannot find the file specified.So the program is trying to read from a nonexisting location. It might have been intended to be a symbolic link
looking in the storagemanager folder I can see to sub dirs, and if they should match the to folders I have added to the host I can see the problem
-
Finally solved this by hacking the source a bit.
Problem must originate from an old installation where the link wasn't in place.So what I did was copy all the blocks to the directory, and running the Remove folder. That copied all the blocks, but could not remove the folder.
Then I removed the check of no of data moved, and let the code save the config after removing folder.
Now all looks fine, but I would recommend some test for removing folders, but especially some more informative error messages would be nice