PMS Snap Erroring on PTS access

Server Version#:

snap info plexmediaserver
name:      plexmediaserver
summary:   Your media on all your devices.
publisher: Plex, Inc. (plexinc✓)
store-url: https://snapcraft.io/plexmediaserver
contact:   http://plex.tv/
license:   unset
description: |
  Plex makes it possible to enjoy all of your media, whether in your living
  room, the car, or on a boat in the South Pacific!
  .
  You can manage your media by browsing to http://localhost:32400/manage
commands:
  - plexmediaserver.pms-web
services:
  plexmediaserver: simple, enabled, inactive
snap-id:      85SmCU9pNtVq5DHmKJwbZsgbNqkG7wPR
tracking:     latest/stable
refresh-date: today at 05:24 UTC
channels:
  latest/stable:    1.41.4.9463-630c9f557 2025-02-12 (468) 91MB -
  latest/candidate: ↑                                           
  latest/beta:      ↑                                           
  latest/edge:      ↑                                           
installed:          1.41.4.9463-630c9f557            (468) 91MB devmode

On starting:

snap logs plexmediaserver
2025-02-20T05:25:15Z systemd[1]: Started Service for snap application plexmediaserver.plexmediaserver.
2025-02-20T05:25:15Z plexmediaserver.plexmediaserver[3564]: cannot perform operation: mount -t devpts --make-slave --make-private -o acl,relatime,kernmount,iversion,active,nouser,0xffffffff00000000 devpts /dev/pts: Permission denied
2025-02-20T05:25:15Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Main process exited, code=exited, status=1/FAILURE
2025-02-20T05:25:15Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Failed with result 'exit-code'.
2025-02-20T05:25:15Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Service hold-off time over, scheduling restart.
2025-02-20T05:25:15Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Scheduled restart job, restart counter is at 5.
2025-02-20T05:25:15Z systemd[1]: Stopped Service for snap application plexmediaserver.plexmediaserver.
2025-02-20T05:25:15Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Start request repeated too quickly.
2025-02-20T05:25:15Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Failed with result 'exit-code'.
2025-02-20T05:25:15Z systemd[1]: Failed to start Service for snap application plexmediaserver.plexmediaserver.

It seems like the real fix to me is not failing when you can’t access a tty. It seems like it shouldn’t be a requirement. But a secondary fix would be to add the tty permission to the snap.

:wave:

Any update or information here?

I’ve tried to replicate this on Ubuntu and cannot.

Can you provide more info here about the host OS and runtime ?

I suspect there is something unique about your environment because if it were a fundamental problem, we would be seeing a lot of complaints about it.

Ah, hmm. Okay. I’m running in an LXC container under LXD. It probably has a slightly different TTY setup as they’re virtualized.

If you could give me more information about what Plex is trying to do there I could probably debug the settings on the machine.

Looking now it also seems to be bionic. Which is the LTS when I set it up. That could be the issue. Gonna try upgrading to a modern LTS.

Before you do …

In the container’s config, do you have security.nesting: true ?

Snaps are containers therefore a snap in a LXC is a nested container.

Yes, I do have that set.

You asked about what Plex is doing with the TTY.

It’s not doing anything with /dev/tty as much as it is writing messages to /dev/console for certain events. There aren’t many times when it does but it does happen.

You said you are running this on Ubuntu 18.04 base ?

Hmm, I wonder if it is hitting one of those error cases.

I have upgraded the LXC container to 24.04 and I’m still getting the same error message:

2025-02-28T18:49:58Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Failed with result 'exit-code'.
2025-02-28T18:49:59Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Scheduled restart job, restart counter is at 4.
2025-02-28T18:49:59Z systemd[1]: Started snap.plexmediaserver.plexmediaserver.service - Service for snap application plexmediaserver.plexmediaserver.
2025-02-28T18:49:59Z plexmediaserver.plexmediaserver[1642]: cannot perform operation: mount -t devpts --make-slave --make-private -o acl,relatime,kernmount,iversion,active,nouser,0xffffffff00000000 devpts /dev/pts: Permission denied
2025-02-28T18:49:59Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Main process exited, code=exited, status=1/FAILURE
2025-02-28T18:49:59Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Failed with result 'exit-code'.
2025-02-28T18:49:59Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Scheduled restart job, restart counter is at 5.
2025-02-28T18:49:59Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Start request repeated too quickly.
2025-02-28T18:49:59Z systemd[1]: snap.plexmediaserver.plexmediaserver.service: Failed with result 'exit-code'.
2025-02-28T18:49:59Z systemd[1]: Failed to start snap.plexmediaserver.plexmediaserver.service - Service for snap application plexmediaserver.plexmediaserver.

