-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Uses versioned directory for storage #112
Comments
@dingens This is currently by design. We want a user to be able to revert to a previous version of both the snap and the database using The signal database is not always backwards-compatible. Signal sometimes performs a database migration after an update. If there is a bug in this migration, or a bug in a new version of Signal Desktop, users should be able to revert back to a working state of both using This post explains the different storage locations for snap more: https://snapcraft.io/blog/hey-snap-wheres-my-data You can manually remove the backup using |
The specific issue here seems to come down to Signal's attachments. Everything other than the I posted a workaround on a Signal-Desktop issue a while back that could help reduce the directory size (and thus update time). If the |
Thanks @merlijn-sebrechts for the clarifications. That is indeed understandable (even though one might argue that that's what backups are there for but in practice how many normal users do backups... :) I'd second @lengau 's suggestion: move the attachments out. That would solve the problem for >90% of the storage. The rest of my data folder is just a few 100 megabytes, having only these duplicated would hurt way less. Another solution that would help, at least for people using cow filesystems (btrfs etc -- probably a majority nowadays?) would be that snap made lightweight copies, but that's out of your control right?
Sure but that's neither a permanent nor a user-friendly solution... By the way - Does anyone of you know whether there is a way I can tell snap "I don't care, just put everything into |
regarding the backups point, the reason this versioned directory exists is exactly for that purpose. Because snaps automatically update in the background there is no guarantee that a user's own backup regime will be able to catch each step, so snapd does that for you. Three copies are retained (two backups for previous versions, and one for the active copy) so that you can roll back to a previously installed version of the snap and the data associated with that version. By relying on the user doing backups themselves users would not have that ease of roll-back capability. |
Out of curiosity I moved Not sure whether that's a safe thing to do, but that's what I'm experimenting with :-) |
that's a good idea to try. Thanks for giving it a looksee and a test, @lengau . If it is just the cache of downloaded images and files then it should be safe to move out of the versioned directory into common. We will need to see how it reacts if you rollback the revision to one from an earlier point in time. |
@lucyllewy will do! I'm also going to do a couple of random revision hops this weekend and see how it reacts. Will report back. |
UPDATE: After prudently doing a At no point have I been able to break any media stuff from signal, going back to 7.1.1, when the app itself broke for database reasons (I didn't have that revision to revert to). Refreshing the latest candidate still has the media working without need for a restore. This is a sample size of 1, but I think it's worth pursuing. Maybe we could make a branch that does this and publish it to |
What happened?
The snap stores Signal's data in the version-specific directory. This causes
In my case, this looks like this:
What should have happened?
The
snap/signal-desktop/common/
directory should be used for data.Output of
snap info $snap_name
Output of
snap connections $snap_name
Output of
snap version
Relevant log output
No response
Teminal output of app
No response
The text was updated successfully, but these errors were encountered: