snap "snapd" has no slot named "home" (and more) errors on fresh install

Bug #1988415 reported by Michał Sawicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Expired
High
Unassigned

Bug Description

After a fresh 22.10 install I couldn't install any confined snaps:

```
$ snap changes
ID Status Spawn Ready Summary
1 Done 3 days ago, at 09:48 CEST yesterday at 19:56 CEST Initialize system state
2 Done yesterday at 19:56 CEST yesterday at 19:57 CEST Initialize device
3 Error yesterday at 21:33 CEST yesterday at 21:34 CEST Install snaps "firefox", "thunderbird", "keepassxc", "remmina", "chromium", "fractal"
4 Done yesterday at 21:35 CEST yesterday at 21:35 CEST Install "code" snap
5 Error yesterday at 21:36 CEST yesterday at 21:36 CEST Install snaps "firefox", "thunderbird", "keepassxc", "remmina", "chromium", "fractal"
# ...
```

```
$ snap tasks 5
Status Spawn Ready Summary
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Ensure prerequisites for "thunderbird" are available
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Download snap "thunderbird" (247) from channel "stable"
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Fetch and check assertions for snap "thunderbird" (247)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Mount snap "thunderbird" (247)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Copy snap "thunderbird" data
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "thunderbird" (247) security profiles
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Make snap "thunderbird" (247) available to the system
Error yesterday at 21:36 CEST yesterday at 21:36 CEST Automatically connect eligible plugs and slots of snap "thunderbird"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Set automatic aliases for snap "thunderbird"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "thunderbird" aliases
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run install hook of "thunderbird" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Start snap "thunderbird" (247) services
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run configure hook of "thunderbird" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run health check of "thunderbird" snap
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Ensure prerequisites for "keepassxc" are available
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Download snap "keepassxc" (1563) from channel "stable"
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Fetch and check assertions for snap "keepassxc" (1563)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Mount snap "keepassxc" (1563)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Copy snap "keepassxc" data
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "keepassxc" (1563) security profiles
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Make snap "keepassxc" (1563) available to the system
Error yesterday at 21:36 CEST yesterday at 21:36 CEST Automatically connect eligible plugs and slots of snap "keepassxc"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Set automatic aliases for snap "keepassxc"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "keepassxc" aliases
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run install hook of "keepassxc" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Start snap "keepassxc" (1563) services
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run configure hook of "keepassxc" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run health check of "keepassxc" snap
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Ensure prerequisites for "remmina" are available
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Download snap "remmina" (5379) from channel "stable"
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Fetch and check assertions for snap "remmina" (5379)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Mount snap "remmina" (5379)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Copy snap "remmina" data
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "remmina" (5379) security profiles
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Make snap "remmina" (5379) available to the system
Error yesterday at 21:36 CEST yesterday at 21:36 CEST Automatically connect eligible plugs and slots of snap "remmina"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Set automatic aliases for snap "remmina"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "remmina" aliases
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run install hook of "remmina" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Start snap "remmina" (5379) services
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run configure hook of "remmina" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run health check of "remmina" snap
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Ensure prerequisites for "chromium" are available
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Download snap "chromium" (2076) from channel "stable"
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Fetch and check assertions for snap "chromium" (2076)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Mount snap "chromium" (2076)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Copy snap "chromium" data
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "chromium" (2076) security profiles
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Make snap "chromium" (2076) available to the system
Error yesterday at 21:36 CEST yesterday at 21:36 CEST Automatically connect eligible plugs and slots of snap "chromium"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Set automatic aliases for snap "chromium"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "chromium" aliases
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run install hook of "chromium" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Start snap "chromium" (2076) services
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run configure hook of "chromium" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run health check of "chromium" snap
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Ensure prerequisites for "fractal" are available
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Download snap "fractal" (106) from channel "stable"
Done yesterday at 21:36 CEST yesterday at 21:36 CEST Fetch and check assertions for snap "fractal" (106)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Mount snap "fractal" (106)
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Copy snap "fractal" data
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "fractal" (106) security profiles
Undone yesterday at 21:36 CEST yesterday at 21:36 CEST Make snap "fractal" (106) available to the system
Error yesterday at 21:36 CEST yesterday at 21:36 CEST Automatically connect eligible plugs and slots of snap "fractal"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Set automatic aliases for snap "fractal"
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Setup snap "fractal" aliases
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run install hook of "fractal" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Start snap "fractal" (106) services
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run configure hook of "fractal" snap if present
Hold yesterday at 21:36 CEST yesterday at 21:36 CEST Run health check of "fractal" snap

......................................................................
Automatically connect eligible plugs and slots of snap "thunderbird"

2022-08-31T21:36:11+02:00 ERROR internal error: auto-connect of &{"thunderbird:browser-sandbox" "snapd:browser-support"} failed: snap "snapd" has no slot named "browser-support"

......................................................................
Automatically connect eligible plugs and slots of snap "keepassxc"

2022-08-31T21:36:11+02:00 ERROR internal error: auto-connect of &{"keepassxc:icon-themes" "gtk-common-themes:icon-themes"} failed: snap "gtk-common-themes" has no slot named "icon-themes"

......................................................................
Automatically connect eligible plugs and slots of snap "remmina"

2022-08-31T21:36:13+02:00 ERROR internal error: auto-connect of &{"remmina:avahi-observe" "snapd:avahi-observe"} failed: snap "snapd" has no slot named "avahi-observe"

......................................................................
Automatically connect eligible plugs and slots of snap "chromium"

2022-08-31T21:36:11+02:00 ERROR internal error: auto-connect of &{"chromium:home" "snapd:home"} failed: snap "snapd" has no slot named "home"

......................................................................
Automatically connect eligible plugs and slots of snap "fractal"

2022-08-31T21:36:12+02:00 ERROR internal error: auto-connect of &{"fractal:wayland" "snapd:wayland"} failed: snap "snapd" has no slot named "wayland"
```

