-
Notifications
You must be signed in to change notification settings - Fork 100
Settings.json corrupted after power loss #476
Comments
Workaround: Create a backup settings.json. If you see the error restore the backup. Make sure each drive get the old private key again. (The easy way to do that: Create a new backup every time you change storage location or add or remove a new drive) |
This should be really rare, as Storj Share would have to be writing to the config at the time of the shutdown. Don't think there is anything we can do here except recommend farmers with lots of data manually backup their settings and keys. |
Sorry I have to reopen this issue. I would expect the same as you. The settings file should only be written if the user is changing any settings. In that case it would be nearly impossible to kill the GUI at the moment it is writing the file. The current behavior is unexpected. The GUI writing the settings every time one of these values changes:
|
A possible solution would be to remove this from settings.json and store it somewhere else. |
don't leave it open after read or write i suggest? close it right away so any meta data is commit flushed to disk. |
Versions
Replace the values below with your own:
Storj Share 4.0.8
Core Library 6.0.11
Protocol 1.0.0
Expected Behavior
Please describe the program's expected behavior.
Actual Behavior
Please describe the program's actual behavior. Please include any stack traces
or log output in the back ticks below.
Sometimes settings.json gets corrupted. Private key / nodeID and all other settings lost. The shards still exists but without the private key they are useless.
settings.json.txt
Steps to Reproduce
Please include the steps the reproduce the issue, numbered below. Include as
much detail as possible.
Screenshots (Optional)
If the error is graphical in nature it is helpful to provide a screenshot.

The text was updated successfully, but these errors were encountered: