cannot create transient scope: DBus error "org.freedesktop.systemd1.NoSuchUnit"

Bug #1970648 reported by Chris Johnston
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snapd
New
Undecided
Unassigned

Bug Description

I am running into an issue where I'm seeing the following messages:

internal error, please report: running "juju" failed: cannot create transient scope: DBus error "org.freedesktop.systemd1.NoSuchUnit": [Unit snap.juju.juju.ad6448e6-37d3-4c51-8f69-5ace1e4decfc.scope not found.]

internal error, please report: running "kubectl" failed: cannot create transient scope: DBus error "org.freedesktop.systemd1.NoSuchUnit": [Unit snap.kubectl.kubectl.ce741755-f7d2-41c7-b131-abab3d5807a5.scope not found.]

When looking at journalctl --user the logs are:

Failed to start snap.juju.juju.a3dcecf2-4e2f-4d3a-803c-93cdcaa58c27.scope.
snap.juju.juju.bd1800e9-f465-443f-b40e-a0f47cba26bc.scope: Failed to add PIDs to scope's control group: Permission denied
snap.juju.juju.bd1800e9-f465-443f-b40e-a0f47cba26bc.scope: Failed with result 'resources'.

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
5.4.0-109-generic #123~18.04.1-Ubuntu

ii snapd 2.54.3+18.04.2ubuntu0.2

Revision history for this message
Anthony Kamau (ak-launchpad) wrote :

Just a few moments ago, I experienced this same error when running `kubectl` as a regular user:

```
$ kubectl get po -A
internal error, please report: running "kubectl" failed: cannot create transient scope: DBus error "org.freedesktop.systemd1.NoSuchUnit": [Unit snap.kubectl.kubectl.0c38d3ea-4559-4cc0-b754-055470be9a1f.scope not found.]
```

I don't get this error when running the command as the privileged `root` user. I've rebooted the system to no avail. How do I resolve this error? Could it be that I have an ancient server??

```
Sys Info:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic

Snaps:

$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.58.3 14946 latest/stable canonical✓ core
core18 20230320 2721 latest/stable canonical✓ base
kubeadm 1.26.3 2980 latest/stable canonical✓ classic
kubectl 1.26.3 2914 latest/stable canonical✓ classic
```

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.