Authy snap error cannot perform operation: mount --rbind

I installed authy via snap on Fedora, was able to set it up and use it, but after i restarted my system i get this error when i try to start the snap

cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_pREVyH//dev: No such file or directory

anyone have ideas how to resolve this error?
Thank you in advance!

Can you try to start the snap from a terminal with:

SNAP_CONFINE_DEBUG=1 snap run authy

and share the output you get from that?

also the output of these commands would be helpful:

snap version
snap list authy

Thanks

1 Like

Thanks for the response, note, I mistakenly said “Fedora” but i was getting machines mixed up, its Debian. And yeah, sorry for the lack of into.
So from

SNAP_CONFINE_DEBUG=1 snap run authy

I get:

$ SNAP_CONFINE_DEBUG=1 snap run authy
DEBUG: security tag: snap.authy.authy
DEBUG: executable:   /usr/lib/snapd/snap-exec
DEBUG: confinement:  non-classic
DEBUG: base snap:    core18
DEBUG: ruid: 1000, euid: 0, suid: 0
DEBUG: rgid: 1000, egid: 0, sgid: 0
DEBUG: apparmor is available on the system but has been disabled at boot
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: opening lock file: /run/snapd/lock/.lock
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope (global), uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: ensuring that snap mount directory is shared
DEBUG: unsharing snap namespace directory
DEBUG: releasing lock 4
DEBUG: opened snap-update-ns executable as file descriptor 4
DEBUG: opened snap-discard-ns executable as file descriptor 5
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: opening lock file: /run/snapd/lock/authy.lock
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope authy, uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: initializing mount namespace: authy
DEBUG: forked support process 1636
DEBUG: unsharing the mount namespace (per-snap)
DEBUG: helper process waiting for command
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: scratch directory for constructing namespace: /tmp/snap.rootfs_5EIc64
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_5EIc64//dev: No such file or directory

and for snap version:

$ snap version
snap    2.37.4-1+b1
snapd   2.37.4-1+b1
series  16
debian  10
kernel  5.4.98-1.fc25.qubes.x86_64

and from snap list authy:

$ snap list authy
Name   Version  Rev  Tracking  Publisher     Notes
authy  1.8.3    5    stable    twilio-authy  -
1 Like

You need to upgrade the version of snapd you have installed, try snap install core first

that gave me the following:

$ snap install core
2021-06-10T16:56:55-04:00 INFO Waiting for restart...
core 16-2.50.1 from Canonical✓ installed
Channel latest/stable for core is closed; temporarily forwarding to stable.
$ authy 
cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_RVpuk2//dev: No such file or directory
$ snap install core
snap "core" is already installed, see 'snap help refresh'

Try this:

sudo /usr/lib/snapd/snap-discard-ns authy 
SNAP_CONFINE_DEBUG=1 snap run authy

Here is what that gave me:

$ sudo /usr/lib/snapd/snap-discard-ns authy
$ SNAP_CONFINE_DEBUG=1 snap run authy
DEBUG: umask reset, old umask was 022
DEBUG: security tag: snap.authy.authy
DEBUG: executable: /usr/lib/snapd/snap-exec
DEBUG: confinement: non-classic
DEBUG: base snap: core18
DEBUG: ruid: 1000, euid: 0, suid: 0
DEBUG: rgid: 1000, egid: 1000, sgid: 1000
DEBUG: apparmor is available on the system but has been disabled at boot
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: opening lock file: /run/snapd/lock/.lock
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope (global), uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: ensuring that snap mount directory is shared
DEBUG: unsharing snap namespace directory
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: releasing lock 5
DEBUG: opened snap-update-ns executable as file descriptor 5
DEBUG: opened snap-discard-ns executable as file descriptor 6
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: opening lock file: /run/snapd/lock/authy.lock
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope authy, uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: initializing mount namespace: authy
DEBUG: setting up device cgroup
DEBUG: no devices tagged with snap_authy_authy, skipping device cgroup setup
DEBUG: forked support process 2359
DEBUG: unsharing the mount namespace (per-snap)
DEBUG: helper process waiting for command
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: scratch directory for constructing namespace: /tmp/snap.rootfs_IeI049
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_IeI049//dev: No such file or directory

