All snap apps doesn't launch after Timeshift system restore

Bug #1900326 reported by Johny Beham
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Restored my system using Timeshift everything works ok except snap installed apps:
- Atom code editor
- Skype
- Slack
where among affected.

Reinstalling them didn't help even deleting files from snap cache, too

I've tried also
```
sudo snap refresh core --beta
```
didn't help as well.

Before reinstalling skype using Ubuntu software.
When launching app from terminal:
skype --secondary

results in:
internal error, please report: running "skype" failed: cannot find installed snap "skype" at revision 156: missing file /snap/skype/156/meta/snap.yaml

which might be the case with the rest of the apps.
After reinstalling still doesn't launch but command line:

skype --secondary

works.

The way snap works seems to be very sophisticated and fragile and installations can not be fixed with overwrite installs.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: snap (not installed)
ProcVersionSignature: Ubuntu 5.4.0-51.56~18.04.1-generic 5.4.65
Uname: Linux 5.4.0-51-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.16
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 18 15:30:34 2020
InstallationDate: Installed on 2020-08-08 (70 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
SourcePackage: snap
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Johny Beham (jockydoe) wrote :
description: updated
description: updated
description: updated
Johny Beham (jockydoe)
description: updated
description: updated
Johny Beham (jockydoe)
description: updated
Johny Beham (jockydoe)
description: updated
Johny Beham (jockydoe)
affects: snap (Ubuntu) → snapd (Ubuntu)
Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

Please attach the output of the following commands:
- snap install
- systemctl list-units snap-*.mount
- losetup -l
- mount

Changed in snapd (Ubuntu):
status: New → Incomplete
Johny Beham (jockydoe)
Changed in snapd (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Lancillotto (antonio-petricca) wrote :

Same for me on Ubuntu 22.04.

Revision history for this message
Lancillotto (antonio-petricca) wrote :

Could somebody tell me what is the flow to restore snap applications in order to try to provide a pull request for Timeshift project?

Revision history for this message
Sameer Sharma (capecrusader-121) wrote (last edit ):

@Lancillotto i believe you should check the the ability of snaps to restore to previous release in case of faulty upgrades, i believe it can be somehow used to do backup for snaps in a robust way.

Few dog-food for you or others interested ;

--> https://snapcraft.io/docs/snapshots

--> https://snapcraft.io/blog/how-to-create-snapshots-of-your-snaps

--> https://snapcraft.io/docs/getting-started#heading--data

--> https://snapcraft.io/docs/getting-started#heading--revert

I hope my suggestion may be useful. πŸ™ƒ

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.