Brand new Plex Server dont run

Hello,

i have install a new brand Debian 11 Server with Plex Media Server.
On Setup say please wait when plex ist starting…

Server Version#: 1.29.0.6244-819d3678c
Player Version#:

Logs:

Oct 8 13:21:01 h2988959 systemd[1]: Starting Plex Media Server…
Oct 8 13:21:01 h2988959 systemd[1]: Started Plex Media Server.
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: Traceback (most recent call last):
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py”, line 168, in
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: run()
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py”, line 148, in run
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: core = Framework.core.FrameworkCore(bundle_path, FRAMEWORK_DIR, config)
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py”, line 134, in init
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: self._setup_libraries()
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py”, line 372, in _setup_libraries
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: sys.path.insert(0, os.path.join(self.bundle_path, ‘Contents’, ‘Libraries’, self.runtime.os, self.runtime.cpu).encode(‘utf-8’))
Oct 8 13:21:03 h2988959 Plex Media Server[1853]: AttributeError: ‘FrameworkCore’ object has no attribute ‘runtime’
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: Traceback (most recent call last):
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py”, line 168, in
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: run()
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py”, line 148, in run
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: core = Framework.core.FrameworkCore(bundle_path, FRAMEWORK_DIR, config)
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py”, line 134, in init
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: self._setup_libraries()
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py”, line 372, in _setup_libraries
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: sys.path.insert(0, os.path.join(self.bundle_path, ‘Contents’, ‘Libraries’, self.runtime.os, self.runtime.cpu).encode(‘utf-8’))
Oct 8 13:21:03 h2988959 Plex Media Server[1851]: AttributeError: ‘FrameworkCore’ object has no attribute ‘runtime’
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: Traceback (most recent call last):
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py”, line 168, in
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: run()
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py”, line 148, in run
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: core = Framework.core.FrameworkCore(bundle_path, FRAMEWORK_DIR, config)
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py”, line 134, in init
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: self._setup_libraries()
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py”, line 372, in _setup_libraries
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: sys.path.insert(0, os.path.join(self.bundle_path, ‘Contents’, ‘Libraries’, self.runtime.os, self.runtime.cpu).encode(‘utf-8’))
Oct 8 13:21:03 h2988959 Plex Media Server[1849]: AttributeError: ‘FrameworkCore’ object has no attribute ‘runtime’
Oct 8 13:21:03 h2988959 Plex Media Server[1883]: libc++abi: terminating with uncaught exception of type boost::wrapexceptboost::thread_resource_error: boost::thread_resource_error: Resource temporarily unavailable
Oct 8 13:21:13 h2988959 : Critical: libusb_init failed
Oct 8 13:21:13 h2988959 Plex Media Server[1829]: Critical: libusb_init failed

@pri437

can you please create a tar.gz of the Logs directory and attach it?

I can’t see everything I need to see from the snippet

Which log directorys will you included in the .tar.gz?

"/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs"

this one please

EDIT: See post below from ChuckPa, This is probably not the solution.

You might try installing libusb. I’m not sure if that’s the root of your problem, but at a cursory glance, that’d be one of the next troubleshooting steps.
maybe:

sudo apt update
sudo apt install libusb python3-libusb -y

I don’t know for sure though. What I know about python could fill a thimble.

@TopherIsSwell

libusb isn’t the root cause here.
It’s used for USB tuners but not a required for PMS start.

Python 3 isn’t used.

Is this using Python2? If so, is there a migration strategy or is this just a third party script that running in these logs?

clarify please?

  1. your python 2 question. PMS still has a very very minimal amount of python2 (which ships with PMS).

  2. migration strategy ? Plex’s long term, which should be done for the scanners, is to remove all python from the core media agents.

Nice. That answers my question soundly. I’m using PMS using the official docker image, but I like to build my own containers, and it’s increasingly difficult to support python2, so it’s good news to hear that python (2 or otherwise) has a plan for obsolescence within Plex.

Thank you.

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