Skip to content
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

Snap app crashes if upgraded in the background #14

Closed
1 task done
bast1aan opened this issue Dec 5, 2019 · 4 comments
Closed
1 task done

Snap app crashes if upgraded in the background #14

bast1aan opened this issue Dec 5, 2019 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@bast1aan
Copy link

bast1aan commented Dec 5, 2019

-- Copy of bug report on signalapp/Signal-Desktop#3793 --

  • I have searched open and closed issues for duplicates

Bug Description

The Signal Desktop Snap app in Ubuntu 18.04 crashes after a running for a while with following error message:

Unhandled Error

Error: EACCES: permission denied, rename '/home/bwelmers/snap/signal-desktop/219/.config/Signal/logs/log.log.1' -> '/home/bwelmers/snap/signal-desktop/219/.config/Signal/logs/log.log.2'

When looking in the list of Signal snap versions:

/dev/loop7                              98M   98M     0 100% /snap/signal-desktop/219
/dev/loop10                             98M   98M     0 100% /snap/signal-desktop/235

it looks like the snap is upgraded in the background and somehow the running instance of Signal does not handle this correctly and keeps trying to use the older config directory.

Steps to Reproduce

Unfortunately not easy, but something like this

  1. install signal-desktop snap app and launch it, login to it, use it etc
  2. let it run until a new version is installed by snapd
  3. wait until the log needs to be rotated. Looks like that is done on daily basis.

Actual Result:

Crash

Expected Result:

Should not crash.

Screenshots

Screenshot_20191205_170501

Platform Info

Signal Version:

Name            Version  Rev  Tracking  Publisher     Notes
signal-desktop  1.29.0   235  stable    snapcrafters  -

Operating System:

Ubuntu 18.04

Linked Device Version:

Android: Signal 4.49.18

Link to Debug Log

https://debuglogs.org/604b3bb6f1cc01244899b902643643d3503981433d3377526d5f671b96b89c12

@popey
Copy link
Contributor

popey commented Apr 1, 2020

We have an experimental feature, designed to mitigate this issue. It's blogged about at https://ubuntu.com/blog/experimental-feature-snap-refresh-awareness-and-update-inhibition
This issue is indeed a snap-related one, and we're working to get that feature landed by default as soon as we can. For now, this is the workaround.

snap set core experimental.refresh-app-awareness=true

This will prevent the app updating while it's running.

@popey popey closed this as completed Apr 1, 2020
@johnmee
Copy link

johnmee commented Jun 28, 2021

Forgive my naivety, but could this be fixed with a "snap layout"?

https://snapcraft.io/docs/snap-layouts

@lucyllewy
Copy link
Member

no, snap layouts are completely orthogonal to this issue

@merlijn-sebrechts merlijn-sebrechts added the duplicate This issue or pull request already exists label Jun 29, 2021
@merlijn-sebrechts
Copy link
Member

Note: duplicate of #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants