I’m trying to snap jellyfin, which is a media server, like emby and plex. I’m having difficulty getting it started. I’ve put it in a repo at https://github.com/popey/jellyfin-snap along with a handy script to build, install and run it. It fails to launch and I get the following errors.
2020-03-17T19:58:51Z systemd[1]: Stopped Service for snap application jellyfin.jellyfin.
2020-03-17T19:58:51Z systemd[1]: snap.jellyfin.jellyfin.service: Start request repeated too quickly.
2020-03-17T19:58:51Z systemd[1]: snap.jellyfin.jellyfin.service: Failed with result 'exit-code'.
2020-03-17T19:58:51Z systemd[1]: Failed to start Service for snap application jellyfin.jellyfin.
I get the following security issues:
= AppArmor =
Time: Mar 17 20:27:33
Log: apparmor="DENIED" operation="open" profile="snap.jellyfin.jellyfin" name="/sys/fs/cgroup/memory/system.slice/snap.jellyfin.jellyfin.service/memory.limit_in_bytes" pid=782954 comm="jellyfin" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
File: /sys/fs/cgroup/memory/system.slice/snap.jellyfin.jellyfin.service/memory.limit_in_bytes (read)
Suggestion:
* adjust program to not access '/sys/fs/cgroup/memory/system.slice/snap.jellyfin.jellyfin.service/memory.limit_in_bytes'
= AppArmor =
Time: Mar 17 20:27:35
Log: apparmor="DENIED" operation="file_lock" profile="snap.jellyfin.jellyfin" name="/proc/1/cgroup" pid=782954 comm="jellyfin" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
File: /proc/1/cgroup (write)
Suggestion:
* adjust program to not access '@{PROC}/@{pid}/cgroup'
= AppArmor =
Time: Mar 17 20:27:35
Log: apparmor="DENIED" operation="file_lock" profile="snap.jellyfin.jellyfin" name="/sys/devices/virtual/net/lo/operstate" pid=782954 comm="jellyfin" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
File: /sys/devices/virtual/net/lo/operstate (write)
Suggestion:
* adjust program to not access '/sys/devices/virtual/net/lo/operstate'
= AppArmor =
Time: Mar 17 20:27:35
Log: apparmor="DENIED" operation="file_lock" profile="snap.jellyfin.jellyfin" name="/sys/devices/virtual/net/lo/flags" pid=782954 comm="jellyfin" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
File: /sys/devices/virtual/net/lo/flags (write)
Suggestion:
* adjust program to not access '/sys/devices/virtual/net/lo/flags'
= AppArmor =
Time: Mar 17 20:27:35
Log: apparmor="DENIED" operation="file_lock" profile="snap.jellyfin.jellyfin" name="/sys/devices/virtual/net/lo/speed" pid=782954 comm="jellyfin" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
File: /sys/devices/virtual/net/lo/speed (write)
Suggestion:
* adjust program to not access '/sys/devices/virtual/net/lo/speed'
= AppArmor =
Time: Mar 17 20:27:35
Log: apparmor="DENIED" operation="file_lock" profile="snap.jellyfin.jellyfin" name="/run/systemd/resolve/stub-resolv.conf" pid=782954 comm="jellyfin" requested_mask="k" denied_mask="k" fsuid=0 ouid=102
File: /run/systemd/resolve/stub-resolv.conf (write)
Suggestions:
* adjust program to use $SNAP_DATA
* adjust program to use /run/shm/snap.$SNAP_NAME.*
* adjust program to use /run/snap.$SNAP_NAME.*
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
I have the following connections:
Interface Plug Slot Notes
desktop jellyfin:desktop :desktop -
home jellyfin:home :home -
home jellyfin:home-all :home manual
mount-observe jellyfin:mount-observe :mount-observe manual
network jellyfin:network :network -
network-bind jellyfin:network-bind :network-bind -
network-control jellyfin:network-control :network-control manual
network-observe jellyfin:network-observe :network-observe manual
opengl jellyfin:opengl :opengl -
process-control jellyfin:process-control :process-control manual
removable-media jellyfin:removable-media :removable-media manual
Any ideas what I’m missing here?