Is this being run inside a container? It seems to imply that either /dev or /tmp/snap.rootfs_IeI049/ do not exist, but previously in the log the tmp dir was created by snap-confine

Its being run in a VM if that counts? (sorry am new to this)

Just to be clear, /dev exists on this system right, what is ls -lah /dev ?

/dev exists, but no /dev/snap as far as i can tell.

The output is:
$ ls -lah /dev
total 4.0K
drwxr-xr-x 17 root root 3.9K Jun 10 16:56 ./
drwxr-xr-x 21 root root 4.0K Jun 7 11:03 …/
crw-r–r-- 1 root root 10, 235 Jun 10 16:57 autofs
drwxr-xr-x 2 root root 320 Jun 10 16:56 block/
crw------- 1 root root 10, 234 Jun 9 11:24 btrfs-control
drwxr-xr-x 2 root root 3.3K Jun 9 11:25 char/
crw------- 1 root root 5, 1 Jun 10 16:57 console
drwxr-xr-x 4 root root 80 Jun 9 11:24 cpu/
crw------- 1 root root 10, 60 Jun 10 16:57 cpu_dma_latency
crw------- 1 root root 10, 203 Jun 9 11:24 cuse
drwxr-xr-x 5 root root 100 Jun 9 11:24 disk/
lrwxrwxrwx 1 root root 13 Jun 9 11:24 fd -> /proc/self/fd/
crw-rw-rw- 1 root root 1, 7 Jun 10 16:57 full
crw-rw-rw- 1 root root 10, 229 Jun 10 16:57 fuse
crw------- 1 root root 10, 228 Jun 10 16:57 hpet
drwxr-xr-x 2 root root 0 Jun 9 11:24 hugepages/
crw–w---- 1 root tty 229, 0 Jun 10 16:57 hvc0
crw------- 1 root root 229, 1 Jun 10 16:57 hvc1
crw------- 1 root root 229, 2 Jun 10 16:57 hvc2
crw------- 1 root root 229, 3 Jun 10 16:57 hvc3
crw------- 1 root root 229, 4 Jun 10 16:57 hvc4
crw------- 1 root root 229, 5 Jun 10 16:57 hvc5
crw------- 1 root root 229, 6 Jun 10 16:57 hvc6
crw------- 1 root root 229, 7 Jun 10 16:57 hvc7
crw------- 1 root root 10, 183 Jun 10 16:57 hwrng
lrwxrwxrwx 1 root root 12 Jun 9 11:24 initctl -> /run/initctl|
drwxr-xr-x 3 root root 100 Jun 9 11:24 input/
crw-r–r-- 1 root root 1, 11 Jun 10 16:57 kmsg
lrwxrwxrwx 1 root root 28 Jun 9 11:24 log -> /run/systemd/journal/dev-log=
brw-rw---- 1 root disk 7, 0 Jun 10 16:57 loop0
brw-rw---- 1 root disk 7, 1 Jun 10 16:57 loop1
brw-rw---- 1 root disk 7, 2 Jun 10 16:57 loop2
brw-rw---- 1 root disk 7, 3 Jun 10 16:57 loop3
brw-rw---- 1 root disk 7, 4 Jun 10 16:57 loop4
crw-rw---- 1 root disk 10, 237 Jun 10 16:57 loop-control
drwxr-xr-x 2 root root 80 Jun 9 11:24 mapper/
crw------- 1 root root 10, 227 Jun 10 16:57 mcelog
crw-r----- 1 root kmem 1, 1 Jun 10 16:57 mem
drwxrwxrwt 2 root root 40 Jun 9 11:24 mqueue/
drwxr-xr-x 2 root root 60 Jun 9 11:24 net/
crw-rw-rw- 1 root root 1, 3 Jun 10 16:57 null
crw-r----- 1 root kmem 10, 144 Jun 10 16:57 nvram
crw-r----- 1 root kmem 1, 4 Jun 10 16:57 port
crw------- 1 root root 108, 0 Jun 9 11:24 ppp
crw-rw-rw- 1 root tty 5, 2 Jun 10 17:34 ptmx
drwxr-xr-x 2 root root 0 Jun 9 11:24 pts/
crw-rw-rw- 1 root root 1, 8 Jun 10 16:57 random
drwxr-xr-x 2 root root 60 Jun 9 11:24 raw/
crw------- 1 root root 10, 242 Jun 9 11:24 rfkill
drwxrwxrwt 2 root root 40 Jun 9 11:24 shm/
drwxr-xr-x 2 root root 80 Jun 9 11:24 snd/
lrwxrwxrwx 1 root root 15 Jun 9 11:24 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Jun 9 11:24 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Jun 9 11:24 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty 5, 0 Jun 10 16:57 tty
crw–w---- 1 root tty 4, 0 Jun 10 16:57 tty0
crw–w---- 1 root tty 4, 1 Jun 10 16:57 tty1
crw–w---- 1 root tty 4, 10 Jun 10 16:57 tty10
crw–w---- 1 root tty 4, 11 Jun 10 16:57 tty11
crw–w---- 1 root tty 4, 12 Jun 10 16:57 tty12
crw–w---- 1 root tty 4, 13 Jun 10 16:57 tty13
crw–w---- 1 root tty 4, 14 Jun 10 16:57 tty14
crw–w---- 1 root tty 4, 15 Jun 10 16:57 tty15
crw–w---- 1 root tty 4, 16 Jun 10 16:57 tty16
crw–w---- 1 root tty 4, 17 Jun 10 16:57 tty17
crw–w---- 1 root tty 4, 18 Jun 10 16:57 tty18
crw–w---- 1 root tty 4, 19 Jun 10 16:57 tty19
crw–w---- 1 root tty 4, 2 Jun 10 16:57 tty2
crw–w---- 1 root tty 4, 20 Jun 10 16:57 tty20
crw–w---- 1 root tty 4, 21 Jun 10 16:57 tty21
crw–w---- 1 root tty 4, 22 Jun 10 16:57 tty22
crw–w---- 1 root tty 4, 23 Jun 10 16:57 tty23
crw–w---- 1 root tty 4, 24 Jun 10 16:57 tty24
crw–w---- 1 root tty 4, 25 Jun 10 16:57 tty25
crw–w---- 1 root tty 4, 26 Jun 10 16:57 tty26
crw–w---- 1 root tty 4, 27 Jun 10 16:57 tty27
crw–w---- 1 root tty 4, 28 Jun 10 16:57 tty28
crw–w---- 1 root tty 4, 29 Jun 10 16:57 tty29
crw–w---- 1 root tty 4, 3 Jun 10 16:57 tty3
crw–w---- 1 root tty 4, 30 Jun 10 16:57 tty30
crw–w---- 1 root tty 4, 31 Jun 10 16:57 tty31
crw–w---- 1 root tty 4, 32 Jun 10 16:57 tty32
crw–w---- 1 root tty 4, 33 Jun 10 16:57 tty33
crw–w---- 1 root tty 4, 34 Jun 10 16:57 tty34
crw–w---- 1 root tty 4, 35 Jun 10 16:57 tty35
crw–w---- 1 root tty 4, 36 Jun 10 16:57 tty36
crw–w---- 1 root tty 4, 37 Jun 10 16:57 tty37
crw–w---- 1 root tty 4, 38 Jun 10 16:57 tty38
crw–w---- 1 root tty 4, 39 Jun 10 16:57 tty39
crw–w---- 1 root tty 4, 4 Jun 10 16:57 tty4
crw–w---- 1 root tty 4, 40 Jun 10 16:57 tty40
crw–w---- 1 root tty 4, 41 Jun 10 16:57 tty41
crw–w---- 1 root tty 4, 42 Jun 10 16:57 tty42
crw–w---- 1 root tty 4, 43 Jun 10 16:57 tty43
crw–w---- 1 root tty 4, 44 Jun 10 16:57 tty44
crw–w---- 1 root tty 4, 45 Jun 10 16:57 tty45
crw–w---- 1 root tty 4, 46 Jun 10 16:57 tty46
crw–w---- 1 root tty 4, 47 Jun 10 16:57 tty47
crw–w---- 1 root tty 4, 48 Jun 10 16:57 tty48
crw–w---- 1 root tty 4, 49 Jun 10 16:57 tty49
crw–w---- 1 root tty 4, 5 Jun 10 16:57 tty5
crw–w---- 1 root tty 4, 50 Jun 10 16:57 tty50
crw–w---- 1 root tty 4, 51 Jun 10 16:57 tty51
crw–w---- 1 root tty 4, 52 Jun 10 16:57 tty52
crw–w---- 1 root tty 4, 53 Jun 10 16:57 tty53
crw–w---- 1 root tty 4, 54 Jun 10 16:57 tty54
crw–w---- 1 root tty 4, 55 Jun 10 16:57 tty55
crw–w---- 1 root tty 4, 56 Jun 10 16:57 tty56
crw–w---- 1 root tty 4, 57 Jun 10 16:57 tty57
crw–w---- 1 root tty 4, 58 Jun 10 16:57 tty58
crw–w---- 1 root tty 4, 59 Jun 10 16:57 tty59
crw–w---- 1 root tty 4, 6 Jun 10 16:57 tty6
crw–w---- 1 root tty 4, 60 Jun 10 16:57 tty60
crw–w---- 1 root tty 4, 61 Jun 10 16:57 tty61
crw–w---- 1 root tty 4, 62 Jun 10 16:57 tty62
crw–w---- 1 root tty 4, 63 Jun 10 16:57 tty63
crw–w---- 1 root tty 4, 7 Jun 10 16:57 tty7
crw–w---- 1 root tty 4, 8 Jun 10 16:57 tty8
crw–w---- 1 root tty 4, 9 Jun 10 16:57 tty9
crw-rw---- 1 root dialout 4, 64 Jun 10 16:57 ttyS0
crw-rw---- 1 root dialout 4, 65 Jun 10 16:57 ttyS1
crw-rw---- 1 root dialout 4, 74 Jun 10 16:57 ttyS10
crw-rw---- 1 root dialout 4, 75 Jun 10 16:57 ttyS11
crw-rw---- 1 root dialout 4, 76 Jun 10 16:57 ttyS12
crw-rw---- 1 root dialout 4, 77 Jun 10 16:57 ttyS13
crw-rw---- 1 root dialout 4, 78 Jun 10 16:57 ttyS14
crw-rw---- 1 root dialout 4, 79 Jun 10 16:57 ttyS15
crw-rw---- 1 root dialout 4, 80 Jun 10 16:57 ttyS16
crw-rw---- 1 root dialout 4, 81 Jun 10 16:57 ttyS17
crw-rw---- 1 root dialout 4, 82 Jun 10 16:57 ttyS18
crw-rw---- 1 root dialout 4, 83 Jun 10 16:57 ttyS19
crw-rw---- 1 root dialout 4, 66 Jun 10 16:57 ttyS2
crw-rw---- 1 root dialout 4, 84 Jun 10 16:57 ttyS20
crw-rw---- 1 root dialout 4, 85 Jun 10 16:57 ttyS21
crw-rw---- 1 root dialout 4, 86 Jun 10 16:57 ttyS22
crw-rw---- 1 root dialout 4, 87 Jun 10 16:57 ttyS23
crw-rw---- 1 root dialout 4, 88 Jun 10 16:57 ttyS24
crw-rw---- 1 root dialout 4, 89 Jun 10 16:57 ttyS25
crw-rw---- 1 root dialout 4, 90 Jun 10 16:57 ttyS26
crw-rw---- 1 root dialout 4, 91 Jun 10 16:57 ttyS27
crw-rw---- 1 root dialout 4, 92 Jun 10 16:57 ttyS28
crw-rw---- 1 root dialout 4, 93 Jun 10 16:57 ttyS29
crw-rw---- 1 root dialout 4, 67 Jun 10 16:57 ttyS3
crw-rw---- 1 root dialout 4, 94 Jun 10 16:57 ttyS30
crw-rw---- 1 root dialout 4, 95 Jun 10 16:57 ttyS31
crw-rw---- 1 root dialout 4, 68 Jun 10 16:57 ttyS4
crw-rw---- 1 root dialout 4, 69 Jun 10 16:57 ttyS5
crw-rw---- 1 root dialout 4, 70 Jun 10 16:57 ttyS6
crw-rw---- 1 root dialout 4, 71 Jun 10 16:57 ttyS7
crw-rw---- 1 root dialout 4, 72 Jun 10 16:57 ttyS8
crw-rw---- 1 root dialout 4, 73 Jun 10 16:57 ttyS9
crw------- 1 root root 10, 61 Jun 10 16:57 udmabuf
crw------- 1 root root 10, 239 Jun 9 11:24 uhid
crw------- 1 root root 10, 223 Jun 9 11:24 uinput
crw-rw-rw- 1 root root 1, 9 Jun 10 16:57 urandom
crw------- 1 root root 244, 0 Jun 10 16:57 usbmon0
crw-rw---- 1 root tty 7, 0 Jun 10 16:57 vcs
crw-rw---- 1 root tty 7, 1 Jun 10 16:57 vcs1
crw-rw---- 1 root tty 7, 2 Jun 10 16:57 vcs2
crw-rw---- 1 root tty 7, 3 Jun 10 16:57 vcs3
crw-rw---- 1 root tty 7, 4 Jun 10 16:57 vcs4
crw-rw---- 1 root tty 7, 5 Jun 10 16:57 vcs5
crw-rw---- 1 root tty 7, 6 Jun 10 16:57 vcs6
crw-rw---- 1 root tty 7, 7 Jun 10 16:57 vcs7
crw-rw---- 1 root tty 7, 128 Jun 10 16:57 vcsa
crw-rw---- 1 root tty 7, 129 Jun 10 16:57 vcsa1
crw-rw---- 1 root tty 7, 130 Jun 10 16:57 vcsa2
crw-rw---- 1 root tty 7, 131 Jun 10 16:57 vcsa3
crw-rw---- 1 root tty 7, 132 Jun 10 16:57 vcsa4
crw-rw---- 1 root tty 7, 133 Jun 10 16:57 vcsa5
crw-rw---- 1 root tty 7, 134 Jun 10 16:57 vcsa6
crw-rw---- 1 root tty 7, 135 Jun 10 16:57 vcsa7
crw-rw---- 1 root tty 7, 64 Jun 10 16:57 vcsu
crw-rw---- 1 root tty 7, 65 Jun 10 16:57 vcsu1
crw-rw---- 1 root tty 7, 66 Jun 10 16:57 vcsu2
crw-rw---- 1 root tty 7, 67 Jun 10 16:57 vcsu3
crw-rw---- 1 root tty 7, 68 Jun 10 16:57 vcsu4
crw-rw---- 1 root tty 7, 69 Jun 10 16:57 vcsu5
crw-rw---- 1 root tty 7, 70 Jun 10 16:57 vcsu6
crw-rw---- 1 root tty 7, 71 Jun 10 16:57 vcsu7
drwxr-xr-x 2 root root 60 Jun 9 11:24 vfio/
crw------- 1 root root 10, 63 Jun 10 16:57 vga_arbiter
crw------- 1 root root 10, 137 Jun 9 11:24 vhci
crw------- 1 root root 10, 238 Jun 9 11:24 vhost-net
crw------- 1 root root 10, 241 Jun 9 11:24 vhost-vsock
drwxr-xr-x 2 root root 160 Jun 9 11:24 xen/
brw-rw---- 1 root disk 202, 0 Jun 10 16:57 xvda
brw-rw---- 1 root disk 202, 1 Jun 10 16:57 xvda1
brw-rw---- 1 root disk 202, 2 Jun 10 16:57 xvda2
brw-rw---- 1 root disk 202, 3 Jun 10 16:57 xvda3
brw-rw---- 1 root disk 202, 16 Jun 10 16:57 xvdb
brw-rw---- 1 root disk 202, 32 Jun 10 16:57 xvdc
brw-rw---- 1 root disk 202, 33 Jun 10 16:57 xvdc1
brw-rw---- 1 root disk 202, 35 Jun 10 16:57 xvdc3
brw-rw---- 1 root disk 202, 48 Jun 10 16:57 xvdd
crw-rw-rw- 1 root root 1, 5 Jun 10 16:57 zero

