Jump to content

[Support] Linuxserver.io - Plex Media Server


Recommended Posts

43 minutes ago, Shadowmists said:

If I try to play the video from the Unraid Plex server, it comes up to a screen where the file gets to about 33% and stays there when trying to view the file though the Roku . It shows buffering though the web app when I look to see what is going on.  if I try to use the web browser it just goes to a black screen and does not progress

ok, looking like a issue with decoding the video

 

may try the following, stop the container, delete the codec folder located in your appdata plex subsection

 

sample location \appdata\PlexMediaServer\Library\Application Support\Plex Media Server

 

44 minutes ago, Shadowmists said:

Running from plexinc/pms-docker.  Computer is Ryzen 3900x with 32Gb of ram and Server is up to date.

then you are actually in the wrong Thread here ... this is the plex linuxserver Thread ... not the plexinc one ;)

 

48 minutes ago, Shadowmists said:

Video card was in the windows plex server for transcoding,  it is Nvidia  RTX A2000.  I followed a video on getting the video card added into the unraid server from Spaceinvader one,  how to use GPU transcoding on Emby or Plex container.  I few things were different and we ended using using the Nvideia-Driver, ich777's Repository from the app store.  did not make a difference.  

well ... so on your windows Server you where using a GPU, did you look into it if its actually transcoding using your roku ?

 

and about adding it to plex on unraid, there is a manual on the nvidia plugin page ... page 1, incl. pictures ;)

 

also there, did you check if its actually using it ?

 

may rather look at the plexinc thread as this is the wrong place actually ;)

Link to comment

Thanks for looking and showing me the codex folder.  I saw other post where people talked about a tmp file in there.  I stopped the docker and I fixed a permission issue and deleted it like you said.  Restarted the Docker and issue looks to be resloved.

 

Thanks.

  • Like 1
Link to comment

Plex Appears to be Transcoding when not in use

 

I noticed one of my cores was always at 100% in the unRaid dashboard. A simple htop in the console shows it's coming from Plex. Except, when I go to my plex server in a browser it reports no activity. I checked conversions, nothing there. I also checked all my settings and I have nothing set to optimize, or transcode. I've been using Plex forever and I've never set it to optimize or pre-transcode, etc.

 

I love this container, just not sure what to do. Oh, if I stop it and then restart it goes away and I can use Plex like normal. Then, some indeterminate time (within 24 hrs) it starts up again.

 

unRaid 6.12.6

Lastest patch on the Plex Container (I ran an update, problem re-occurred)

 

This is the last bit of my log

Critical: libusb_init failed
Stopping 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] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: 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
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed
Stopping Plex Media Server.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[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] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: 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
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed

 

Thank you for any help!

 

htop - plex.png

Link to comment
6 minutes ago, kteach said:

Plex Appears to be Transcoding when not in use

 

I noticed one of my cores was always at 100% in the unRaid dashboard. A simple htop in the console shows it's coming from Plex. Except, when I go to my plex server in a browser it reports no activity. I checked conversions, nothing there. I also checked all my settings and I have nothing set to optimize, or transcode. I've been using Plex forever and I've never set it to optimize or pre-transcode, etc.

 

I love this container, just not sure what to do. Oh, if I stop it and then restart it goes away and I can use Plex like normal. Then, some indeterminate time (within 24 hrs) it starts up again.

 

unRaid 6.12.6

Lastest patch on the Plex Container (I ran an update, problem re-occurred)

 

This is the last bit of my log

Critical: libusb_init failed
Stopping 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] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: 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
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed
Stopping Plex Media Server.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[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] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: 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
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed

 

Thank you for any help!

 

htop - plex.png

 

Do you have any Scheduled Tasks in Plex?  They have a section in server settings and a set time that you can compare to when you typically see CPU usage peg 1 core 100%

This could be audio normalizing, video thumbnail generation, intro/credit detection, local metadata updates, database backups, etc.  Some of those settings might be on libraries themselves.



image.thumb.png.e98f5915055adc059685a1cf8260dbba.png

Link to comment
8 minutes ago, axipher said:

 

Do you have any Scheduled Tasks in Plex?  They have a section in server settings and a set time that you can compare to when you typically see CPU usage peg 1 core 100%

This could be audio normalizing, video thumbnail generation, intro/credit detection, local metadata updates, database backups, etc.  Some of those settings might be on libraries themselves.



image.thumb.png.e98f5915055adc059685a1cf8260dbba.png

 

OK, yes, I have all the same things checked as you. I guess it could be doing any of those things. That said, it is around 10:00am and my time matches your picture. So the tasks should have stopped right? Thank you for the quick reply!

Link to comment
22 minutes ago, kteach said:

 

OK, yes, I have all the same things checked as you. I guess it could be doing any of those things. That said, it is around 10:00am and my time matches your picture. So the tasks should have stopped right? Thank you for the quick reply!

 

I'm no expert on all the other things Plex server does in the background, but if it starts pretty much on an hour mark, it is more than likely some automated task or clean-up happening.  In Settings at the bottom, there is a Console Menu that lets you see the active logs of the server and you might be able to search through that to see what is using up your CPU in Plex.

Link to comment
26 minutes ago, axipher said:

 

I'm no expert on all the other things Plex server does in the background, but if it starts pretty much on an hour mark, it is more than likely some automated task or clean-up happening.  In Settings at the bottom, there is a Console Menu that lets you see the active logs of the server and you might be able to search through that to see what is using up your CPU in Plex.

 

Thank you. There is nothing there now which is causing any CPU hit (since I restarted the container) I'll check the console again next time I notice the one core going 100%. It surprisingly chatty IMO  . Here is an example of a couple of seconds (attached picture)

 

image.thumb.png.b596bd329ed4525c36dfd1716a02b0ef.png

 

 

 

 

Link to comment

I installed the Plex container and everything seems to be up and running properly. I've opened the appropriate port and enable remote sharing, however despite some clients working I can't seem to connect via app.plex.com because it says it is unable to connect securely (I have SSL set to preferred). I think this must be some sort of problem with my cert, or the lack of a cert generated by Plex or something. If I access my server IP https://192.168.50.11 I can access the Unraid UI (after ignoring the self signed cert error). However if I try to load the Plex UI over SSL like https://192.168.50.11:32400/web I Just get an instant failure "192.168.50.11 unexpectedly closed the connection. ERR_CONNECTION_CLOSED".

 

I'm assuming this is why Plex is saying that it can't establish a remote connection securely but I guess I'm not really sure. Any tips or advice would be appreciated.

Link to comment
9 hours ago, Riboflavin said:

I'm assuming this is why Plex is saying that it can't establish a remote connection securely but I guess I'm not really sure. Any tips or advice would be appreciated.

may as starter ... https://support.plex.tv/articles/206225077-how-to-use-secure-server-connections/

 

but in the end, i assume almost all are using a reverse proxy to access their services vie SSL ... so setup a reverse proxy like Nginx Proxy Manager, swag, traefik, ... and access your services vie htts then ...

Link to comment
  • 2 weeks later...

UPDATE: I fixed the playback error part, even though i did this a couple times, i once again deleted the Codecs folder and started the server again and it started working. I would still like to know if the whole old version of server is normal, or if i need to do somethign else to get it updated. Thanks.

 

 

 

Hi, question, Plex has been running great but all of a sudden i seem to be having issue playing back some media, even stuff i was able to play like 30 mins ago. I added a new movie to my collection and went to play, and after a few seconds of trying to load, it came back Playback Error. I then tried to play a movie i just watched, and same issue.  Its a mixture of things that will play and things that wont. 

 

I did a restart and update to the latest version of unraid. I am using linuxserver resp and noticed that while it says updated on April 18th, and no update availble in docker, on the plex server, it shows im running version 1.31.3.6868 and latest is like 1.40.

 

Is this common, i dont really recall as since installing, i never had to worry about it. 

Edited by Boudreaux
Link to comment
Posted (edited)

I have been trying to get plex to use my Nvidia GPU for transcoding and have followed all the instructions

 

However, when streaming content remote Plex is still using the CPU redlining it while the GPU is not doing anything

 

What am I missing.

 

I have also had the variable NVIDIA_DRIVER_CAPABILITIES with set to all but that did not seem to do anything either and removed that since.

 

If anyone has been able to make this work I would be very grateful for a pointer in the right direction.

 

I have read and also followed the instructions at the top of this topic.  This did not work and the CPU keeps being used by plex to transcode. The GPU seems not to be doing anything while the CPU is redlining.

I have also used the setting where --runtime=nvidia was put in the extra parameters. Did not make any difference. GPU still not been used by plex.

 

Thanks

 

Screenshot from 2024-05-01 08-35-17.png

Screenshot from 2024-05-01 08-35-48.png

Screenshot from 2024-05-01 08-37-02.png

nvidiasmi command output.png

Edited by Phil Ash
added information
Link to comment
5 hours ago, alturismo said:

may start reading the howto ... page 1 on the plugin page ... including pictures ...

hint, --runtime... extra parameter ... but just read the manual.

 

 

I read and followed the howto which did not give the desired result. I then found a more recent explanation that said that the --runtime=nvidia should not be in the extra parameters but in the additional parameters should be and in the extra parameters what I put in there.

Neither options made the GPU be used by plex.

Whatever I tried Plex keeps using the cpu to transcode

Link to comment
7 hours ago, Phil Ash said:

I then found a more recent explanation that said that the --runtime=nvidia should not be in the extra parameters but in the additional parameters should be and in the extra parameters what I put in there.

the proper one is what i linked ...

 

.../dev/dri is for Intel / AMD devices ... (igpu or dgpu) and not Nvidia ... ;) nevermind.

Link to comment
17 hours ago, alturismo said:

the proper one is what i linked ...

 

.../dev/dri is for Intel / AMD devices ... (igpu or dgpu) and not Nvidia ... ;) nevermind.

It would help if you'd tell me what the proper one is to link as I am at a loss.

Link to comment
  • 2 weeks later...
On 5/3/2024 at 4:38 AM, alturismo said:

i already linked it 3 posts up ...

I am really sorry but I'm not very good at clues.

I have given a full description of what I have done and am getting nothing but vague clues that are no real help to solve why my GPU is not being used by plex when streaming my media remote

Link to comment

I recently starting having an issue where Plex does not startup correctly (see screenshot).

 

It just gets to "Starting Plex Media Server. . . (you can ignore the libusb_init error)" in red and does not continue from there.

 

I have tried uninstalling and reinstalling from Previous Apps but I get the same behavior.

 

Not sure where to start with troubleshooting.  Before I blow this container away and start from scratch, I was hoping someone on here will be able to help.

 

Thanks!

plex_fail.png

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.

×
×
  • Create New...