Yet another "Critical: libusb_init failed" error

Hey guys,

I’ve search about this problem but I can’t find any working answers.

I’m using docker-compose.

My yml file goes as follow :

version: '3.3'
services:
  plex:
    image: linuxserver/plex:latest
    container_name: plex
    network_mode: "host"
    environment:
      - PUID=1000
      - PGID=1000
      - VERSION=docker
      - PLEX_CLAIM=claim-NUMBER
    volumes:
      - /media/plex/plex_config:/config
      - /media/plex/_movies_EN:/movies
      - /media/plex/_films_FR:/films
      - /media/plex/enfants:/enfant_films
      - /media/plex/_series_enfants:/enfant_series
      - /media/plex/_TV_Series:/shows
      - /media/plex/_series_FR:/series
#    devices:
#      - /dev/dri:/dev/dri
    ports:
      - "32400:32400/tcp"
      - "3005:3005/tcp"
      - "8324:8324/tcp"
      - "32469:32469/tcp"
      - "1900:1900/udp"
      - "32410:32410/udp"
      - "32412:32412/udp"
      - "32413:32413/udp"
      - "32414:32414/udp"
    restart: unless-stopped

And docker psoutput is the following :

CONTAINER ID   IMAGE                        COMMAND                  CREATED              STATUS                    PORTS                                                                                                                                                                        NAMES
d72ca33d6004   linuxserver/plex:latest      "/init"                  About a minute ago   Up 59 seconds                                                                                                                                                                                          plex

Are there any working solution out there?

Yeah, ignore it. It shouldn’t actually impact on anything (despite it saying it’s ‘critical’).

The problem is, as you can see with the docker ps output, that there are no ports exposed.

Ports statements are meaningless when using host networking, so delete them.

If you looked in the container log file you would have seen this:

Starting Plex Media Server. . . (you can ignore the libusb_init error)

1 Like

So I’m still unable to connect to plex via the ip address.

The command docker logs plex shows this content

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

chown: changing ownership of '/config': Permission denied
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
Change in ownership detected, please be patient while we chown existing files
This could take some time
/usr/bin/find: unknown predicate `-R'
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
chown: changing ownership of '/config': Permission denied
chown: changing ownership of '/config/Codecs': Permission denied
chown: changing ownership of '/config/Crash Reports': Permission denied
chown: changing ownership of '/config/Diagnostics': Permission denied
chown: changing ownership of '/config/Library': Permission denied
chown: changing ownership of '/config/Logs': Permission denied
chown: changing ownership of '/config/Media': Permission denied
chown: changing ownership of '/config/Metadata': Permission denied
chown: changing ownership of '/config/Plug-ins': Permission denied
chown: changing ownership of '/config/Plug-in Support': Permission denied
chown: changing ownership of '/config/Preferences.xml': Permission denied

# ..... I removed some lines since they were all Preferences.xml.tmp...

**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
**** Server is unclaimed, but no claim token has been set ****
**** creating video group videotpln with id 106 ****
**** adding /dev/dri/renderD128 to video group videotpln with id 106 ****
**** adding /dev/dri/card0 to video group video with id 44 ****
Docker is used for versioning skip update check
[custom-init] No custom files found, skipping...
Starting Plex Media Server. . . (you can ignore the libusb_init error)
[ls.io-init] done.


  • Is it normal I don’t see any ports for the plex container?

You need to fix the directory permissions. The server is very unlikely to be operating correctly until you do.

As long as you’re using host networking then yes.

I changed network type to bridge and it fixed everything. I pulled my hair so much over this single line!!

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