I also have this problem, with the difference that some of my programs run without problems, such as vscode

I think we need to try stracing to see what happens. Make sure you have strace installed.
Then you need to run:

sudo /usr/lib/snapd/snap-discard-ns authy 
snap run --strace='--raw -vf -e mount,unshare' authy

and include the output.

That gives me the following:

$ sudo /usr/lib/snapd/snap-discard-ns authy 
$ snap run --strace='--raw -vf -e mount,unshare' authy
/usr/bin/strace: Process 2893 attached
[pid  2892] unshare(CLONE_NEWNS)        = 0
[pid  2892] mount("none", "/", NULL, MS_REC|MS_SHARED, NULL) = 0
[pid  2892] mount("/tmp/snap.rootfs_S5QwYQ", "/tmp/snap.rootfs_S5QwYQ", NULL, MS_BIND, NULL) = 0
[pid  2892] mount("none", "/tmp/snap.rootfs_S5QwYQ", NULL, MS_UNBINDABLE, NULL) = 0
[pid  2892] mount("/snap/core18/current", "/tmp/snap.rootfs_S5QwYQ", NULL, MS_BIND|MS_REC, NULL) = 0
[pid  2892] mount("none", "/tmp/snap.rootfs_S5QwYQ", NULL, MS_REC|MS_SLAVE, NULL) = 0
[pid  2892] mount("/dev", "/tmp/snap.rootfs_S5QwYQ//dev", NULL, MS_BIND|MS_REC, NULL) = -1 ENOENT (No such file or directory)
cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_S5QwYQ//dev: No such file or directory
[pid  2892] +++ exited with 1 +++
--- SIGINT {si_signo=SIGINT, si_code=SI_USER, si_pid=2892, si_uid=1000} ---
+++ killed by SIGINT +++
error: exit status 1

