Jump to content
linuxserver.io

[Support] Linuxserver.io - Plex Media Server

4544 posts in this topic Last Reply

Recommended Posts

On 7/7/2020 at 1:53 AM, cinereus said:

Both this and the plexinc container haven't been working via plex web for a couple of weeks now. No idea why but no video files will play at all, it remains stuck at 0:00.

2 things to try. Stop your plex container, delete the CODECS folder from plex appdata install, restart your container, then analyse your video files and attempt to play again.

Share this post


Link to post
14 hours ago, Bolagnaise said:

2 things to try. Stop your plex container, delete the CODECS folder from plex appdata install, restart your container, then analyse your video files and attempt to play again.

Amazing. Not 100% certain but that seems to have worked!

Share this post


Link to post
7 hours ago, cinereus said:

Amazing. Not 100% certain but that seems to have worked!

Awesome, the most likely reason is that plex lost the metadata for the audio associated with each of your video files, this usually occurs because your plex container cannot access your shares during the plex maintenance window and then deletes any analysis files it has. Alternatively, your audio codecs got corrupted and deleting the codecs folder forces plex to redownload fresh ones.

Share this post


Link to post
2 hours ago, Bolagnaise said:

Awesome, the most likely reason is that plex lost the metadata for the audio associated with each of your video files, this usually occurs because your plex container cannot access your shares during the plex maintenance window and then deletes any analysis files it has. Alternatively, your audio codecs got corrupted and deleting the codecs folder forces plex to redownload fresh ones.

Weird. Is there anything I can do to avoid it? Been running Plex for years and never seen that before...

Share this post


Link to post
1 hour ago, cinereus said:

Weird. Is there anything I can do to avoid it? Been running Plex for years and never seen that before...

not really, you could turn of analysis of files during the maintenance period in plex server settings if the issue was the audio analysis got deleted but i don’t recommend it. A better option would be to make sure you have the CA backup/restore appdata plugin installed and perform nightly backups to a parity protected cache pool.

Share this post


Link to post

This is very odd. I have two Plex containers.

 

plex-a running as host with port 32400 and /mnt/user/video/ mapped to /share/video/ in the docker

