Leaks snaps in r-a-a mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
In Progress
|
High
|
Zeyad Gouda |
Bug Description
It looks like snapd is leaking snaps when refresh-
```
$ ls /var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
```
I looked at the code and it seems the issue is the following:
1. When the refresh starts the soft check that firefox is running reports it is not (this can happen e.g. on startup of the computer when snapd checks for auto-refreshes and the user has not clicked on "firefox" yet)
2. user clicks on firefox, it is now running while the snap is downloading
3. the code path in handlers.
4. however if firefox is not closed and asyncRefreshOnS
One extra complication of this bug is that we will have to write cleanup code that checks the state and clear any unexpected snaps in /var/lib/
description: | updated |
Changed in snapd: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in snapd: | |
assignee: | nobody → Zeyad Gouda (zeyadgouda) |
status: | Triaged → In Progress |