linuxserver / docker-plex

GNU General Public License v3.0
1.19k stars 212 forks source link

[BUG] Plex scans all files without end #414

Open oxyd04 opened 5 hours ago

oxyd04 commented 5 hours ago

Is there an existing issue for this?

Current Behavior

Hello, for a few days now I have noticed that when I scan new media, the scanner scans the entire database and does not finish. I have to stop the container first and then start it again to make it stop. Obviously there is an error, I am using OMV 7.

Expected Behavior

No response

Steps To Reproduce

I dont see an error.

Environment

- OS: OMV 7.4.13-1 (Sandworm)
- Docker compose

CPU architecture

x86-64

Docker creation

---
services:
  plex:
    image: lscr.io/linuxserver/plex:latest
    container_name: plex
    network_mode: host
    environment:
      - PUID=XXXX
      - PGID=XXXX
      - TZ=Europe/Berlin
      - VERSION=docker
    volumes:
      - /dev/shm:/transcode # SKIP_BACKUP
      - /etc/localtime:/etc/localtime:ro
      - /srv/dev-disk-by-XXXXXXXX/appdata/plex/database:/config
      - /srv/dev-disk-by-XXXXXXXX/files/Filme/Blu-ray:/movies1
      - /srv/dev-disk-by-XXXXXXXX/files/Filme/Blu-ray:/movies2
      - /srv/dev-disk-by-XXXXXXXX/files/Filme/Blu-ray:/movies3
      - /srv/dev-disk-by-XXXXXXXX/files/Filme/UHD:/movies4
      - /srv/dev-disk-by-XXXXXXXX/files/Serien:/tv
      - /srv/dev-disk-by-XXXXXXXX/files/Sonstiges:/music
    devices:
      - /dev/dri:/dev/dri
      - /dev/dri/renderD128:/dev/dri/renderD128
    restart: unless-stopped

Container logs