Can you also attach the output of ls -l /snap/core18/ ?

Absolutely! Thank you.

$ ls -l /snap/core18/
total 4.0K
drwxr-xr-x 2 root root 4.0K Jun 8 16:07 2066/
lrwxrwxrwx 1 root root 4 Jun 8 16:07 current -> 2066/

Hm I am puzzled now. Does ls -l /snap/core18/current/ show anything

It seems not?

$ ls -l /snap/core18/current/
total 0

All right, that explains why mount is getting ENOENT. Now we need to determine why the snap isn’t mounted. What’s the output of systemctl status snap-core18-2066.mount ?

Also please attach the output of journalctl -u snap-core18-2066.mount.

I get the following:

$ systemctl status snap-core18-2066.mount
● snap-core18-2066.mount - Mount unit for core18, revision 2066
Loaded: loaded (/etc/systemd/system/snap-core18-2066.mount; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2021-06-09 11:24:45 EDT; 1 day 18h ago
Where: /snap/core18/2066
What: /var/lib/snapd/snaps/core18_2066.snap

and

$ sudo journalctl -u snap-core18-2066.mount
– Logs begin at Wed 2021-06-09 11:24:40 EDT, end at Fri 2021-06-11 06:22:49 EDT. –
Jun 09 11:24:45 vault systemd[1]: Mounting Mount unit for core18, revision 2066…
Jun 09 11:24:45 vault systemd[1]: Mounted Mount unit for core18, revision 2066.
Jun 09 11:24:45 vault systemd[1]: Unmounting Mount unit for core18, revision 2066…
Jun 09 11:24:45 vault systemd[1]: snap-core18-2066.mount: Succeeded.
Jun 09 11:24:45 vault systemd[1]: Unmounted Mount unit for core18, revision 2066.