/var/lib/snapd/state.json corrupts too easily
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Here is an report from the IoT usecase:
More robust way to store state.json? - snapd - snapcraft.io
https:/
and here is another one which seems to be a regular desktop user:
what is the problem here . I'm unable to use firefox or snap services. : Ubuntu https:/
Comparing to other components in the system the state file seems to be too fragile to use in the production and will make snapd stop functioning when it broke, is there any way we can prevent this from happening?
## Possible solutions/
* Switch to a format that is more resilient to unexpected corruption(e.g. SQLite)
* (For the desktop usecase) improve error message when curruption occurs
Thanks for raising this.