Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 1.41.0.8994-f2c27da23-ls237 release is not working on Raspberry Pi5 #407

Closed
1 task done
matzarah opened this issue Sep 28, 2024 · 9 comments
Closed
1 task done

Comments

@matzarah
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Container produces the following error on start:

Starting Plex Media Server. . . (you can ignore the libusb_init error)
s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: Exec format error

I do not experience the problem with the exact same image on Raspberry Pi4, both are running 64 bit OS.

The previous container (1.41.0.8992-8463ad060-ls235) worked fine.

Expected Behavior

No response

Steps To Reproduce

On a Raspberry Pi 5 running 64bit, execute:
docker run --rm -it linuxserver/plex:latest

Environment

- OS: Debian GNU/Linux 12 (bookworm)
- Arch: 6.6.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.47-1+rpt1 (2024-09-02) aarch64 GNU/Linux
- How docker service was installed: from docker.com install instruction

CPU architecture

arm64

Docker creation

run --rm -it linuxserver/plex:latest

Container logs

Starting Plex Media Server. . . (you can ignore the libusb_init error)
s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: Exec format error
Copy link

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

@didyouexpectthat
Copy link

didyouexpectthat commented Oct 7, 2024

I am getting this error too, but with nvidia-smi on the same version.

# docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/plex:latest
Linuxserver.io version:- 1.41.0.8994-f2c27da23-ls238 Build-date:- 2024-09-30T09:29:05+00:00
root@proxmoxia:/opt/plex# nvidia-smi
Mon Oct  7 07:46:59 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX 2000 Ada Gene...    Off |   00000000:07:00.0 Off |                  Off |
| 30%   55C    P0             17W /   70W |       1MiB /  16380MiB |      3%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+
root@proxmoxia:/opt/plex# docker-compose exec pms-docker nvidia-smi
exec /usr/bin/nvidia-smi: exec format error
root@proxmoxia:/opt/plex#

I tried to copy out nvidia-smi so I could find out what arch it is for, but ran into problems getting out the file. It pulls out as 0 kb for whatever reason.

Environment

1. Docker version 27.3.1, build ce12230
2. Debian 12, x86_64
3. Linux proxmoxia 6.8.12-2-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-2 (2024-09-05T10:03Z) x86_64 GNU/Linux

@j0nnymoe
Copy link
Member

j0nnymoe commented Oct 7, 2024

Working fine here:

root@Server:~# docker inspect -f '{{ index .Config.Labels "build_version" }}' plex
Linuxserver.io version:- 1.41.0.8994-f2c27da23-ls238 Build-date:- 2024-09-30T09:29:05+00:00
root@Server:~# docker exec -it plex bash
root@plex:/# nvidia-smi
Mon Oct  7 16:15:22 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.154.05             Driver Version: 535.154.05   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 750 Ti      Off | 00000000:01:00.0 Off |                  N/A |
| 42%   30C    P0               1W /  52W |      0MiB /  2048MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+
root@plex:/# 

@didyouexpectthat
Copy link

Working fine here

When I do the same, I don't get any output.

# docker-compose exec pms-docker bash
root@plex:/# nvidia-smi
root@plex:/#

my docker-compose file is

name: plex
services:
  pms-docker:
    restart: unless-stopped
    container_name: plex
    runtime: nvidia
    deploy:
      resources:
        reservations:
          devices:
            - capabilities: [gpu]
    environment:
      - TZ=America/Los_Angeles
      - VERSION=latest
      - ADVERTISE_IP=http://192.168.4.3:32400/
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=all
    hostname: plex
    network_mode: host
    volumes:
      - /opt/plex/config:/config
      - /transcoding/:/transcoding
      - /tv:/tv
    image: lscr.io/linuxserver/plex:latest

And this has worked forever. Last night, I noticed nobody watching on my server was transcoding. I have tried many things: reinstalling container tools, verifying it works through Ubuntu images, etc... it is seemingly specific to the linuxserver image.

# docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
Mon Oct  7 15:40:30 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX 2000 Ada Gene...    Off |   00000000:07:00.0 Off |                  Off |
| 30%   56C    P0             17W /   70W |       1MiB /  16380MiB |      3%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

@didyouexpectthat
Copy link

Here's what I found since my last post.

  • There is an nvidia-smi file at /usr/local/bin/nvidia-smi, but it is 0 bytes. How does this file get populated?
  • I copied my nvidia-smi to the local container. Now, I can see errors like:
root@plex:/# nvidia-smi
NVIDIA-SMI couldn't find libnvidia-ml.so library in your system. Please make sure that the NVIDIA Display Driver is properly installed and present in your system.
Please also try adding directory that contains libnvidia-ml.so to your system PATH.

The Nvidia components of the container are not getting added correctly. This does seem like a separate issue than what this issue was created for since my Plex Media Server binary starts after updating, but maybe there's a related root cause as to why OP's binary is having the same error.

@Roxedus
Copy link
Member

Roxedus commented Oct 7, 2024

nvidia-smi: exec format error

This not remotely the same error. You seem to have a issue with the Nvidia container runtime.

@Roxedus
Copy link
Member

Roxedus commented Oct 7, 2024

@matzarah does it work if you specify the architecture in your command?

@didyouexpectthat
Copy link

didyouexpectthat commented Oct 7, 2024

You seem to have a issue with the Nvidia container runtime.

Thanks. I will go back down this route. I did try reinstalling it as a troubleshooting step from their website.

/usr/lib/plexmediaserver/Plex Media Server: Exec format error
nvidia-smi: exec format error
This not remotely the same error.

My apologies; they appear similar.

@matzarah
Copy link
Author

matzarah commented Oct 8, 2024

@matzarah does it work if you specify the architecture in your command?

@Roxedus it didn't, but I see there is since a new image and that is working OK

$ docker inspect plex.ken  | jq .[].Image
"sha256:938dbe92a4a38949e5018f4966ef285a0c5b624260b640c17ddd765e8d41ac0f"
$ docker image inspect 938dbe92a4a38949e5018f4966ef285a0c5b624260b640c17ddd765e8d41ac0f | jq .[].Config.Labels.build_version
"Linuxserver.io version:- 1.41.0.8994-f2c27da23-ls238 Build-date:- 2024-09-30T09:29:05+00:00"

@Roxedus Roxedus closed this as completed Oct 10, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants