Snap error of missng yaml file

Summary

snap error of missing yaml file but the file exists so i don’t know what the real error is.
I’m sorry i can not be more helpful in the error. i also included my sysinfo screen for more info
one thing of note is on both of them there bin folder only contains the receptive .desktop files i think it may be important

Process

on my system all i did was install obs-studio and QOwnNotes both with the same result shown in the screen shots attached

Current and expected result

I expected to have obs-studio launch normally

Screenshot



What’s the output of snap version and snap run obs-studio?

Can you double check you are using snapd 2.33.1-1 from AUR? It includes a fix for improved detection of Arch derivatives.

snap version is

snap 2.33.1-1
snapd 2.33.1-1
series 16
antergos -
kernel 4.17.3-1-ARCH

I’ve updated snapd package to 2.33.1-3 with some fixes for Antergos. Can you reinstall the package?

yes i can re install it

EDIT:
result of snap var and snap run obs-studio

snap version
snap 2.33.1-3
snapd 2.33.1-1
series 16
antergos -
kernel 4.17.3-1-ARCH

snap run obs-studio
error: cannot find current revision for snap obs-studio: readlink /var/lib/snapd/snap/obs-studio/current: no such file or directory

bump just to keep alive

bump to keep alive i am still having this issue

more recent snap version
snap 2.34.3-1
snapd 2.34.3-1
series 16
antergos -
kernel 4.18.1-arch1-1-ARCH

snap run obs-studio has no change in output

Can you post:

  • snap debug paths
  • snap list
  • ls -l /
  • ls -l /var/lib/snapd
  • ls -l /var/lib/snapd/snap/obs-studio
$ snap debug paths
error: unknown command "debug", see 'snap help'

$ snap list
Name               Version            Rev   Tracking  Publisher     Notes
core               16-2.34.3          5145  stable    canonical     core
gtk-common-themes  0.1                319   stable    canonical     -
hello-world                           27    stable    canonical     broken
obs-studio                            100   edge      snapcrafters  disabled,broken
qownnotes          18.08.4            1070  stable    pbek          -
telegram-desktop   1.3.10-5-g90f4187  270   stable    3v1n0         -


$ ls -l /
total 53
lrwxrwxrwx   1 root root     7 Jan  5  2018 bin -> usr/bin
drwxr-xr-x   5 root root  1024 Aug 20 00:34 boot
drwxr-xr-x  21 root root  4120 Aug 19 15:22 dev
drwxr-xr-x  92 root root  4096 Aug 20 00:34 etc
drwxr-xr-x   4 root root  4096 Apr  8 20:37 home
lrwxrwxrwx   1 root root     7 Jan  5  2018 lib -> usr/lib
lrwxrwxrwx   1 root root     7 Jan  5  2018 lib64 -> usr/lib
drwx------   2 root root 16384 Apr  8 19:58 lost+found
drwxr-xr-x   2 root root  4096 Jan  5  2018 mnt
drwxr-xr-x   7 root root  4096 Aug 13 01:23 opt
dr-xr-xr-x 221 root root     0 Aug 19 15:21 proc
drwxr-xr-x  11 root root  4096 Jul 11 17:33 root
drwxr-xr-x  24 root root   680 Aug 19 15:23 run
lrwxrwxrwx   1 root root     7 Jan  5  2018 sbin -> usr/bin
drwxr-xr-x   8 root root  4096 Jul  2 16:44 snap
drwxr-xr-x   4 root root  4096 Apr  8 20:09 srv
dr-xr-xr-x  13 root root     0 Aug 19 15:21 sys
drwxrwxrwt  19 root root   440 Aug 20 01:00 tmp
drwxr-xr-x   9 root root  4096 Aug 20 00:35 usr
drwxr-xr-x  13 root root  4096 Aug 19 15:21 var


$ ls -l /var/lib/snapd
total 92
drwxr-xr-x 4 root root  4096 Apr  8 23:32 assertions
drwx------ 2 root root  4096 Aug 12 01:09 cache
drwx------ 2 root root  4096 Jul 25 00:33 cookie
drwxr-xr-x 3 root root  4096 Apr  8 21:27 desktop
drwxr-xr-x 3 root root  4096 Apr  8 23:32 device
-rw------- 1 root root 32768 Jul  7 14:45 errtracker.db
drwxr-xr-x 2 root root  4096 Apr  8 21:27 hostfs
drwxr-xr-x 6 root root  4096 Jun 11 14:24 lib
drwxr-xr-x 2 root root  4096 Aug 14 21:42 mount
drwxr-xr-x 3 root root  4096 Apr  8 21:27 seccomp
drwxr-xr-x 8 root root  4096 Jul 25 00:34 snap
drwxr-xr-x 2 root root  4096 Aug 18 07:51 snaps
-rw------- 1 root root 13181 Aug 19 22:32 state.json
-rw-r--r-- 1 root root   214 Aug 19 15:22 system-key
d--------- 2 root root  4096 Apr  8 21:27 void


$ ls -l /var/lib/snapd/snap/obs-studio
ls: cannot access '/var/lib/snapd/snap/obs-studio': No such file or directory

Can you also post:

  • ls -l /etc/os-release
  • cat /etc/os-release
$ ls -l /etc/os-release
lrwxrwxrwx 1 root root 21 Apr  8 20:16 /etc/os-release -> ../usr/lib/os-release


$ cat /etc/os-release
NAME="Antergos Linux"
VERSION="18.4-ISO-Rolling"
ID="antergos"
ID_LIKE="arch"
PRETTY_NAME="Antergos Linux"
CPE_NAME="cpe:/o:antergosproject:antergos:18.4"
ANSI_COLOR="1;34;40"
HOME_URL="https://antergos.com/"
SUPPORT_URL="https://forum.antergos.com/"
BUG_REPORT_URL="https://github.com/antergos"

*note i had to break the links to post i added spaces

If you pasted it as preformatted text (indented by four spaces, or surrounded by triple backquotes), they don’t become links at all.

I’ve done that for you now.

We had a bug that was fixed in 2.34.2 where Antergos would be basically treated as it snap mount path is /snap instead of /var/lib/snapd/snap. You must have had the package & some snaps installed before the fix was landed in master.

What you can do now is:

  • backup /var/snap if there could be non-user data you care about
  • remove snapd (this does all the cleanup on a system where mount paths were correct)
  • systemctl --all |grep snap make sure that there are no snap mounts left
  • in case there are any do systemctl stop snap.<foo>.mount
  • rm -rf /snap
  • make sure that /var/lib/snapd is empty or does not exist
  • install snapd again
  • restore /var/snap/data
1 Like

thank you ill do that then report back

looks like it fixed it thanks :smiley: