htpc-download-box icon indicating copy to clipboard operation
htpc-download-box copied to clipboard

plex-server doesn't work on my RPI 3

Open emkowale opened this issue 4 years ago • 4 comments

The whole thing works great except for two things. First of all I had to comment out the last two lines of the docker-compose.yml file:

ports:

- 6767:6767

That allowed bazarr to load. Since it's only for subtitles, I probably won't use it anyway.

The second problem is that plex-server won't stay started. I see this in the docker logs over and over:

standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error

It just keeps restarting. I'm guessing it has to do with building the docker image for the arm architecture of my Raspberry Pi. I'm new to docker could you please point me in the right direction?

emkowale avatar Feb 16 '21 02:02 emkowale

You are right. You need to use the arm version of plex media server. https://hub.docker.com/r/linuxserver/plex

jbusuttil83 avatar Feb 16 '21 19:02 jbusuttil83

Thank you kind sir. I modified the plex-server section of the docker-compose.yml as follows:

plex-server: container_name: plex-server

image: plexinc/pms-docker:latest

image: ghcr.io/linuxserver/plex
restart: unless-stopped
environment:
  - PUID=1000
  - PGID=1000
  - TZ=${TZ} # timezone, defined in .env
  - VERSION=docker
network_mode: host
volumes:
  - ${ROOT}/config/plex/db:/config # plex database
  - ${ROOT}/config/plex/transcode:/transcode # temp transcoded files
  - ${ROOT}/complete:/data # media library
  - ${ROOT}/complete/tv:/tv
  - ${ROOT}/complete/movies:/movies

emkowale avatar Feb 17 '21 01:02 emkowale

Sorry for the weird formatting. Apparently the editor doesn't like hastags. Or, as us old school programmers call them.... pound signs.

emkowale avatar Feb 17 '21 01:02 emkowale

For anyone with a Raspberry Pi 4 just update the plex section in your docker-compse.yml file like this below. I hard coded my volumes path a bit different.

plex-server: container_name: plex-server image: ghcr.io/linuxserver/plex restart: unless-stopped environment: - PUID=${PUID} # default user id, defined in .env - PGID=${PGID} # default group id, defined in .env - TZ=${TZ} # timezone, defined in .env - VERSION=docker network_mode: host volumes: - /home/pi/config/plex/db:/config # plex database - /home/pi/config/plex/transcode:/transcode # temp transcoded files - /mnt/downloads/complete:/data # media library - /mnt/downloads/complete/tv:/tv - /mnt/downloads/complete/movies:/movies

emkowale avatar May 17 '21 16:05 emkowale