refresh app awareness: snapd thinks clion is running, but it isn't
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
```
al@al-desktop:~$ sudo snap refresh clion
error: cannot refresh "clion": snap "clion" has running apps (clion)
```
I can't find any evidence of clion actually running.
Please advise where I should look to diagnose this?
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: snapd 2.51.1+20.04ubuntu2
ProcVersionSign
Uname: Linux 5.4.0-96-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Fri Mar 18 02:11:59 2022
InstallationDate: Installed on 2018-05-07 (1410 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
Okay I found the problem - a detached tmux session was still running inside the container.
The way you actually find this is to run `systemctl-cgls` and then look for the cgroup belonging to the snap. It will be something like `snap.clion. clion.e566369e- 6a51-4497- 84ba-d4f52f6529 1b.scope` and the processes running inside it will be listed directly below. Snapd wants there to be no processes in the cgroup before it will do the refresh.