[Support] Linuxserver.io - Plex Media Server


Recommended Posts

20 hours ago, chris0583 said:

Constructor,

 

Wanted to thank you for taking the time to help me out.   Run command below

 

"Member":P, your run command looks OK. Maybe you're having a symptom of a larger problem with your system. Next time it happens go to Tools - Diagnostics and attach the complete zip to your next post. 

Link to comment

Hi everyone,

 

I had described this issue in General support before but they say here is the correct place so here it is:

 

i have finally a working setup - the last 4 weeks i have struggled with three Mainboards to access the igpu under /dev/dri/render128 and passthrough it to the plex docker container

 

here is my current hardware:

 

Intel® Xeon® Processor E3-1225 v6

Supermicro X11SSH-F

Kingston 8 GB ECC DDR4-2400

 

 

with one exception - when Plex accesses the iGPU freezes the entire system - not even the bmc or the ipmi reacts - how can i provide logs? Where are these files? I have found two issues:

https://hobo.house/2018/05/18/fix-for-intel-i915-gpu-freeze-on-recent-linux-kernels/

https://forums.plex.tv/t/hardware-transcoding-quick-sync-centos-7-4/225091

 

maybe someone has an idea or a hardware recommendation - thanks for helping

 

Link to comment
3 hours ago, eddsch said:

when Plex accesses the iGPU freezes the entire system - not even the bmc or the ipmi reacts - how can i provide logs?

When your system freezes, if you can still SSH/telnet into the server or have console access, type 'diagnostics' at the command line which will write all logs and system info to the unRAID flash drive.  Post diagnostics.

 

Other ways of getting at least partial unRAID log info can be found here.  It's a bit outdated, but, most of the info still applies.

 

Plex-specfic logs are found at <path to your appdata share plex folder>/Library/Application Support/Plex Media Server/Logs.  Review those logs as perhaps there is something useful there.

 

I have i915 transcoding enabled on both my servers, as do many other unRAID users, and have never had any issues like what you describe. 

 

Obviously, according to the links you have provided, the issue exists at least with certain configurations.

 

As you can see from the specs in my signature, I have a Xeon E3-1245 v5 CPU in my main server and an i5 4590 in my backup server both with ASRock Rack motherboards (the backup server also has IPMI) and have never had a lockup due to Plex hardware transcoding.  In fact, as I type this, I am
"watching" a movie on Plex that is being transcoded in hardware.  I am running unRAID 6.6.5 on both servers.

  • Like 1
Link to comment

Thanks for replying so fast

 

unfortunately, the system freezes completely, so neither local terminal, ssh or ipmi react only unplug the power supply is possible.

Can I find logs after a reboot? I will try to install ubuntu today to rule out a hardware error.

 

Which asrock board do you use? I've got more bitt of those, after I have annoyed the support for 2 weeks, they have told me that my board has no layer on the pcb for the igpu - but probably they use a c236 which should support this - manufacturers documentation is  frustration :D

Link to comment

I have been trying to get inter HW transcoding to work for the past months without success.

 

I have the 

Intel 8700k

Gigabyte HD3 Z370 motherboard

 

Unraid 6.6.5

 

 

In Plex, extra parameters, I have this line:

Quote

--device /dev/dri:/dev/dri

 

My go file:

Quote

#enable module for iGPU and perms for the render device 
modprobe i915
chown -R nobody:users /dev/dri
chmod -R 777 /dev/dri

 

My syslinux file has this:

Quote

label unRAID OS
  menu default
  kernel /bzimage
  append pci=realloc=off initrd=/bzroot i915.alpha_support=1

 

when I list directories in the path /dev/dri I have these:

Quote

 

by-path/

card0

renderD128

 

 

 

 

I do have a lifetime plex pass

 

I have it ticked "use hardware acceleration when available" in the Plex settings.

 

But still no hardware transcoding.

 

Here is the error from the Plex logs:

Quote

Nov 16, 2018 08:38:24.687 [0x154744bff700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Nov 16, 2018 08:38:24.687 [0x154744bff700] WARN - avcodec_open2 returned -1313558101 for encoder 'h264_nvenc'
Nov 16, 2018 08:38:24.687 [0x154744bff700] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
Nov 16, 2018 08:38:24.687 [0x154744bff700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Nov 16, 2018 08:38:24.687 [0x154744bff700] ERROR - [FFMPEG] - No VA display found for device: /dev/dri/renderD128.
Nov 16, 2018 08:38:24.687 [0x154744bff700] DEBUG - Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Invalid argument

 

If anyone could help me it would be greatly appreciated

 

edit:

I think I might not be using the linuxserver.io docker.
I think I have the official unraid docker, this is what says in the repistory:

plexinc/pms-docker

So perhaps this question doesn't belong here, but I hope I get some answers, maybe I should post it somewhere else

Edited by flokason
adding text
Link to comment

Hi guys,

I have also some issues with my plex server.

After sorting out in a different thread, that my docker is running normally and fine, i am trying to find why my plex server "dies" after a reboot.

 

Before I was using Plex on OMV and all was fine so far.

On Unraid, I can install the docker img and then use it normally.
All good until I reboot.
Once I do that, the docker container will be stuck at:

 

Docker log

Quote

[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 40-plex-first-run: executing…
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 50-plex-update: executing…
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 40-plex-first-run: executing…
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 50-plex-update: executing…
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.

 

In the Plex Server Log i found:

 Plex Server Log (from official plex inc docker)

Quote

Nov 18, 2018 12:04:55.966 [0x15393a3ff700] INFO - Plex Media Server v1.14.0.5465-425e4ac90 - Docker Docker Container x86_64 - build: linux-ubuntu-x86_64 ubuntu - GMT 01:00
Nov 18, 2018 12:04:55.966 [0x15393a3ff700] INFO - Linux version: 4.18.17-unRAID, language: C
Nov 18, 2018 12:04:55.966 [0x15393a3ff700] INFO - Processor Intel® Pentium® CPU G4560 @ 3.50GHz
Nov 18, 2018 12:04:55.967 [0x15393a3ff700] INFO - /usr/lib/plexmediaserver/Plex Media Server
Nov 18, 2018 12:04:55.966 [0x153945c98800] DEBUG - BPQ: [Idle] -> [Starting]
Nov 18, 2018 12:04:55.967 [0x153945c98800] DEBUG - FeatureManager: Using cached data for features list
Nov 18, 2018 12:04:55.967 [0x153945c98800] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
Nov 18, 2018 12:04:55.969 [0x153945c98800] INFO - SQLITE3:0x10, 283, recovered 99 frames from WAL file /config/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Nov 18, 2018 12:04:55.969 [0x153945c98800] ERROR - SQLITE3:0x10, 11, database corruption at line 60663 of [fc49f556e4]
Nov 18, 2018 12:04:55.969 [0x153945c98800] ERROR - SQLITE3:0x10, 11, database disk image is malformed
Nov 18, 2018 12:04:55.969 [0x153945c98800] ERROR - Database corruption: sqlite3_statement_backend::prepare: database disk image is malformed for SQL: PRAGMA cache_size=2000
Nov 18, 2018 12:04:55.969 [0x153945c98800] ERROR - Error: Unable to set up server: sqlite3_statement_backend::prepare: database disk image is malformed for SQL: PRAGMA cache_size=2000 (N4soci10soci_errorE)

 

 

Currently: Details:


Repository: linuxserver/plex
Server Version#: 1.14.0.5465-425e4ac90

 

When I do turn off the plex docker container and overwrite the folloing folder, the docker plex server will start normally.
/mnt/cache/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Plug-in Support/Databases
But it will break again after a restart.

 


In the docker log i see after the reboot:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid: 911
User gid: 911
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-dbus: executing...
[cont-init.d] 30-dbus: exited 0.
[cont-init.d] 40-chown-files: executing...
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 50-plex-update: executing...
Atempting to upgrade to: 1.14.0.5465-425e4ac90

And i the web GUI never starts.

 

Do you need anything else?

I would seriously appreciate some advice.

Link to comment
4 hours ago, DJay said:

Hi guys,

I have also some issues with my plex server.

After sorting out in a different thread, that my docker is running normally and fine, i am trying to find why my plex server "dies" after a reboot.

 

Before I was using Plex on OMV and all was fine so far.

On Unraid, I can install the docker img and then use it normally.
All good until I reboot.
Once I do that, the docker container will be stuck at:

 

Docker log

 

In the Plex Server Log i found:

 Plex Server Log (from official plex inc docker)

 

Currently: Details:


Repository: linuxserver/plex
Server Version#: 1.14.0.5465-425e4ac90

 

When I do turn off the plex docker container and overwrite the folloing folder, the docker plex server will start normally.
/mnt/cache/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Plug-in Support/Databases
But it will break again after a restart.

 


In the docker log i see after the reboot:


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid: 911
User gid: 911
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-dbus: executing...
[cont-init.d] 30-dbus: exited 0.
[cont-init.d] 40-chown-files: executing...
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 50-plex-update: executing...
Atempting to upgrade to: 1.14.0.5465-425e4ac90

And i the web GUI never starts.

 

Do you need anything else?

I would seriously appreciate some advice.

Your uid and gid are not set from what I see in the container log. This is default in the template, so either you removed them or there is an issue with your system. 

Please post your docker run command. 

Link to comment
11 hours ago, saarg said:

Your uid and gid are not set from what I see in the container log. This is default in the template, so either you removed them or there is an issue with your system. 

Please post your docker run command. 

Thanks, I tried to reuse the settings of the original plex docker container (copied the template and changed the repo) in order to not need to map all drives again. 

 

I will check if I missed smth there and report back this evening. 

Link to comment
On 11/16/2018 at 12:23 AM, eddsch said:

Which asrock board do you use? I've got more bitt of those, after I have annoyed the support for 2 weeks, they have told me that my board has no layer on the pcb for the igpu - but probably they use a c236 which should support this - manufacturers documentation is  frustration :D

Full specs of both of my systems are in my signature.  In case you don't have signatures enabled, I have the ASRock C236 WSI board (Mini-ITX) but they have other boards in other form factors that support iGPU as well.

 

Here is the full-ATX version.

 

Link to comment
root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='Plex-LinuxServer' 
--net='host' 
-e TZ="Europe/Berlin" 
-e HOST_OS="Unraid" 
-e 'PUID'='99' 
-e 'PGID'='100' 
-e 'VERSION'='latest' 
-v '/tmp/':'/transcode':'rw' 
-v '/mnt/disks/Movies/Movies/':'/media_movies1':'ro' 
-v '/mnt/disks/Series/Series/':'/media_series1':'ro' 
-v '/mnt/disks/SeriesMovies2/Series2/':'/media_series2':'ro' 
-v '/mnt/disks/SeriesMovies2/Plex Recordings/':'/media_plex-recordings':'rw' 
-v '/mnt/disks/SeriesMovies2/Videos new/':'/media_movies2':'rw' 
-v '/mnt/user/appdata/plex':'/config':'rw' 'linuxserver/plex' 
ee03ebce17e68142f480cd78858ab311edbaa955cb5c5ee4bb55c8e3ef39c479

Edit:

you were right, the PUID and PGID were stated as PlexIUD and PlexGID.

I adapted it. But it didn't show any difference.

 

Edit2:

To avoid smth funny with the config, I created a new container from scratch. Added only my folders.

After a reboot of unraid i see the same behaviour.

 

Any ideas?

Edited by DJay
Link to comment
1 hour ago, DJay said:

Any ideas?

Your media are several Unassigned mounts. Are those attached disks or are they on the network?

On 11/18/2018 at 1:03 PM, DJay said:

On Unraid, I can install the docker img and then use it normally.
All good until I reboot.

 When you get this working before rebooting, is that after you have already mounted the Unassigned volumes?

 

Have you tried mapping with the slave option?

https://forums.unraid.net/topic/57181-real-docker-faq/#comment-564314

 

Link to comment
21 minutes ago, trurl said:

Your media are several Unassigned mounts. Are those attached disks or are they on the network?

 When you get this working before rebooting, is that after you have already mounted the Unassigned volumes?

 

Have you tried mapping with the slave option?

https://forums.unraid.net/topic/57181-real-docker-faq/#comment-564314

 

 

 

I have news. 

After coming back from dinner, and I just let it run 

cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 50-plex-update: executing...
Atempting to upgrade to: 1.14.0.5465-425e4ac90

At some point i got:

Atempting to upgrade to:
wget: unable to resolve host address ‘downloads.plex.tv’

And now it's just working even across reboots.

I didn't change a thing, just a different docker container.

 

To get the plexpass release I have to add the ":plexpass" to the repo ?

Or is this different on this container? Does it work with the version string?

 

That is strange. I don't understand :S

 

I was trying since last tuesday to get it to run properly...

Edited by DJay
Link to comment
10 hours ago, DJay said:

Thanks, I tried to reuse the settings of the original plex docker container (copied the template and changed the repo) in order to not need to map all drives again. 

 

I will check if I missed smth there and report back this evening. 

Don't do that. Use our template from the start. 

  • Like 1
Link to comment
2 hours ago, DJay said:

 

 

I have news. 

After coming back from dinner, and I just let it run 


cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 50-plex-update: executing...
Atempting to upgrade to: 1.14.0.5465-425e4ac90

At some point i got:


Atempting to upgrade to:
wget: unable to resolve host address ‘downloads.plex.tv’

And now it's just working even across reboots.

I didn't change a thing, just a different docker container.

 

To get the plexpass release I have to add the ":plexpass" to the repo ?

Or is this different on this container? Does it work with the version string?

 

That is strange. I don't understand :S

 

I was trying since last tuesday to get it to run properly...

You should use /mnt/cache for the /config mount if you have a cache drive. 

 

Read the Readme on github for how to use plexpass. Link in the first post. 

Link to comment

Hey all - not sure if this is a known issue. But for the past week my Plex docker performance has been awful. I can't stream shows even locally (only 1 stream) and Unraid is showing near constant 100% CPU usage. I've tried disabling various dockers but it seems to directly be related to what is streaming's gonna plex. If I restart Plex it works for a few minutes then stops again. I used to easily be able to stream 5 connections. Core i5-4570 16GB of RAM with a 500GB SSD cache drive. 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.