Closed lk10321 closed 2 years ago
Critical: libusb_init failed
is not the reason for your container not starting, it's really a harmless error even though it doesn't sound like it.
You probably need to look at the logs stored in appdata to get some clues.
Feb 23, 2022 11:51:27.775 [0x7fa798d37b38] INFO - Plex Tuner Service v1.0.0.0 - Docker Docker Container x86_64 - build: Feb 23, 2022 11:51:27.775 [0x7fa798d37b38] INFO - Linux version: 5.4.0-99-generic (#112-Ubuntu SMP Thu Feb 3 13:50:55 UTC 2022), language: en-US Feb 23, 2022 11:51:27.775 [0x7fa798d37b38] INFO - Processor Intel(R) Xeon(R) CPU X5650 @ 2.67GHz Feb 23, 2022 11:51:27.775 [0x7fa798d37b38] INFO - /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.25.6.5577-c8bd13540 32600 Feb 23, 2022 11:51:27.771 [0x7fa79a636848] INFO - [I] broker_t::start... Feb 23, 2022 11:51:27.777 [0x7fa79a636848] INFO - [I] device_manager_t::init. Feb 23, 2022 11:51:27.777 [0x7fa79a636848] INFO - [I] device_manager_t::init. Initialize provider manager Feb 23, 2022 11:51:27.777 [0x7fa79a636848] INFO - [I] device_manager_t::init. Initialize all device auxes Feb 23, 2022 11:51:27.777 [0x7fa79a636848] INFO - [I] dvb_device_factory_t::get_aux_list Feb 23, 2022 11:51:27.777 [0x7fa79a636848] INFO - [I] tvbutler_aux_t::init Feb 23, 2022 11:51:27.779 [0x7fa79a636848] INFO - [I] web_server_t::start. Starting web server on port 32600 Feb 23, 2022 11:51:35.502 [0x7fa798ad5b38] INFO - [I] web_service_t::process_device_discovery Feb 23, 2022 11:51:35.502 [0x7fa798ad5b38] INFO - [I] device_reactor_t::get_device_list () Feb 23, 2022 11:51:37.506 [0x7fa798ad5b38] INFO - [I] SAT2IP - discover_satip_servers(): no servers found Feb 23, 2022 11:51:37.925 [0x7fa798ad5b38] INFO - [I] v4l::DeviceGetList_impl. getting v4l device list Feb 23, 2022 11:51:37.929 [0x7fa798ad5b38] INFO - [I] onetv_factory::DeviceGetListEx >> Feb 23, 2022 11:51:37.929 [0x7fa798ad5b38] WARN - [W] onetv_factory::DeviceGetListEx. libusb_init returned an error -99
Still no error though
2022-02-23 12:16:47,328 (7fd7738bab38) : CRITICAL (storage:60) - Exception reading file /usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/WebClient.bundle/Contents/Info.plist (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 55, in load f = open(filename, mode) IOError: [Errno 2] No such file or directory: '/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/WebClient.bundle/Contents/Info.plist'
2022-02-23 12:16:47,331 (7fd7738bab38) : CRITICAL (bundleservice:141) - Exception adding bundle: WebClient.bundle (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 131, in update_bundles Log('Found duplicate identifier at %s for bundled plugin (%s), ignoring duplicate plugin.' % (path, bundle.identifier)) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 18, in init self.load_plist() File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 22, in load_plist plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, "Contents", "Info.plist"))) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 32, in ObjectFromString check_size(string, max_size) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 22, in check_size if len(data) > max_size: TypeError: object of type 'NoneType' has no len()
2022-02-23 12:16:47,404 (7fd772cb2b38) : CRITICAL (storage:60) - Exception reading file /usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/WebClient.bundle/Contents/Info.plist (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 55, in load f = open(filename, mode) IOError: [Errno 2] No such file or directory: '/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/WebClient.bundle/Contents/Info.plist'
2022-02-23 12:16:47,404 (7fd77301cb38) : WARNING (agentservice:169) - We weren't able to get information from the server about the agents. 2022-02-23 12:16:47,405 (7fd7738bab38) : DEBUG (peerservice:198) - Found 1 servers 2022-02-23 12:16:47,407 (7fd772e79b38) : INFO (agentservice:167) - Agents in com.plexapp.agents.fanarttv not in info dictionary - pinging! 2022-02-23 12:16:47,408 (7fd7738bab38) : DEBUG (peerservice:233) - Updating existing server Borg (03c53bc9dd2e20e3f6cb5b4ed22f69d7d7d951bb) 2022-02-23 12:16:47,409 (7fd772cb2b38) : CRITICAL (bundleservice:141) - Exception adding bundle: WebClient.bundle (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 131, in update_bundles Log('Found duplicate identifier at %s for bundled plugin (%s), ignoring duplicate plugin.' % (path, bundle.identifier)) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 18, in init self.load_plist() File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 22, in load_plist plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, "Contents", "Info.plist"))) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 32, in ObjectFromString check_size(string, max_size) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 22, in check_size if len(data) > max_size: TypeError: object of type 'NoneType' has no len()
You don't seem to have defined any volumes for /config
etc?
I have volumes including /config: volumes:
com.plexapp.system.log:
2022-02-23 13:30:33,967 (7fd5997b4848) : CRITICAL (runtime:709) - Private handlers are no longer supported; couldn't register <bound method StreamService.token_handler of <streamservice.StreamService object at 0x7fd595ee0e50>>
2022-02-23 13:30:34,042 (7fd5961fbb38) : CRITICAL (storage:60) - Exception reading file /usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/WebClient.bundle/Contents/Info.plist (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 55, in load f = open(filename, mode) IOError: [Errno 2] No such file or directory: '/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/WebClient.bundle/Contents/Info.plist'
2022-02-23 13:30:34,042 (7fd5961fbb38) : CRITICAL (bundleservice:141) - Exception adding bundle: WebClient.bundle (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 131, in update_bundles Log('Found duplicate identifier at %s for bundled plugin (%s), ignoring duplicate plugin.' % (path, bundle.identifier)) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 18, in init self.load_plist() File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 22, in load_plist plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, "Contents", "Info.plist"))) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 32, in ObjectFromString check_size(string, max_size) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 22, in check_size if len(data) > max_size: TypeError: object of type 'NoneType' has no len()
2022-02-23 13:30:35,684 (7fd596412b38) : ERROR (networking:196) - Error opening URL 'http://resources-cdn.plexapp.com/hashes.json' 2022-02-23 13:30:35,686 (7fd596412b38) : CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1291, in get_resource_hashes json = self._core.networking.http_request("http://resources-cdn.plexapp.com/hashes.json", timeout=5).content File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 242, in content return self.str() File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 220, in str self.load() File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load f = self._opener.open(req, timeout=self._timeout) File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 435, in open response = meth(req, response) File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 548, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 473, in error return self._call_chain(args) File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 407, in _call_chain result = func(args) File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 556, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 403: Forbidden
Could it be related to http://resources-cdn.plexapp.com/hashes.json ?
/Users
is this a MacOS host?
Ubuntu, I forgot why I created macOX like folder on Linux.
Ok, do you have the /home/username
mount still? could you try that please?
Home folder is not used by Docker/Plex Server.
Configuration used to work till I pulled new images and restarted containers.
I just deployed new container on brand new Ubuntu VM.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 40-plex-first-run: executing... Plex Media Server first run setup complete [cont-init.d] 40-plex-first-run: exited 0. [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0. [cont-init.d] 50-plex-update: executing... [cont-init.d] 50-plex-update: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. Starting Plex Media Server. Critical: libusb_init failed
2022-02-25 16:02:57,961 (7f97bce5e848) : CRITICAL (runtime:709) - Private handlers are no longer supported; couldn't register <bound method StreamService.token_handler of <streamservice.StreamService object at 0x7f97b962e6d0>>
2022-02-25 16:02:58,008 (7f97b988ab38) : CRITICAL (storage:60) - Exception reading file /usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/WebClient.bundle/Contents/Info.plist (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 55, in load f = open(filename, mode) IOError: [Errno 2] No such file or directory: '/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/WebClient.bundle/Contents/Info.plist'
2022-02-25 16:02:58,010 (7f97b988ab38) : CRITICAL (bundleservice:141) - Exception adding bundle: WebClient.bundle (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 126, in update_bundles bundle = BundleInfo(self.system, path, plugin) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 18, in init self.load_plist() File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/System.bundle/Contents/Code/bundleservice.py", line 22, in load_plist plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, "Contents", "Info.plist"))) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 32, in ObjectFromString check_size(string, max_size) File "/usr/lib/plexmediaserver/Resources/Plug-ins-c8bd13540/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 22, in check_size if len(data) > max_size: TypeError: object of type 'NoneType' has no len()
2022-02-25 16:03:24,388 (7f97b9a91b38) : ERROR (networking:196) - Error opening URL 'http://resources-cdn.plexapp.com/hashes.json'
plex: container_name: plex26 environment:
Where should report issue with this URL?
2022-02-25 16:14:22,885 (7f80e7179b38) : DEBUG (networking:143) - Requesting 'http://resources-cdn.plexapp.com/hashes.json' 2022-02-25 16:14:22,886 (7f80e6a69b38) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.system/resourceHashes 2022-02-25 16:14:22,888 (7f80e6a69b38) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.system/resourceHashes 2022-02-25 16:14:23,159 (7f80e7179b38) : ERROR (networking:196) - Error opening URL 'http://resources-cdn.plexapp.com/hashes.json'
The last log you posted above is not from our container. Our container does not have an init file named 45-plex-hw-transcode-and-connected-tuner
Also your compose yaml, while it looks like it is set to use our image, has vars set that our image does not accept.
No offense but the stuff you're posting does not look reliable as they don't match each other or our recommended config.
Critical: libusb_init failed
is not the reason for your container not starting, it's really a harmless error even though it doesn't sound like it.You probably need to look at the logs stored in appdata to get some clues.
It certainly is the reason. I'm getting it as well. The container crashes immediately after the error appears in the log. Sometimes it doesn't appear for a minute or two, in which case Plex works fine until that error appears, then it just stops responding immediately.
Correlation is not causation. We all get that error. Check your Plex server logs in the config folder to see what the real reason for the crash is.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I got the same error. I'm installing on a server with Ubuntu 20.04 And simply after the error: plex | Critical: libusb_init failed
nothing happens, if trying to access port 32400 does not open, I can just stop and start the container but nothing works, here is my compose file:
version: "3.3" services: plex: image: lscr.io/linuxserver/plex container_name: plex network_mode: host ports:
plex | Critical: libusb_init failed
isn't an show stopping error, it's related to the Live TV/PVR function of plex.
@henriquelucas in your instance, you're mixing host mode and also opening ports which doesn't usually have an issue, it could be conflicting. I assume you're using docker-compose and not portainer to deploy this?
@j0nnymoe I'm using compose, how should my file be? According to the example from https://hub.docker.com/r/linuxserver/plex it should be like this.
@j0nnymoe I also tried redoing with CLI using:
run docker -d \
--name=plex\
--net=host\
-e PUID=1000\
-e PGID=1000\
-e VERSION=docker \
-e PLEX_CLAIM= #optional
\
-v /home/docker/plex/library:/config \
-v /home/docker/plextvseries:/tv \
-v /home/docker/plexmovies:/movies \
--restart unless interrupted \
lscr.io/linuxserver/plex
Could you post the full container startup log please?
@j0nnymoe
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 1000
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 40-chown-files: executing...
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 45-plex-claim: executing...
[cont-init.d] 45-plex-claim: exited 0.
[cont-init.d] 50-gid-video: executing...
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing...
Docker is used for versioning skip update check
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed
Hello seems to have same issue ... Docker on Debian 11 `[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 01-envfile: executing... [cont-init.d] 01-envfile: exited 0. [cont-init.d] 01-migrations: executing... [migrations] started [migrations] no migrations found [cont-init.d] 01-migrations: exited 0. [cont-init.d] 02-tamper-check: executing... [cont-init.d] 02-tamper-check: exited 0. [cont-init.d] 10-adduser: executing...
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
[cont-init.d] 10-adduser: exited 0. [cont-init.d] 40-chown-files: executing... [cont-init.d] 40-chown-files: exited 0. [cont-init.d] 45-plex-claim: executing... [cont-init.d] 45-plex-claim: exited 0. [cont-init.d] 50-gid-video: executing... [cont-init.d] 50-gid-video: exited 0. [cont-init.d] 60-plex-update: executing... Docker is used for versioning skip update check [cont-init.d] 60-plex-update: exited 0. [cont-init.d] 90-custom-folders: executing... [cont-init.d] 90-custom-folders: exited 0. [cont-init.d] 99-custom-scripts: executing... [custom-init] no custom files found exiting... [cont-init.d] 99-custom-scripts: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. Starting Plex Media Server. Critical: libusb_init failed`
after the web page can be acceded but nos server seems to be runnung
This thread got way out of scope.
libusb init error is a harmless error completely unrelated to inability to access Plex. Please stop posting me too
s about it.
Closing this thread.
If you're unable to see your Plex server when you connect to the gui, read the readme, set the claim token, etc.
Locking this issue.
Critical: libusb_init failed
is not a error preventing Plex to start up properly. If you still have issues, please open a new issue here, and make sure to include all the information we ask for in the template.
Expected Behavior
Current Behavior
Critical: libusb_init failed
Steps to Reproduce
Environment
OS: Ubuntu 20.04.3 LTS CPU architecture: x86_64/arm32/arm64 How docker service was installed:
Command used to create docker container (run/create/compose/screenshot)
plex: container_name: plex environment:
hostname: Plex image: linuxserver/plex:latest network_mode: bridge ports:
- "111:111/tcp"
restart: unless-stopped
Docker logs
[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 40-plex-first-run: executing... [cont-init.d] 40-plex-first-run: exited 0. [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0. [cont-init.d] 50-plex-update: executing... [cont-init.d] 50-plex-update: exited 0. [cont-init.d] done. [services.d] starting services Starting Plex Media Server. [services.d] done. Critical: libusb_init failed