Not sure it is even getting to the plex binary.

root@plex:~# snap run --debug-log plexmediaserver                                                                                                                                             
2025/02/28 19:03:17.421968 logger.go:99: DEBUG: enabled debug logging of early snap startup                                                                                                   
2025/02/28 19:03:17.427623 logger.go:99: DEBUG: executing snap-confine from /snap/snapd/23545/usr/lib/snapd/snap-confine                                                                      
2025/02/28 19:03:17.431789 logger.go:99: DEBUG: SELinux not enabled                                                                                                                           
2025/02/28 19:03:17.436730 logger.go:99: DEBUG: service app not tracked by systemd                                                                                                            
2025/02/28 19:03:17.436786 logger.go:99: DEBUG: creating transient scope snap.plexmediaserver.plexmediaserver                                                                                 
2025/02/28 19:03:17.436825 logger.go:99: DEBUG: session bus is not available: cannot find session bus                                                                                         
2025/02/28 19:03:17.436836 logger.go:99: DEBUG: falling back to system bus                                                                                                                    
2025/02/28 19:03:17.437995 logger.go:99: DEBUG: using system bus now, session bus was not available                                                                                           
2025/02/28 19:03:17.442375 logger.go:99: DEBUG: create transient scope job: /org/freedesktop/systemd1/job/3520                                                                                
2025/02/28 19:03:17.445126 logger.go:99: DEBUG: waited 7.053112ms for tracking                                                                                                                
2025/02/28 19:03:17.445193 logger.go:99: DEBUG: -- snap startup {"stage":"snap to snap-confine", "time":"1740769397.445167"}                                                                  
DEBUG: -- snap startup {"stage":"snap-confine enter", "time":"1740769397.450253"}                                                                                                             
DEBUG: SNAP_MOUNT_DIR (probed): /snap                                                                                                                                                         
DEBUG: umask reset, old umask was  022                                                                                                                                                        
DEBUG: security tag: snap.plexmediaserver.plexmediaserver                                                                                                                                     
DEBUG: executable:   /usr/lib/snapd/snap-exec                                                                                                                                                 
DEBUG: confinement:  non-classic                                                                                                                                                              
DEBUG: base snap:    core22                                                                                                                                                                   
DEBUG: ruid: 0, euid: 0, suid: 0                                                                                                                                                              
DEBUG: rgid: 0, egid: 0, sgid: 0                                                                                                                                                              
DEBUG: apparmor label on snap-confine is: /snap/snapd/23545/usr/lib/snapd/snap-confine                                                                                                        
DEBUG: apparmor mode is: enforce                                                                                                                                                              
DEBUG: -- snap startup {"stage":"snap-confine mount namespace start", "time":"1740769397.451231"}                                                                                             
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:0 (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:0 (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:0 (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                                                                                                                                       [58/40991]
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)                                                                                                                         
DEBUG: opening lock file: /run/snapd/lock/plexmediaserver.lock                                                                                                                                
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)                                                                                                                         
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)                                                                                                                         
DEBUG: sanity timeout initialized and set for 30 seconds                                                                                                                                      
DEBUG: acquiring exclusive lock (scope plexmediaserver, uid 0)                                                                                                                                
DEBUG: sanity timeout reset and disabled                                                                                                                                                      
DEBUG: initializing mount namespace: plexmediaserver                                                                                                                                          
DEBUG: detected container environment: lxc                                                                                                                                                    
DEBUG: device cgroup skipped, snap in non-strict confinement                                                                                                                                  
DEBUG: forked support process 2476                                                                                                                                                            
DEBUG: unsharing the mount namespace (per-snap)                                                                                                                                               
DEBUG: changing apparmor hat to mount-namespace-capture-helper                                                                                                                                
DEBUG: helper process waiting for command                                                                                                                                                     
DEBUG: sanity timeout initialized and set for 30 seconds                                                                                                                                      
DEBUG: scratch directory for constructing namespace: /tmp/snap.rootfs_D7NlMy                                                                                                                  
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: saved rootfs fstab entry to /run/snapd/ns/snap.plexmediaserver.fstab                                                                                                                   
DEBUG: performing operation: (disabled) use debug build to see details                                                                                                                        
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (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: 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: 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                                                                                                                        
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                                                                                                                        
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                                                                                                                        
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                                                                                                                        
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
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (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:0 (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:0 (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: 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
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:0 (change: yes)
DEBUG: opening file describing nvidia driver version
DEBUG: looking for nvidia canary file /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.470.256.02
DEBUG: opening file describing nvidia driver version
DEBUG: opening file describing nvidia driver version
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: mounting tmpfs at /tmp/snap.rootfs_D7NlMy/var/lib/snapd/lib/vulkan
DEBUG: remounting tmpfs as read-only /tmp/snap.rootfs_D7NlMy/var/lib/snapd/lib/vulkan
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: set_effective_identity uid:0 (change: no), gid:0 (change: yes)
DEBUG: mounting tmpfs at /tmp/snap.rootfs_D7NlMy/var/lib/snapd/lib/glvnd
DEBUG: remounting tmpfs as read-only /tmp/snap.rootfs_D7NlMy/var/lib/snapd/lib/glvnd
DEBUG: performing operation: pivot_root /tmp/snap.rootfs_D7NlMy /tmp/snap.rootfs_D7NlMy//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_D7NlMy
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:0 (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
cannot perform operation: mount -t devpts --make-slave --make-private -o acl,relatime,kernmount,iversion,active,nouser,0xffffffff00000000 devpts /dev/pts: Permission denied
DEBUG: sanity timeout reset and disabled
DEBUG: helper process received command -1

Tried removing the GPU pass through with:

$ lxc config device remove plex gpu

Didn’t help. Readded it.

$ lxc config device add plex gpu gpu gputype=physical id=nvidia.com/gpu=0

What’s the ultimate goal here; Run PMS, with GPU, in a LXC ?

If so, that’s trivial to accomplish

Sure. But using the snap means it auto-upgrades nicely. No dpkg problems. It has done so for almost five years :slight_smile: So the goal is really to never have to touch it, and have it just work.

When you enable the repo, it will update as well.
Doing so would be two commands, both of which can be cron automated.

lxc exec <containername> -- apt update
lxc exec <containername> -- apt -y upgrade

A crontab entry can run this as a script

We may have to agree to disagree on that. I’ve done a bunch of work in this area and I can confidently say that’s a dream. When ever a package can change the state of the system directly without checkpoints consistent upgrades is hopeful. Rollbacks are impossible.

You say the snap is working in other setups. So I think I’ll rebuild my image to use that. I think there must be something configured weird in my container that is forcing Plex out of whack.

I just:

  • created a fresh lxc container, ubuntu 22.04 based.
  • apt update && apt upgrade
  • installed snap and snapd
  • snap install plexmediaserver

Results below

root@snap:~# apt update
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease     
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2,352 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,192 kB]
Fetched 3,802 kB in 1s (3,029 kB/s)                        
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@snap:~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@snap:~# apt install snap
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  snap
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 377 kB of archives.
After this operation, 2,756 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 snap amd64 2013-11-29-11 [377 kB]
Fetched 377 kB in 1s (497 kB/s)
Selecting previously unselected package snap.
(Reading database ... 16327 files and directories currently installed.)
Preparing to unpack .../snap_2013-11-29-11_amd64.deb ...
Unpacking snap (2013-11-29-11) ...
Setting up snap (2013-11-29-11) ...
root@snap:~# snap refresh
-bash: snap: command not found
root@snap:~# which snap
root@snap:~# systemctl start snapd
Failed to start snapd.service: Unit snapd.service not found.
root@snap:~# apt install snapd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  apparmor dbus-user-session dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm
  libassuan0 libksba8 libldap-2.5-0 libldap-common liblzo2-2 libnpth0 libsasl2-2 libsasl2-modules libsasl2-modules-db
  pinentry-curses squashfs-tools
Suggested packages:
  apparmor-profiles-extra apparmor-utils pinentry-gnome3 tor parcimonie xloadimage scdaemon libsasl2-modules-gssapi-mit
  | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql pinentry-doc zenity
  | kdialog
The following NEW packages will be installed:
  apparmor dbus-user-session dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm
  libassuan0 libksba8 libldap-2.5-0 libldap-common liblzo2-2 libnpth0 libsasl2-2 libsasl2-modules libsasl2-modules-db
  pinentry-curses snapd squashfs-tools
0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.1 MB of archives.
After this operation, 120 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 apparmor amd64 3.0.4-2ubuntu2.4 [598 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 dbus-user-session amd64 1.12.20-2ubuntu4.1 [9,442 B]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libassuan0 amd64 2.5.5-1build1 [38.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gpgconf amd64 2.2.27-3ubuntu2.1 [94.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libksba8 amd64 1.6.0-2ubuntu0.2 [119 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg2-3ubuntu1.2 [20.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-2 amd64 2.1.27+dfsg2-3ubuntu1.2 [53.8 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-2.5-0 amd64 2.5.18+dfsg-0ubuntu0.22.04.3 [183 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnpth0 amd64 1.6-3build2 [8,664 B]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 dirmngr amd64 2.2.27-3ubuntu2.1 [293 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gnupg-l10n all 2.2.27-3ubuntu2.1 [54.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gnupg-utils amd64 2.2.27-3ubuntu2.1 [308 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gpg amd64 2.2.27-3ubuntu2.1 [519 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 pinentry-curses amd64 1.1.1-1build2 [34.4 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gpg-agent amd64 2.2.27-3ubuntu2.1 [209 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gpg-wks-client amd64 2.2.27-3ubuntu2.1 [62.7 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gpg-wks-server amd64 2.2.27-3ubuntu2.1 [57.5 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gpgsm amd64 2.2.27-3ubuntu2.1 [197 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gnupg all 2.2.27-3ubuntu2.1 [315 kB]
Get:20 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-common all 2.5.18+dfsg-0ubuntu0.22.04.3 [15.8 kB]
Get:21 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblzo2-2 amd64 2.10-2build3 [53.7 kB]
Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules amd64 2.1.27+dfsg2-3ubuntu1.2 [68.8 kB]
Get:23 http://archive.ubuntu.com/ubuntu jammy/main amd64 squashfs-tools amd64 1:4.5-3build1 [159 kB]
Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 snapd amd64 2.66.1+22.04 [27.6 MB]
Fetched 31.1 MB in 2s (12.8 MB/s) 
Preconfiguring packages ...
Selecting previously unselected package apparmor.
(Reading database ... 16407 files and directories currently installed.)
Preparing to unpack .../00-apparmor_3.0.4-2ubuntu2.4_amd64.deb ...
Unpacking apparmor (3.0.4-2ubuntu2.4) ...
Selecting previously unselected package dbus-user-session.
Preparing to unpack .../01-dbus-user-session_1.12.20-2ubuntu4.1_amd64.deb ...
Unpacking dbus-user-session (1.12.20-2ubuntu4.1) ...
Selecting previously unselected package libassuan0:amd64.
Preparing to unpack .../02-libassuan0_2.5.5-1build1_amd64.deb ...
Unpacking libassuan0:amd64 (2.5.5-1build1) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../03-gpgconf_2.2.27-3ubuntu2.1_amd64.deb ...
Unpacking gpgconf (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../04-libksba8_1.6.0-2ubuntu0.2_amd64.deb ...
Unpacking libksba8:amd64 (1.6.0-2ubuntu0.2) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../05-libsasl2-modules-db_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../06-libsasl2-2_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Selecting previously unselected package libldap-2.5-0:amd64.
Preparing to unpack .../07-libldap-2.5-0_2.5.18+dfsg-0ubuntu0.22.04.3_amd64.deb ...
Unpacking libldap-2.5-0:amd64 (2.5.18+dfsg-0ubuntu0.22.04.3) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../08-libnpth0_1.6-3build2_amd64.deb ...
Unpacking libnpth0:amd64 (1.6-3build2) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../09-dirmngr_2.2.27-3ubuntu2.1_amd64.deb ...
Unpacking dirmngr (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../10-gnupg-l10n_2.2.27-3ubuntu2.1_all.deb ...
Unpacking gnupg-l10n (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../11-gnupg-utils_2.2.27-3ubuntu2.1_amd64.deb ...
Unpacking gnupg-utils (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package gpg.
Preparing to unpack .../12-gpg_2.2.27-3ubuntu2.1_amd64.deb ...
Unpacking gpg (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../13-pinentry-curses_1.1.1-1build2_amd64.deb ...
Unpacking pinentry-curses (1.1.1-1build2) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../14-gpg-agent_2.2.27-3ubuntu2.1_amd64.deb ...
Unpacking gpg-agent (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../15-gpg-wks-client_2.2.27-3ubuntu2.1_amd64.deb ...
Unpacking gpg-wks-client (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../16-gpg-wks-server_2.2.27-3ubuntu2.1_amd64.deb ...
Unpacking gpg-wks-server (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../17-gpgsm_2.2.27-3ubuntu2.1_amd64.deb ...
Unpacking gpgsm (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../18-gnupg_2.2.27-3ubuntu2.1_all.deb ...
Unpacking gnupg (2.2.27-3ubuntu2.1) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../19-libldap-common_2.5.18+dfsg-0ubuntu0.22.04.3_all.deb ...
Unpacking libldap-common (2.5.18+dfsg-0ubuntu0.22.04.3) ...
Selecting previously unselected package liblzo2-2:amd64.
Preparing to unpack .../20-liblzo2-2_2.10-2build3_amd64.deb ...
Unpacking liblzo2-2:amd64 (2.10-2build3) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../21-libsasl2-modules_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Selecting previously unselected package squashfs-tools.
Preparing to unpack .../22-squashfs-tools_1%3a4.5-3build1_amd64.deb ...
Unpacking squashfs-tools (1:4.5-3build1) ...
Selecting previously unselected package snapd.
Preparing to unpack .../23-snapd_2.66.1+22.04_amd64.deb ...
Unpacking snapd (2.66.1+22.04) ...
Setting up libksba8:amd64 (1.6.0-2ubuntu0.2) ...
Setting up libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Setting up liblzo2-2:amd64 (2.10-2build3) ...
Setting up libnpth0:amd64 (1.6-3build2) ...
Setting up libassuan0:amd64 (2.5.5-1build1) ...
Setting up libldap-common (2.5.18+dfsg-0ubuntu0.22.04.3) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Setting up apparmor (3.0.4-2ubuntu2.4) ...
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service → /lib/systemd/system/apparmor.service.
Reloading AppArmor profiles 
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Setting up dbus-user-session (1.12.20-2ubuntu4.1) ...
Setting up gnupg-l10n (2.2.27-3ubuntu2.1) ...
Setting up libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
Setting up gpgconf (2.2.27-3ubuntu2.1) ...
Setting up gpg (2.2.27-3ubuntu2.1) ...
Setting up gnupg-utils (2.2.27-3ubuntu2.1) ...
Setting up pinentry-curses (1.1.1-1build2) ...
Setting up gpg-agent (2.2.27-3ubuntu2.1) ...
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-browser.socket → /usr/lib/systemd/user/gpg-agent-browser.socke
t.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-extra.socket → /usr/lib/systemd/user/gpg-agent-extra.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket → /usr/lib/systemd/user/gpg-agent-ssh.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent.socket → /usr/lib/systemd/user/gpg-agent.socket.
Setting up squashfs-tools (1:4.5-3build1) ...
Setting up gpgsm (2.2.27-3ubuntu2.1) ...
Setting up libldap-2.5-0:amd64 (2.5.18+dfsg-0ubuntu0.22.04.3) ...
Setting up dirmngr (2.2.27-3ubuntu2.1) ...
Created symlink /etc/systemd/user/sockets.target.wants/dirmngr.socket → /usr/lib/systemd/user/dirmngr.socket.
Setting up gpg-wks-server (2.2.27-3ubuntu2.1) ...
Setting up snapd (2.66.1+22.04) ...
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.apparmor.service → /lib/systemd/system/snapd.apparmor.service
.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.autoimport.service → /lib/systemd/system/snapd.autoimport.ser
vice.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.core-fixup.service → /lib/systemd/system/snapd.core-fixup.ser
vice.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.recovery-chooser-trigger.service → /lib/systemd/system/snapd.
recovery-chooser-trigger.service.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service.
Created symlink /etc/systemd/system/cloud-final.service.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service.
Unit /lib/systemd/system/snapd.seeded.service is added as a dependency to a non-existent unit cloud-final.service.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /lib/systemd/system/snapd.service.
Created symlink /etc/systemd/system/timers.target.wants/snapd.snap-repair.timer → /lib/systemd/system/snapd.snap-repair.timer.
Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /lib/systemd/system/snapd.socket.
Created symlink /etc/systemd/system/final.target.wants/snapd.system-shutdown.service → /lib/systemd/system/snapd.system-shutdow
n.service.
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.mounts.target is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.
Setting up gpg-wks-client (2.2.27-3ubuntu2.1) ...
Setting up gnupg (2.2.27-3ubuntu2.1) ...
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.9) ...
root@snap:~# snap list
No snaps are installed yet. Try 'snap install hello-world'.
root@snap:~# snap install hello-world
2025-02-28T19:53:08Z INFO Waiting for automatic snapd restart...
hello-world 6.4 from Canonical✓ installed
root@snap:~# snap run hello-world
Hello World!
root@snap:~# snap install plexmediaserver
plexmediaserver 1.41.4.9463-630c9f557 from Plex, Inc. (plexinc✓) installed
root@snap:~# snap start plexmediaserver
Started.
root@snap:~# ps -ef | grep -i plexm
root        4625       1  0 19:53 ?        00:00:01 snapfuse /var/lib/snapd/snaps/plexmediaserver_468.snap /snap/plexmediaserver/468 -o ro,nodev,allow_other,suid
root        4905       1  0 19:53 ?        00:00:00 /bin/bash /snap/plexmediaserver/468/wrapper.sh
root        4964    4905  0 19:53 ?        00:00:00 /bin/bash /snap/plexmediaserver/468/wrapper.sh
root        4983    4965  0 19:53 ?        00:00:00 Plex Plug-in [com.plexapp.system] /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.41.4.9463-630c9f557 /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/System.bundle
root        5029    4965  0 19:53 ?        00:00:00 /snap/plexmediaserver/468/Plex Tuner Service /snap/plexmediaserver/468/Resources/Tuner/Private /snap/plexmediaserver/468/Resources/Tuner/Shared 1.41.4.9463-630c9f557 32600
root        5135    4965  0 19:53 ?        00:00:00 Plex Plug-in [com.plexapp.agents.lyricfind] /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.41.4.9463-630c9f557 /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/LyricFind.bundle
root        5142    4965  0 19:53 ?        00:00:00 Plex Plug-in [com.plexapp.agents.movieposterdb] /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.41.4.9463-630c9f557 /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/MoviePosterDB.bundle
root        5194    4965  0 19:53 ?        00:00:00 Plex Plug-in [org.musicbrainz.agents.music] /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.41.4.9463-630c9f557 /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/Musicbrainz.bundle
root        5205    4965  0 19:53 ?        00:00:00 Plex Plug-in [com.plexapp.agents.none] /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.41.4.9463-630c9f557 /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/PersonalMedia.bundle
root        5265    4965  0 19:53 ?        00:00:00 Plex Plug-in [com.plexapp.agents.themoviedb] /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.41.4.9463-630c9f557 /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/TheMovieDB.bundle
root        5297    4965  0 19:53 ?        00:00:00 Plex Plug-in [com.plexapp.agents.plexthememusic] /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.41.4.9463-630c9f557 /snap/plexmediaserver/468/Resources/Plug-ins-630c9f557/PlexThemeMusic.bundle
root        5362     205  0 19:54 pts/1    00:00:00 grep --color=auto -i plexm
root@snap:~# 

With Plex stopped, I’d make a tar.gz from /var/snap/plexmediaserver/common to preserve “Library”)

Now you can update / create as you deem appropriate.

1 Like

Long story short, I was wrong that this was in any way related to the Plex snap. It was just the one showing the symptoms.

Turns out the underlying machine was having issues and was bubbling up through to make that happen. When I tried to create a new container, I got exactly the same issues. I tried to upgrade the deb based machine under it, and it corrupted the boot partitions and made the system nonrecoverable. I’ve now rebuild the machine underneath to be image based and things are happy.

What’s awesome is that I apparently hadn’t saved my Library correctly, but snap on the last upgrade made a snapshot of the library and I was able to use snap to recover all my settings as well.

Thanks @ChuckPa for your help, sorry it turned out to not be a Plex issue at all.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.