Acestreamplayer doesnt start

hi all,

from an update of my ubuntu 20.04, acestreamplayer cant start.

#snap list
Nombre             Versión             Rev    Seguimiento      Editor      Notas
acestreamplayer    3.1.49-snap5        12     latest/stable    vasilisc    -
bare               1.0                 5      latest/stable    canonical✓  base
core18             20211215            2284   latest/stable    canonical✓  base
core20             20211129            1270   latest/stable    canonical✓  base
gnome-3-34-1804    0+git.3556cb3       77     latest/stable/…  canonical✓  -
gnome-3-38-2004    0+git.cd626d1       87     latest/stable    canonical✓  -
gtk-common-themes  0.1-59-g7bca6ae     1519   latest/stable/…  canonical✓  -
snap-store         3.36.0-74-ga164ec9  433    latest/stable/…  canonical✓  -
snapd              2.53.4              14295  latest/stable    canonical✓  snapd


#SNAP_CONFINE_DEBUG=1 snap run acestreamplayer.engine
DEBUG: umask reset, old umask was   02
DEBUG: security tag: snap.acestreamplayer.engine
DEBUG: executable:   /usr/lib/snapd/snap-exec
DEBUG: confinement:  non-classic
DEBUG: base snap:    core18
DEBUG: ruid: 59999, euid: 0, suid: 0
DEBUG: rgid: 59999, egid: 59999, sgid: 59999
DEBUG: apparmor extensions to the system are not available
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:59999 (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:59999 (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:59999 (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:59999 (change: yes)
DEBUG: opening lock file: /run/snapd/lock/acestreamplayer.lock
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:59999 (change: yes)
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope acestreamplayer, uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: initializing mount namespace: acestreamplayer
DEBUG: setting up device cgroup
DEBUG: cannot find current tags symbol: /lib/x86_64-linux-gnu/libudev.so.1: undefined symbol: udev_device_has_current_tag
DEBUG: no current tags support present
DEBUG: no devices tagged with snap_acestreamplayer_engine, skipping device cgroup setup
DEBUG: forked support process 9517
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_mIvzNl
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: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:59999 (change: yes)
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:59999 (change: yes)
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: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:59999 (change: yes)
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: pivot_root /tmp/snap.rootfs_mIvzNl /tmp/snap.rootfs_mIvzNl//var/lib/snapd/hostfs
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: rmdir /var/lib/snapd/hostfs//tmp/snap.rootfs_mIvzNl
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: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:59999 (change: yes)
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: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: calling snapd tool snap-update-ns
DEBUG: waiting for snapd tool snap-update-ns to terminate
common.go:60: DEBUG: locking mount namespace of snap "acestreamplayer"
common.go:81: DEBUG: freezing processes of snap "acestreamplayer"

#/snap/bin/acestreamplayer
cannot create /sys/fs/bpf/snap directory: No such file or directory

i reinstalled acestream package and snapd…any idea for a fix or workaround?

Your system seems to be in a weird state. You indicated that this is a Ubuntu 20.04 installation, but the system appears to be using cgroup v2 which is a feature that was only made available in Ubuntu 21.10. What’s more, this seems to be incomplete as /sys/fs/bpf mount appears to be missing. Are you using some custom kernel?

Please attach the output of:

  • snap version
  • ls -l /sys/fs/cgroup
  • stat -f /sys/fs/cgroup

thanks for your reply. Im using qnap linux based on ubuntu 20.04

$ snap version
snap    2.53.4
snapd   2.53.4
series  16
ubuntu  20.04
kernel  5.10.60-qnap

$ ls -l /sys/fs/cgroup/
total 0
-r--r--r--   1 root root 0 Jan 24 16:57 cgroup.controllers
-rw-r--r--   1 root root 0 Jan 24 16:57 cgroup.max.depth
-rw-r--r--   1 root root 0 Jan 24 16:57 cgroup.max.descendants
-rw-r--r--   1 root root 0 Jan 24 16:57 cgroup.procs
-r--r--r--   1 root root 0 Jan 24 16:57 cgroup.stat
-rw-r--r--   1 root root 0 Jan 24 16:57 cgroup.subtree_control
-rw-r--r--   1 root root 0 Jan 24 16:57 cgroup.threads
-r--r--r--   1 root root 0 Jan 24 16:57 cpu.stat
drwxr-xr-x   2 root root 0 Jan 18 17:06 init.scope
drwxr-xr-x 145 root root 0 Jan 24 16:51 system.slice
drwxr-xr-x   4 root root 0 Jan 23 00:55 user.slice

~$ stat -f /sys/fs/cgroup/
  Fichero: "/sys/fs/cgroup/"
    ID: 0        Longnombre: 255     Tipo: cgroup2fs
Tam. bloque: 4096       Tam. bloque fundamental: 4096
Bloques: Total: 0          Libres: 0          Disponibles: 0
Nodos-i: Total: 0          Libres: 0

This is slightly unexpected. Can you also attach the output of:

  • sudo stat -f /sys/fs/bpf
  • sudo ls /sys/fs

of course:

ls -l /sys/fs/
total 0
dr-xr-xr-x 5 root root 0 Jan 23 00:55 cgroup
drwxr-xr-x 2 root root 0 Jan 25 12:59 ecryptfs
drwxr-xr-x 7 root root 0 Jan 25 12:59 ext4
drwxr-xr-x 3 root root 0 Jan 23 00:55 fuse
drwxr-xr-x 3 root root 0 Jan 25 12:59 nfs
dr-xr-xr-x 2 root root 0 Jan 18 16:58 pstore

Can you confirm that there is BPF support for cgroups (CONFIG_CGROUP_BPF) is enabled in the kernel you have? Usually this will be either exposed via /proc/config.gz or there can be a file under /boot eg. /boot/config-5.4.0-42-generic on Ubuntu 20.04. Since it’s a custom kernel the setup might be a little different, so you’ll have to figure it out ourself or just ask QNAP.

Also, since the system is using cgroup v2, snapd will install a BPF program in the cgroup of a snap to perform device filtering. If your kernel is built without CONFIG_CGROUP_BPF snaps will not work. In this case I suggest you contact the vendor who provided this kernel and ask them to enable the feature.

thank you so much,

i will investigate your last reply and if i find a solution i will post here.

thank you for your help and sorry for my ignorance