Rebooting helped.

Attached is an abridged state file.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: snapd 2.57.1+22.10.1
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.23.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Sep 1 12:09:42 2022
InstallationDate: Installed on 2022-08-31 (0 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Alpha amd64 (20220829)
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=pl_PL.UTF-8
 SHELL=/bin/zsh
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michał Sawicz (saviq) wrote :
Revision history for this message
Alberto Mardegan (mardy) wrote :

Hi Michał! Just to make sure I understand: the issue is gone after a reboot, right? And the logs, they were collected after the reboot, I guess? I'm asking because at least the "Snap.Connections.txt" looks fine at a first sight.

Do you happen to have the journal logs for that boot? Better if complete, or if you are afraid that there might be sensiive information, "journalctl -b <boot-id> -u snapd" should be good enough.

Changed in snapd (Ubuntu):
status: New → Triaged
importance: Undecided → High
Alberto Mardegan (mardy)
Changed in snapd (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Michał Sawicz (saviq) wrote :

Hi @mardy - yes, exactly, I rebooted after change 5 and things are fine since.

I can share my state.json, if you suggest how to strip it of sensitive data (I dropped serials and macaroons, but in case there's more?).

Revision history for this message
Michał Sawicz (saviq) wrote :
Download full text (4.8 KiB)

@mardy nothing interesting in previous' boot logs:

```
sie 31 21:39:41 michal-laptop systemd[1]: Starting Snap Daemon...
sie 31 21:39:41 michal-laptop snapd[2715]: AppArmor status: apparmor is enabled and all features are available
sie 31 21:39:41 michal-laptop snapd[2715]: overlord.go:263: Acquiring state lock file
sie 31 21:39:41 michal-laptop snapd[2715]: overlord.go:268: Acquired state lock file
sie 31 21:39:41 michal-laptop snapd[2715]: daemon.go:247: started snapd/2.57.1+22.10.1 (series 16; classic) ubuntu/22.10 (amd64) linux/5.15.0-27-generic.
sie 31 21:39:41 michal-laptop snapd[2715]: daemon.go:340: adjusting startup timeout by 1m25s (pessimistic estimate of 30s plus 5s per snap)
sie 31 21:39:41 michal-laptop systemd[1]: Started Snap Daemon.
sie 31 21:40:28 michal-laptop snapd[2715]: storehelpers.go:748: cannot refresh: snap has no updates available: "bare", "code", "core", "core20", "gnome-3-38-2004", "gtk-common-themes", "kde-frameworks-5>
sie 31 21:40:29 michal-laptop snapd[2715]: storehelpers.go:748: cannot refresh: snap has no updates available: "bare", "code", "core", "core20", "gnome-3-38-2004", "gtk-common-themes", "kde-frameworks-5>
sie 31 21:40:31 michal-laptop snapd[2715]: storehelpers.go:748: cannot refresh: snap has no updates available: "bare", "code", "core", "core20", "gnome-3-38-2004", "gtk-common-themes", "kde-frameworks-5>
sie 31 21:43:36 michal-laptop groupadd[20890]: group added to /etc/group: name=snapd-range-524288-root, GID=524288
sie 31 21:43:36 michal-laptop groupadd[20890]: group added to /etc/gshadow: name=snapd-range-524288-root
sie 31 21:43:36 michal-laptop groupadd[20890]: new group: name=snapd-range-524288-root, GID=524288
sie 31 21:43:36 michal-laptop useradd[20896]: new user: name=snapd-range-524288-root, UID=524288, GID=524288, home=/nonexistent, shell=/usr/bin/false, from=none
sie 31 21:43:36 michal-laptop groupadd[20903]: group added to /etc/group: name=snap_daemon, GID=584788
sie 31 21:43:36 michal-laptop groupadd[20903]: group added to /etc/gshadow: name=snap_daemon
sie 31 21:43:36 michal-laptop groupadd[20903]: new group: name=snap_daemon, GID=584788
sie 31 21:43:36 michal-laptop useradd[20909]: new user: name=snap_daemon, UID=584788, GID=584788, home=/nonexistent, shell=/usr/bin/false, from=none
sie 31 21:44:16 michal-laptop snapd[2715]: storehelpers.go:748: cannot refresh snap "firefox": snap has no updates available
sie 31 22:09:09 michal-laptop snapd[2715]: main.go:155: Exiting on terminated signal.
sie 31 22:09:09 michal-laptop snapd[2715]: overlord.go:504: Released state lock file
sie 31 22:09:09 michal-laptop systemd[1]: Stopping Snap Daemon...
sie 31 22:09:09 michal-laptop systemd[1]: snapd.service: Deactivated successfully.
sie 31 22:09:09 michal-laptop systemd[1]: Stopped Snap Daemon.
sie 31 22:09:09 michal-laptop systemd[1]: snapd.service: Consumed 1min 57.655s CPU time.
```

```
sie 31 22:13:10 michal-laptop systemd[1]: Starting Snap Daemon...
sie 31 22:13:10 michal-laptop snapd[3234]: AppArmor status: apparmor is enabled and all features are available
sie 31 22:13:10 michal-laptop snapd[3234]: overlord.go:263: Acquiring state lock file
sie 31 22:13:10 michal-laptop snapd[3234]: ove...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for snapd (Ubuntu) because there has been no activity for 60 days.]

Changed in snapd (Ubuntu):
status: Incomplete → Expired
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.