plex  | [migrations] started
plex  | [migrations] no migrations found
plex  | ───────────────────────────────────────
plex  | 
plex  |       ██╗     ███████╗██╗ ██████╗
plex  |       ██║     ██╔════╝██║██╔═══██╗
plex  |       ██║     ███████╗██║██║   ██║
plex  |       ██║     ╚════██║██║██║   ██║
plex  |       ███████╗███████║██║╚██████╔╝
plex  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
plex  | 
plex  |    Brought to you by linuxserver.io
plex  | ───────────────────────────────────────
plex  | 
plex  | To support LSIO projects visit:
plex  | https://www.linuxserver.io/donate/
plex  | 
plex  | ───────────────────────────────────────
plex  | GID/UID
plex  | ───────────────────────────────────────
plex  | 
plex  | User UID:    XXXX
plex  | User GID:    XXXX
plex  | ───────────────────────────────────────
plex  | Linuxserver.io version: 1.41.0.8994-f2c27da23-ls238
plex  | Build-date: 2024-09-30T09:29:05+00:00
plex  | ───────────────────────────────────────
plex  |     
plex  | **** Server already claimed ****
plex  | **** creating video group videome9u with id 105 ****
plex  | **** adding /dev/dri/renderD128 to video group videome9u with id 105 ****
plex  | **** adding /dev/dri/card0 to video group video with id 44 ****
plex  | Docker is used for versioning skip update check
plex  | [custom-init] No custom files found, skipping...
plex  | Starting Plex Media Server. . . (you can ignore the libusb_init error)
plex  | Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!
plex  | [ls.io-init] done.
plex  | Critical: libusb_init failed
plex  | [migrations] started
plex  | [migrations] no migrations found
plex  | usermod: no changes
plex  | ───────────────────────────────────────
plex  | 
plex  |       ██╗     ███████╗██╗ ██████╗
plex  |       ██║     ██╔════╝██║██╔═══██╗
plex  |       ██║     ███████╗██║██║   ██║
plex  |       ██║     ╚════██║██║██║   ██║
plex  |       ███████╗███████║██║╚██████╔╝
plex  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
plex  | 
plex  |    Brought to you by linuxserver.io
plex  | ───────────────────────────────────────
plex  | 
plex  | To support LSIO projects visit:
plex  | https://www.linuxserver.io/donate/
plex  | 
plex  | ───────────────────────────────────────
plex  | GID/UID
plex  | ───────────────────────────────────────
plex  | 
plex  | User UID:    XXX
plex  | User GID:   XXXX
plex  | ───────────────────────────────────────
plex  | Linuxserver.io version: 1.41.0.8994-f2c27da23-ls238
plex  | Build-date: 2024-09-30T09:29:05+00:00
plex  | ───────────────────────────────────────
plex  |     
plex  | **** Server already claimed ****
plex  | **** permissions for /dev/dri/renderD128 are good ****
plex  | **** permissions for /dev/dri/card0 are good ****
plex  | Docker is used for versioning skip update check
plex  | [custom-init] No custom files found, skipping...
plex  | Starting Plex Media Server. . . (you can ignore the libusb_init error)
plex  | Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!
plex  | [ls.io-init] done.
plex  | Critical: libusb_init failed
plex  | Connection to xxxxxx closed by remote host.
plex  | Generated new chapter thumbnails for Sinister - Wenn Du ihn siehst, bist Du schon verloren.
plex  | Generated new chapter thumbnails for Parker.
plex  | Connection to XXX closed by remote host.
plex  | [migrations] started
plex  | [migrations] no migrations found
plex  | usermod: no changes
plex  | ───────────────────────────────────────
plex  | 
plex  |       ██╗     ███████╗██╗ ██████╗
plex  |       ██║     ██╔════╝██║██╔═══██╗
plex  |       ██║     ███████╗██║██║   ██║
plex  |       ██║     ╚════██║██║██║   ██║
plex  |       ███████╗███████║██║╚██████╔╝
plex  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
plex  | 
plex  |    Brought to you by linuxserver.io
plex  | ───────────────────────────────────────
plex  | 
plex  | To support LSIO projects visit:
plex  | https://www.linuxserver.io/donate/
plex  | 
plex  | ───────────────────────────────────────
plex  | GID/UID
plex  | ───────────────────────────────────────
plex  | 
plex  | User UID:    XXX
plex  | User GID:    XXX
plex  | ───────────────────────────────────────
plex  | Linuxserver.io version: 1.41.0.8994-f2c27da23-ls238
plex  | Build-date: 2024-09-30T09:29:05+00:00
plex  | ───────────────────────────────────────
plex  |     
plex  | **** Server already claimed ****
plex  | **** permissions for /dev/dri/renderD128 are good ****
plex  | **** permissions for /dev/dri/card0 are good ****
plex  | Docker is used for versioning skip update check
plex  | [custom-init] No custom files found, skipping...
plex  | Starting Plex Media Server. . . (you can ignore the libusb_init error)
plex  | Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!
plex  | [ls.io-init] done.
plex  | Critical: libusb_init failed
plex  | [migrations] started
plex  | [migrations] no migrations found
plex  | usermod: no changes
plex  | ───────────────────────────────────────
plex  | 
plex  |       ██╗     ███████╗██╗ ██████╗
plex  |       ██║     ██╔════╝██║██╔═══██╗
plex  |       ██║     ███████╗██║██║   ██║
plex  |       ██║     ╚════██║██║██║   ██║
plex  |       ███████╗███████║██║╚██████╔╝
plex  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
plex  | 
plex  |    Brought to you by linuxserver.io
plex  | ───────────────────────────────────────
plex  | 
plex  | To support LSIO projects visit:
plex  | https://www.linuxserver.io/donate/
plex  | 
plex  | ───────────────────────────────────────
plex  | GID/UID
plex  | ───────────────────────────────────────
plex  | 
plex  | User UID:    XXXX
plex  | User GID:   XXXX
plex  | ───────────────────────────────────────
plex  | Linuxserver.io version: 1.41.0.8994-f2c27da23-ls238
plex  | Build-date: 2024-09-30T09:29:05+00:00
plex  | ───────────────────────────────────────
plex  |     
plex  | **** Server already claimed ****
plex  | **** permissions for /dev/dri/renderD128 are good ****
plex  | **** permissions for /dev/dri/card0 are good ****
plex  | Docker is used for versioning skip update check
plex  | [custom-init] No custom files found, skipping...
plex  | Starting Plex Media Server. . . (you can ignore the libusb_init error)
plex  | Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!
plex  | [ls.io-init] done.
plex  | Critical: libusb_init failed
plex  | [migrations] started
plex  | [migrations] no migrations found
plex  | usermod: no changes
plex  | ───────────────────────────────────────
plex  | 
plex  |       ██╗     ███████╗██╗ ██████╗
plex  |       ██║     ██╔════╝██║██╔═══██╗
plex  |       ██║     ███████╗██║██║   ██║
plex  |       ██║     ╚════██║██║██║   ██║
plex  |       ███████╗███████║██║╚██████╔╝
plex  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
plex  | 
plex  |    Brought to you by linuxserver.io
plex  | ───────────────────────────────────────
plex  | 
plex  | To support LSIO projects visit:
plex  | https://www.linuxserver.io/donate/
plex  | 
plex  | ───────────────────────────────────────
plex  | GID/UID
plex  | ───────────────────────────────────────
plex  | 
plex  | User UID:    1001
plex  | User GID:    100
plex  | ───────────────────────────────────────
plex  | Linuxserver.io version: 1.41.0.8994-f2c27da23-ls238
plex  | Build-date: 2024-09-30T09:29:05+00:00
plex  | ───────────────────────────────────────
plex  |     
plex  | **** Server already claimed ****
plex  | **** permissions for /dev/dri/renderD128 are good ****
plex  | **** permissions for /dev/dri/card0 are good ****
plex  | Docker is used for versioning skip update check
plex  | [custom-init] No custom files found, skipping...
plex  | Starting Plex Media Server. . . (you can ignore the libusb_init error)
plex  | Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!
plex  | [ls.io-init] done.
plex  | Critical: libusb_init failed
plex  | [migrations] started
plex  | [migrations] no migrations found
plex  | usermod: no changes
plex  | ───────────────────────────────────────
plex  | 
plex  |       ██╗     ███████╗██╗ ██████╗
plex  |       ██║     ██╔════╝██║██╔═══██╗
plex  |       ██║     ███████╗██║██║   ██║
plex  |       ██║     ╚════██║██║██║   ██║
plex  |       ███████╗███████║██║╚██████╔╝
plex  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
plex  | 
plex  |    Brought to you by linuxserver.io
plex  | ───────────────────────────────────────
plex  | 
plex  | To support LSIO projects visit:
plex  | https://www.linuxserver.io/donate/
plex  | 
plex  | ───────────────────────────────────────
plex  | GID/UID
plex  | ───────────────────────────────────────
plex  | 
plex  | User UID:    XXXX
plex  | User GID:    XXX
plex  | ───────────────────────────────────────
plex  | Linuxserver.io version: 1.41.0.8994-f2c27da23-ls238
plex  | Build-date: 2024-09-30T09:29:05+00:00
plex  | ───────────────────────────────────────
plex  |     
plex  | **** Server already claimed ****
plex  | **** permissions for /dev/dri/renderD128 are good ****
plex  | **** permissions for /dev/dri/card0 are good ****
plex  | Docker is used for versioning skip update check
plex  | [custom-init] No custom files found, skipping...
plex  | Starting Plex Media Server. . . (you can ignore the libusb_init error)
plex  | Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!
plex  | [ls.io-init] done.
github-actions[bot] commented 5 hours ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

aptalca commented 5 hours ago

That sounds like a plex issue and should be reported to them.

j0nnymoe commented 5 hours ago

Also if you look into the plexmediaserver.log file in the /config mount, it should tell you what it's getting stuck on.

Also worth noting that it looks like you're running an image from the end of September.

oxyd04 commented 3 hours ago

Also if you look into the plexmediaserver.log file in the /config mount, it should tell you what it's getting stuck on.

Also worth noting that it looks like you're running an image from the end of September.

Yes, I'm surprised. I specifically selected "image: lscr.io/linuxserver/plex:latest". Normally, the image should then be automatically updated to the latest version.

j0nnymoe commented 3 hours ago

Only if you actively pull the new image. Docker won't automatically do anything.

oxyd04 commented 3 hours ago

Only if you actively pull the new image. Docker won't automatically do anything.

Thank you for that information. :-)

I also reported the problem to plex in their forum.