plex-b running as bridge with port 42400  and /mnt/user/ext-mnt/video/ mapped to /share/video/ in the docker (it has no knowledge of /mnt/user/video/*)

Both have separate appdata folders

 

When just plex-a is running files are served from  /mnt/user/video/

When just plex-b is running files are served from  /mnt/user/ext-mnt/video/

 

However, when both are running even when I'm using port 42400, all files are served from  /mnt/user/video/. It's as though plex is detecting both containers and merging them.

 

Anyone had this issue or know how to avoid it?

Share this post


Link to post

I changed my plex password and now the server isn't working, I get the, No soup for you message. What's the solution to this, nothing I've found online has worked. 😞

Share this post


Link to post

I am running the latest PMS via the linuxserverio docker: Version 1.19.5.3035

 

I have a netgate router running pfsense w/ letsencrypt configured an handling all encryption for my external connections.  Been up and running like this for years.

 

I have been using cloudfare proxy with plex successfully for about a year:

https://selfhosters.net/docker/plex/cloudflare/

 

I just noticed today that remote play of video via any kind of android device is not working.  I can play audio and browse files using the android app or remote shield or roku but when I attempt to play video I get:

"An error occurred when attempting to play this video".

 

I don't want to vomit an entire log here so I am hoping this sounds familiar to one of the posters and you can point me in the right direction to troubleshoot or investigate.  Why would web browsers be able to play remotely without any issues but the plex apps on android and set top boxes fail?  Any clues?

 

ul 12, 2020 21:56:34.619 [0x14e4c0ad4700] Debug — Scaled up video bitrate to 5836Kbps based on 1.500000x fudge factor.
Jul 12, 2020 21:56:34.619 [0x14e4c0ad4700] Debug — Scaled maximum bitrate for resolution reduction to 820Kbps.
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — MDE: Selected protocol hls; container: mkv
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — MDE: analyzing media item 166
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — MDE: Descendants 2 (2017): Direct Play is disabled
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — MDE: Descendants 2 (2017): media must be transcoded in order to use the hls protocol
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — MDE: Descendants 2 (2017): no direct play video profile exists for http/mkv/h264
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — MDE: Descendants 2 (2017): no direct play video profile exists for http/mkv/h264/eac3
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — Descendants 2 - video.profile limitation applies: high != baseline [list]
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — Descendants 2 - audio.channels limitation applies: 6 > 2
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — Descendants 2 - video.profile limitation applies: high != baseline [list]
Jul 12, 2020 21:56:34.621 [0x14e4c0ad4700] Debug — MDE: Descendants 2 (2017): no remuxable profile found, so video stream will be transcoded
Jul 12, 2020 21:56:34.622 [0x14e4c0ad4700] Debug — Descendants 2 - video.profile limitation applies: high != baseline [list]
Jul 12, 2020 21:56:34.622 [0x14e4c0ad4700] Debug — MDE: Cannot direct stream video stream due to profile or setting limitations
Jul 12, 2020 21:56:34.622 [0x14e4c0ad4700] Debug — Scaled up video bitrate to 5836Kbps based on 1.500000x fudge factor.
Jul 12, 2020 21:56:34.622 [0x14e4c0ad4700] Debug — Scaled maximum bitrate for resolution reduction to 820Kbps.
Jul 12, 2020 21:56:34.624 [0x14e4c0ad4700] Debug — Descendants 2 - audio.channels limitation applies: 6 > 2
Jul 12, 2020 21:56:34.624 [0x14e4c0ad4700] Debug — MDE: Cannot direct stream audio stream due to profile or setting limitations
Jul 12, 2020 21:56:34.625 [0x14e4c0ad4700] Debug — MDE: Descendants 2 (2017): selected media 0 / 166
Jul 12, 2020 21:56:34.625 [0x14e4c0ad4700] Debug — Streaming Resource: Reached Decision id=118 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=166 part=(id=166 decision=transcode container=mkv protocol=hls streams=(Video=(id=12231 decision=transcode bitrate=553 encoder=libx264 width=480 height=270) Audio=(id=12232 decision=transcode bitrate=125 encoder=aac channels=2 rate=48000))))
Jul 12, 2020 21:56:34.626 [0x14e4c0cd5700] Debug — Completed: [192.168.1.1:49188] 200 GET /video/:/transcode/universal/decision?audioBoost=100&autoAdjustQuality=0&directPlay=0&directStream=1&directStreamAudio=1&fastSeek=1&hasMDE=1&location=cellular&maxVideoBitrate=720&mediaBufferSize=74944&mediaIndex=0&partIndex=0&path=%2Flibrary%2Fmetadata%2F118&peakBitrate=720&protocol=*&session=1bafe193e9e4bbe6-com-plexapp-android&subtitleSize=100&videoBitrate=720&videoQuality=60&videoResolution=3840x2160 (21 live) GZIP 33ms 2885 bytes (pipelined: 1)
Jul 12, 2020 21:56:45.410 [0x14e4c0ed6700] Debug — Using X-Forwarded-For: 174.243.113.26 as remote address

 

Share this post


Link to post

Hey Guys, 

i have i interesting issue. Since the last Update my plex won´t use the GPU for transcoding anymore. 

I followed BytemyBits Guide for Hardware transcoding and it works in the past but since last update it won´t.

Then i tried Spaceinvaders an the same issue.

 

I installed the Nvidia version of 6.8.3 Unraid and the lastest Version of linuxserver Plex. 

Passes the GPU via UUID in the configuration of Plex, set the Variable  --runtime=nvidia and NVIDIA_DRIVER_CAPABILITIES = all.

 

Normally the Plex Docker should now be ready to Transcode Videos but it still uses the CPU. 

 

When i transcode a video and open "watch nvidia-smi" i only get this:

 

Thu Jul 16 23:27:18 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.59       Driver Version: 440.59       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 00000000:09:00.0 Off |                  N/A |
|  0%   38C    P8    10W / 200W |      0MiB /  6077MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

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

 

It seems not to use the GPU.

I installed the Cointainer new and nope it wont use GPU so im at the end of ideas and hope some of you has better ideas than me. :) 

 

Serverdiagnogstics attached at the end. 

thevault-diagnostics-20200716-2311.zip

Share this post


Link to post
Posted (edited)

Hi there, I'm having an issue with a process that I'm not really sure about. I am receiving this 'ImportError: No module named yaml
Connection to 50.116.60.94 closed by remote host.' Does anybody know what 'yaml' is? 

 

Here is the log from the Plex container. 

 

-------------------------------------
GID/UID
-------------------------------------

User uid: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 40-chown-files: executing...
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 45-plex-claim: executing...
[cont-init.d] 45-plex-claim: exited 0.
[cont-init.d] 50-gid-video: executing...
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing...
No update required
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
Traceback (most recent call last):
File "/usr/lib/plexmediaserver/Resources/Plug-ins-b23ab3896/Framework.bundle/Contents/Resources/Versions/1/Python/bootstrap.py", line 46, in <module>
import PMS.Plugin, PMS.JSON, PMS.Resource
File "/usr/lib/plexmediaserver/Resources/Plug-ins-b23ab3896/Framework.bundle/Contents/Resources/Versions/1/Python/PMS/__init__.py", line 6, in <module>
import __error, Request, Plugin, Datetime, RSS, Client, Data, Database, Dict, Hash, Helper, HTTP, JSON, Locale, Network, Prefs, Resource, String, Thread, XML, YAML, Plist
File "/usr/lib/plexmediaserver/Resources/Plug-ins-b23ab3896/Framework.bundle/Contents/Resources/Versions/1/Python/PMS/YAML.py", line 6, in <module>
import yaml
ImportError: No module named yaml
Connection to 50.116.60.94 closed by remote host.

plexunraid-diagnostics-20200721-1250.zip

Edited by Jase
Added diagnostics.

Share this post


Link to post
Posted (edited)

Hi,

 

I updated my plex docker today, but now plex wont start.  Any ideas where I can start to troubleshoot this?  The docker log says its starting plex media server but the server remains unavailable.

 

User uid: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 40-chown-files: executing...
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 45-plex-claim: executing...
[cont-init.d] 45-plex-claim: exited 0.
[cont-init.d] 50-gid-video: executing...
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing...
Atempting to upgrade to: 1.20.0.3133-fede5bdc7
2020-07-25 07:09:29 URL:https://downloads.plex.tv/plex-media-server-new/1.20.0.3133-fede5bdc7/debian/plexmediaserver_1.20.0.3133-fede5bdc7_amd64.deb [80097730/80097730] -> "/tmp/plexmediaserver_1.20.0.3133-fede5bdc7_amd64.deb" [1]
(Reading database ... 10450 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_1.20.0.3133-fede5bdc7_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Docker detected. Preinstallation validation not required.
Unpacking plexmediaserver (1.20.0.3133-fede5bdc7) over (1.19.5.3112-b23ab3896) ...
Setting up plexmediaserver (1.20.0.3133-fede5bdc7) ...
PlexMediaServer install: Docker detected. Postinstallation tasks not required. Continuing.
Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.

 

Edit to add docker run command:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='plex' --net='host' -e TZ="Australia/Sydney" -e HOST_OS="Unraid" -e 'VERSION'='latest' -e 'NVIDIA_VISIBLE_DEVICES'='' -e 'TCP_PORT_32400'='32400' -e 'TCP_PORT_3005'='3005' -e 'TCP_PORT_8324'='8324' -e 'TCP_PORT_32469'='32469' -e 'UDP_PORT_1900'='1900' -e 'UDP_PORT_32410'='32410' -e 'UDP_PORT_32412'='32412' -e 'UDP_PORT_32413'='32413' -e 'UDP_PORT_32414'='32414' -e 'PUID'='99' -e 'PGID'='100' -v '/mnt/user/Videos/Movies/':'/movies':'rw' -v '/mnt/user/Videos/TV/':'/tv':'rw' -v '/mnt/user/Music/':'/music':'rw' -v '/dev/shm':'/transcode':'rw' -v '/mnt/user/appdata/plex':'/config':'rw' 'linuxserver/plex' 

3ab0960e33f1ee3786b6e95ca797280eff3305861359548b67246229fa658307

Edited by Luc1fer

Share this post


Link to post
7 minutes ago, Luc1fer said:

Any ideas where I can start to troubleshoot this? 

Very first link in the Docker FAQ:

 

 

Share this post


Link to post
Posted (edited)
18 minutes ago, trurl said:

Very first link in the Docker FAQ:

 

 

Thanks trurl.

 

Here is the docker run command, sorry I didn't include it the first time.

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='plex' --net='host' -e TZ="Australia/Sydney" -e HOST_OS="Unraid" -e 'VERSION'='latest' -e 'NVIDIA_VISIBLE_DEVICES'='' -e 'TCP_PORT_32400'='32400' -e 'TCP_PORT_3005'='3005' -e 'TCP_PORT_8324'='8324' -e 'TCP_PORT_32469'='32469' -e 'UDP_PORT_1900'='1900' -e 'UDP_PORT_32410'='32410' -e 'UDP_PORT_32412'='32412' -e 'UDP_PORT_32413'='32413' -e 'UDP_PORT_32414'='32414' -e 'PUID'='99' -e 'PGID'='100' -v '/mnt/user/Videos/Movies/':'/movies':'rw' -v '/mnt/user/Videos/TV/':'/tv':'rw' -v '/mnt/user/Music/':'/music':'rw' -v '/dev/shm':'/transcode':'rw' -v '/mnt/user/appdata/plex':'/config':'rw' 'linuxserver/plex' 

3ab0960e33f1ee3786b6e95ca797280eff3305861359548b67246229fa658307
 

Edited by Luc1fer

Share this post


Link to post

Just an update.  Not sure why, but I stopped using the ram drive (/dev/shm) for the transcoding directory and plex started again.  It's been working with this setting for a long time, so i'm not sure if it was just a coincidence and something else changed at the same time.

Share this post


Link to post
5 hours ago, Luc1fer said:

Just an update.  Not sure why, but I stopped using the ram drive (/dev/shm) for the transcoding directory and plex started again.  It's been working with this setting for a long time, so i'm not sure if it was just a coincidence and something else changed at the same time.

I'm having the same issue - I use /tmp/ for transcoding and I had to swap it to transcode into appdata to get the container to start up. Not sure what happend with this update

Share this post


Link to post

I’m also seeing plex no longer use HW transcoding since latest update. Not sure if its a plex issue or the container has a fault. 

Share this post


Link to post
5 hours ago, Bolagnaise said:

I’m also seeing plex no longer use HW transcoding since latest update. Not sure if its a plex issue or the container has a fault. 

Most likely not the container. We haven't made any changes to it lately.

Share this post


Link to post
8 hours ago, saarg said:

Most likely not the container. We haven't made any changes to it lately.

I did a server reboot and updated to beta 25 and HW transcoding has come back. 

Share this post


Link to post

I have an external harddrive that has a lot of my movies on it and I want to run that within the Plex Docker, How would I go about doing this? Thanks.

Share this post


Link to post
11 hours ago, Meathead said:

I have an external harddrive that has a lot of my movies on it and I want to run that within the Plex Docker, How would I go about doing this? Thanks.

Mount it using the Unassigned Devices plugin and add the mount path with the slave r/w option to your container as a new path mapping.

Share this post


Link to post
1 hour ago, jonathanm said:

Mount it using the Unassigned Devices plugin and add the mount path with the slave r/w option to your container as a new path mapping.

What is the difference from the container path and host path?

Share this post


Link to post
2 minutes ago, Meathead said:

What is the difference from the container path and host path?

Container path is what you reference inside the application to see the files located in the host path.

Share this post


Link to post
5 minutes ago, jonathanm said:

Container path is what you reference inside the application to see the files located in the host path.

that worked thank you!

Share this post


Link to post
1 minute ago, Meathead said:

Ok, sorry for the silly question. So I find my files where they are located on the host. My container path is what is seen inside my docker, where my Plex server is looking at. Is that correct?

Yep. Whatever you fill in to the container path will show the contents of /mnt/disks/Movies when you are inside plex.

Share this post


Link to post

Hey, is it possible to switch to the beta in the docker ?

Share this post


Link to post

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.