Error: cannot list local snaps! cannot find publisher details: snap-declaration

Current version of OS, along with errors.

(base) [pkg@laptop ~]$ lsb_release -a
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:        21.2.0
Codename:       Qonos
(base) [pkg@laptop ~]$ snap version 
snap     2.53.4-1-dirty
snapd    2.53.4-1-dirty
series   16
manjaro  -
kernel   5.10.84-1-MANJARO
(base) [pkg@laptop ~]$ snap list 
error: cannot list local snaps! cannot find publisher details: snap-declaration
       (EISPgh06mRh1vordZY9OZ34QHdd7OrdR; series:16) not found
(base) [pkg@laptop ~]$ snap install subsync
error: too early for operation, device not yet seeded or device model not acknowledged
(base) [pkg@laptop ~]$ systemctl status snapd.service 
● snapd.service - Snap Daemon
     Loaded: loaded (/usr/lib/systemd/system/snapd.service; enabled; vendor preset: disabled)
     Active: active (running) since Thu 2021-12-23 11:14:44 IST; 54min ago
TriggeredBy: ● snapd.socket
   Main PID: 35341 (snapd)
      Tasks: 11 (limit: 14050)
     Memory: 13.2M
        CPU: 864ms
     CGroup: /system.slice/snapd.service
             └─35341 /usr/lib/snapd/snapd

Dec 23 12:05:29 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-them>
Dec 23 12:05:29 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Dec 23 12:05:29 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-them>
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Dec 23 12:08:18 laptop snapd[35341]: api_snaps.go:307: Installing snap "subsync" revision unset
(base) [pkg@laptop ~]$ journalctl -u snapd --full --no-pager
Dec 23 11:54:44 laptop snapd[35341]: stateengine.go:149: state ensure error: no state entry for key
Dec 23 11:59:44 laptop snapd[35341]: stateengine.go:149: state ensure error: no state entry for key
Dec 23 11:59:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Dec 23 11:59:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Dec 23 11:59:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Dec 23 11:59:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Dec 23 11:59:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Dec 23 11:59:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Dec 23 11:59:44 laptop snapd[35341]: stateengine.go:149: state ensure error: no state entry for key
Dec 23 12:04:38 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Dec 23 12:04:38 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Dec 23 12:04:38 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Dec 23 12:04:38 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Dec 23 12:04:38 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Dec 23 12:04:38 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Dec 23 12:04:44 laptop snapd[35341]: stateengine.go:149: state ensure error: no state entry for key
Dec 23 12:04:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Dec 23 12:04:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Dec 23 12:04:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Dec 23 12:04:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Dec 23 12:04:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Dec 23 12:04:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Dec 23 12:04:44 laptop snapd[35341]: stateengine.go:149: state ensure error: no state entry for key
Dec 23 12:05:29 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Dec 23 12:05:29 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Dec 23 12:05:29 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Dec 23 12:05:29 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Dec 23 12:05:29 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Dec 23 12:05:29 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Dec 23 12:08:05 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Dec 23 12:08:18 laptop snapd[35341]: api_snaps.go:307: Installing snap "subsync" revision unset
Dec 23 12:09:44 laptop snapd[35341]: stateengine.go:149: state ensure error: no state entry for key
Dec 23 12:09:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "hello-world" at revision 29: cannot find installed snap "hello-world" at revision 29: missing file /var/lib/snapd/snap/hello-world/29/meta/snap.yaml
Dec 23 12:09:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "bare" at revision 5: cannot find installed snap "bare" at revision 5: missing file /var/lib/snapd/snap/bare/5/meta/snap.yaml
Dec 23 12:09:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "code" at revision 85: cannot find installed snap "code" at revision 85: missing file /var/lib/snapd/snap/code/85/meta/snap.yaml
Dec 23 12:09:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core" at revision 11993: cannot find installed snap "core" at revision 11993: missing file /var/lib/snapd/snap/core/11993/meta/snap.yaml
Dec 23 12:09:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "core18" at revision 2253: cannot find installed snap "core18" at revision 2253: missing file /var/lib/snapd/snap/core18/2253/meta/snap.yaml
Dec 23 12:09:44 laptop snapd[35341]: snapmgr.go:303: cannot read snap info of snap "gtk-common-themes" at revision 1519: cannot find installed snap "gtk-common-themes" at revision 1519: missing file /var/lib/snapd/snap/gtk-common-themes/1519/meta/snap.yaml
Dec 23 12:09:44 laptop snapd[35341]: stateengine.go:149: state ensure error: no state entry for key

I had a perfectly working version of snap and for some reason wanted to remove and reinstall. So followed the guide over at manjaro wiki and ran the following commands

pamac remove snapd 

sudo rm -r /var/lib/snapd 

Now, when I wanted to reinstall it, again followed the commands from the wiki linked above and ran -

pamac install snapd libpamac-snap-plugin 
sudo systemctl enable --now snapd.socket 
ln -s /var/lib/snapd/snap /snap 
pamac install discover-snap 

after which restarted the laptop to be sure and ended up in the above state. I tried following through the existing topics from other users that seem to have the same issue and it did not seem to work for me. Help?

Edit - The journalctl output is truncated for the last 20 lines or so as I’ve been trying to get this working for a while :slight_smile:

Bumping this up to see if anyone has ideas or if more information is needed.

For those who land up here, helpful folks at the Manjaro forum helped me solve this.