linuxserver / docker-plex

GNU General Public License v3.0
1.16k stars 205 forks source link

[BUG] amdgpu: The CS has been rejected #372

Closed interkelstar closed 9 months ago

interkelstar commented 1 year ago

Is there an existing issue for this?

Current Behavior

When I'm trying to enable video transcoding on my AMD GX-215JJ it fails (black screen) and there are errors in the log.

/data/jenkins/conan_build/1112346209/conan/.conan/data/libdrm/2.4.115-1/plex/stable/build/42eba9224a0a19c9b983c233343e5610c7362833/meson-install/share/libdrm/amdgpu.ids: No such file or directory /data/jenkins/conan_build/1112346209/conan/.conan/data/libdrm/2.4.115-1/plex/stable/build/42eba9224a0a19c9b983c233343e5610c7362833/meson-install/share/libdrm/amdgpu.ids: No such file or directory amdgpu: The CS has been rejected (-22), but the context isn't robust. amdgpu: The process will be terminated. ****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.32.5.7349-8f4248874/PLEX MEDIA SERVER/dc089b53-1bf0-4c7b-d3d1d28b-a0ec89bf.dmp Starting Plex Media Server. . . (you can ignore the libusb_init error) /data/jenkins/conan_build/1112346209/conan/.conan/data/libdrm/2.4.115-1/plex/stable/build/42eba9224a0a19c9b983c233343e5610c7362833/meson-install/share/libdrm/amdgpu.ids: No such file or directory /data/jenkins/conan_build/1112346209/conan/.conan/data/libdrm/2.4.115-1/plex/stable/build/42eba9224a0a19c9b983c233343e5610c7362833/meson-install/share/libdrm/amdgpu.ids: No such file or directory amdgpu: The CS has been rejected (-22), but the context isn't robust. amdgpu: The process will be terminated.

Log dump https://github.com/alexbelgium/hassio-addons/files/12432596/dc089b53-1bf0-4c7b-d3d1d28b-a0ec89bf.dmp.log

Expected Behavior

Transcoding is happening and no errors in log

Steps To Reproduce

  1. Go to 'Settings - Transcoding'
  2. Check Use hardware
  3. Try to open HEVC mediafile with converting enabled

Environment

- OS: Home Assistant OS
- How docker service was installed:
Add-on https://github.com/alexbelgium/hassio-addons/tree/master/plex

CPU architecture

x86-64

Docker creation

https://github.com/alexbelgium/hassio-addons/blob/master/plex/Dockerfile

Container logs

[migrations] started
[migrations] no migrations found
-----------------------------------------------------------
 Add-on: Plex NAS
 Plex organizes video, music and photos from personal media libraries and streams them to smart TVs, streaming boxes and mobile devices
-----------------------------------------------------------
───────────────────────────────────────
      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 
   Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    0
User GID:    0
───────────────────────────────────────
 Add-on version: 1.32.5.7349-8f4248874-ls180
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.4  (amd64 / generic-x86-64)
 Home Assistant Core: 2023.8.3
 Home Assistant Supervisor: 2023.08.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
 Defining permissions for main user : 
User UID: 0
User GID : 0
-----------------------------------------------------------
Local Disks mounting...
[19:55:13] INFO: Mounting NAS of type 
[19:55:13] INFO: Success! NAS mounted to /mnt/NAS
[19:55:13] INFO: Execute /config/addons_autoscripts/plex-nas.sh if existing
[19:55:13] INFO: ... no script found
Database stored in /share/plex
... creating /symlink
Using existing config
**** Server already claimed ****
**** permissions for /dev/dri/card0 are good ****
**** permissions for /dev/dri/renderD128 are good ****
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.
/data/jenkins/conan_build/1112346209/conan/.conan/data/libdrm/2.4.115-1/plex/stable/build/42eba9224a0a19c9b983c233343e5610c7362833/meson-install/share/libdrm/amdgpu.ids: No such file or directory
/data/jenkins/conan_build/1112346209/conan/.conan/data/libdrm/2.4.115-1/plex/stable/build/42eba9224a0a19c9b983c233343e5610c7362833/meson-install/share/libdrm/amdgpu.ids: No such file or directory
amdgpu: The CS has been rejected (-22), but the context isn't robust.
amdgpu: The process will be terminated.
****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.32.5.7349-8f4248874/PLEX MEDIA SERVER/57e6da7d-3498-420b-204ea0bf-0ea0ff8a.dmp
Starting Plex Media Server. . . (you can ignore the libusb_init error)
github-actions[bot] commented 1 year 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 1 year ago

AMD drivers are provided and controlled by Plex Also, you're using a 3rd party provided docker image and you should seek help from them. We only support our images.

interkelstar commented 1 year ago

I've tried: https://github.com/alexbelgium/hassio-addons/issues/945 But that image is essentially just a wrapper around your image to be able to run in on HA OS So there's a very big chance that the same error would happen with your raw docker image.

Does the unavailability of amdgpu.ids file or amdgpu: The CS has been rejected (-22) message tell nothing?

aptalca commented 1 year ago

Does the unavailability of amdgpu.ids file or amdgpu: The CS has been rejected (-22) message tell nothing?

Nothing to us. The path listed is a build environment path, from when plex built their package and bundled the drivers. You should ask on the plex forums. But keep in mind that plex just introduced amd support a couple of months ago and it only supports sdr at the moment.

LinuxServer-CI commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Megamannen commented 1 year ago

It's indeed the same in this docker image. You can get further if you mount libdrm from host (but it still doesn't work for me)

    volumes:
      - /usr/share/libdrm:/data/jenkins/conan_build/1113263720/conan/.conan/data/libdrm/2.4.115-3/plex/stable/build/73ee780ba6ea3ef381da6e7f229c475bfaf477ca/meson-install/share/libdrm:ro
LinuxServer-CI commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 8 months ago

This issue is locked due to inactivity