[Support] binhex - Plex


Recommended Posts

On 11/10/2022 at 1:53 AM, BrianB said:

I lost power yesterday and now none of my plex clients can connect to the server.  When I launch the WEBUI from inside the Docker tab in Unraid, I get "This site can't be reached"  

 

Is there something that needs to be reset?

 

The link it is trying to load is my server address:32400/web/index.html

 

Thanks,

Brian

see Q4:- https://github.com/binhex/documentation/blob/master/docker/faq/plex.md

Link to comment
1 hour ago, BrianB said:

I renamed the database files (2 of them) as is stated in the instructions to two days before the power failure, but nothing is different.  When I launch the WebUI I get the same message.

 

B.

im assuming then that because you followed the instructions in Q5 that you are indeed seeing the message in your plex log regards corruption, right?.

 

if you are still seeing corruption in the log even when rolling back then you will have to try an earlier backup, try the repair procedure (linked in Q5) or go from fresh.

Link to comment
18 hours ago, binhex said:

im assuming then that because you followed the instructions in Q5 that you are indeed seeing the message in your plex log regards corruption, right?.

 

if you are still seeing corruption in the log even when rolling back then you will have to try an earlier backup, try the repair procedure (linked in Q5) or go from fresh.

Ok.  I just deleted everything and reinstalled and I'm up and running.  Hope there won't be a next time.

 

Thanks,

Brian

Link to comment
  • 2 weeks later...
  • 1 month later...

Hey not sure if this is the right place for this but hey.

 

I am having trouble connecting to plex reliably.

 

Every now and again (every few days or so) I am just no longer able to connect to plex form other devices or through the web UI, it just says problem loading page.

 

It is set to host and my understanding is that in this configuration it is normal for there to not be a port (in docker allocations there is "???", this is what I saw on a thread).

 

I have tried setting to bridge and than a web UI tab won't even open and using either one of my network adapters (one is DHCP one is static) it will just say config failed and I have to install from previous versions.

 

This usually happens after my server is turned off (in my country we have something called load shedding so everything in my house getting turned off is unavoidable).

 

The only fix for this is a complete reinstall of plex which means I have to reconnect all my libraies and rebuild all of my playlists.

 

In the logs all I get is "Failed to load preferences at /config/Plex Media Server/Preferences.xml".

I have searched this multiple times and I am decent at getting the results that are useful but nothing has helped me.

 

My other containers seem to work including Emby witch I would honestly swap to if I liked the UI as much as Plex's but I don't.

 

Does anyone have any ideas as to what I can do?

 

Thank you

 

Link to comment

Hello! I am having a weird issue with hardware acceleration. Whenever I convert a high bitrate 1080p stream to an 8mbps 1080 stream Plex does not use my GPU for transcoding, only the CPU. When I convert the 1080p stream to 720p the GPU instantly kicks in and starts to transcode. Is there any way to make the 1080p streams transcode on the GPU? Here are some screen shots showing that the 1080p transcode is not hardware accelerated but the 1080 to 720 is.

 

Thanks!

 

EDIT: I checked the plex console and saw these errors when only converting from 1080 to 1080

Screenshot_20221231_124022.png

Screenshot_20221231_124101.png

Screenshot_20221231_044256.png

Edited by BBergle
Link to comment

My plex server does not recognize newly added music media anymore. Manually starting a scan does not help.

 

Log says:

2023-01-03 14:19:24,401 DEBG 'plexmediaserver' stderr output:
Unable to open: No such file or directory (2)

 

Are there more extensive logs to be found somewhere? Can anyone hint to me what the issue could be? Thank you!

Link to comment

I have had hardware transcoding working for over a year and a few weeks ago it stopped working, I just did a restart and it started working again. Yesterday it stopped working again and I have tried everything to get it up and running. My unraid server has a Nvidia GPU and Intel Quick Sync and I think for some reason Plex is trying to use the NVIDIA GPU even through I have it sert up for quick sync

I do have the extra parameters and new device path set to Quick Sync but my Plex logs have this error in it when I try to transcode

 

[Req#560d/Transcode] [FFMPEG] - Cannot load libcuda.so.1

[Req#560d/Transcode] [FFMPEG] - Could not dynamically load CUDA

[Req#560d/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted

[Req#560d/Transcode] Could not create hardware context for h264_nvenc

[Req#560d/Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations

[Req#560d/Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi

[Req#560d/Transcode] Codecs: hardware transcoding: testing API vaapi

[Req#560d/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).

[Req#560d/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: I/O error

[Req#560d/Transcode] Could not create hardware context for hevc

[Req#560d/Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec

[Req#560d/Transcode] Codecs: hardware transcoding: testing API nvdec

 

any ideas? I am at a loss

Link to comment
21 hours ago, 1q8448q1 said:

My plex server does not recognize newly added music media anymore. Manually starting a scan does not help.

 

Log says:

2023-01-03 14:19:24,401 DEBG 'plexmediaserver' stderr output:
Unable to open: No such file or directory (2)

 

Are there more extensive logs to be found somewhere? Can anyone hint to me what the issue could be? Thank you!

 

I found the logs. Looks like the scanner tries to skip new folders. Music files inside these folders are not in the databse yet, yet the scanner seems to try to skip them. Says "can't skip", but still the music does not show up in the database. What could be the issue? Any help appreciated!

 

Jan 04, 2023 11:28:19.129 [0x1470f3878b38] DEBUG - Scanner: Processing directory /media/Musik/Ville Valo & Natalia Avelon (parent: yes)
Jan 04, 2023 11:28:19.131 [0x1470f3878b38] DEBUG - Skipping over directory 'Ville Valo & Natalia Avelon', as nothing has changed; removing 0 media items from map.
Jan 04, 2023 11:28:19.131 [0x1470f3878b38] DEBUG - Scanner: Processing directory /media/Musik/Ville Valo & Natalia Avelon/Summer Wine (parent: yes)
Jan 04, 2023 11:28:19.135 [0x1470f3878b38] DEBUG - Directory had 3 files, database had 0 files, can't skip.
Jan 04, 2023 11:28:19.137 [0x1470f3878b38] DEBUG - Activity: updated activity 252f6758-5421-4e10-a191-38860052a019 - completed 0.1% - Scanning Musik
Jan 04, 2023 11:28:19.137 [0x1470f3878b38] DEBUG - Scanner: Processing directory /media/Musik/Amber Mark - Three Dimensions Deep (2022) - WEB FLAC (parent: yes)
Jan 04, 2023 11:28:19.165 [0x1470f3878b38] DEBUG - Directory had 17 files, database had 0 files, can't skip.
Jan 04, 2023 11:28:19.185 [0x1470f3675b38] DEBUG - [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Plex\ Media\ Server/Codecs/583b3e4-4434-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Media Scanner" --match --type 8 --log-file-suffix " Matcher" --match-tag-mode=all
Jan 04, 2023 11:28:19.186 [0x1470f3675b38] DEBUG - [JobRunner] Jobs: Starting child process with pid 1765
Jan 04, 2023 11:28:19.419 [0x14711c9f9b38] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 1765 is 0 (success)
Jan 04, 2023 11:28:19.419 [0x1470f3675b38] ERROR - Error parsing content.
Jan 04, 2023 11:28:19.419 [0x1470f3675b38] ERROR - Error parsing XML: Error parsing file.
Jan 04, 2023 11:28:19.419 [0x1470f3675b38] DEBUG - Native Scanner: Executed Match stage in 0.28 sec.
Jan 04, 2023 11:28:19.419 [0x1470f3472b38] DEBUG - Native Scanner: Executed Add to Database stage in 0.00 sec.
Jan 04, 2023 11:28:19.419 [0x1470f3472b38] DEBUG - Native Scanner: Executed Media Analysis stage in 0.00 sec.
Jan 04, 2023 11:28:19.420 [0x1470f3878b38] DEBUG - Activity: updated activity 252f6758-5421-4e10-a191-38860052a019 - completed 0.2% - Scanning Musik

 

Link to comment
  • 1 month later...

i don't really know what is happening here, my usb drive was corrupted and i took a backup and replace it with new one

 

then restored all my containers as "reinstall with previous template" , all containers worked well except binhex_plexpass

which gives this log

 

2023-02-05 22:16:32.171034 [info] Host is running unRAID
2023-02-05 22:16:32.188511 [info] System information Linux Tower 5.19.9-Unraid #1 SMP PREEMPT_DYNAMIC Fri Sep 23 07:24:37 PDT 2022 x86_64 GNU/Linux
2023-02-05 22:16:32.220319 [info] OS_ARCH defined as 'x86-64'
2023-02-05 22:16:32.256263 [info] PUID defined as '99'
2023-02-05 22:16:32.317224 [info] PGID defined as '100'
2023-02-05 22:16:33.064625 [info] UMASK defined as '000'
2023-02-05 22:16:33.094696 [info] Permissions already set for '/config'
2023-02-05 22:16:33.193803 [info] Deleting files in /tmp (non recursive)...
2023-02-05 22:16:33.231642 [warn] TRANS_DIR not defined,(via -e TRANS_DIR), defaulting to '/config/tmp'

 

tried using

/config/transcod

/config/tmp

 

but with no avail, attached my current template with i thing is same as before

CleanShot 2023-02-05 at 22.21.27@2x.png

Link to comment
6 minutes ago, iEusKid said:

i don't really know what is happening here, my usb drive was corrupted and i took a backup and replace it with new one

 

then restored all my containers as "reinstall with previous template" , all containers worked well except binhex_plexpass

which gives this log

 

2023-02-05 22:16:32.171034 [info] Host is running unRAID
2023-02-05 22:16:32.188511 [info] System information Linux Tower 5.19.9-Unraid #1 SMP PREEMPT_DYNAMIC Fri Sep 23 07:24:37 PDT 2022 x86_64 GNU/Linux
2023-02-05 22:16:32.220319 [info] OS_ARCH defined as 'x86-64'
2023-02-05 22:16:32.256263 [info] PUID defined as '99'
2023-02-05 22:16:32.317224 [info] PGID defined as '100'
2023-02-05 22:16:33.064625 [info] UMASK defined as '000'
2023-02-05 22:16:33.094696 [info] Permissions already set for '/config'
2023-02-05 22:16:33.193803 [info] Deleting files in /tmp (non recursive)...
2023-02-05 22:16:33.231642 [warn] TRANS_DIR not defined,(via -e TRANS_DIR), defaulting to '/config/tmp'

 

tried using

/config/transcod

/config/tmp

 

but with no avail, attached my current template with i thing is same as before

CleanShot 2023-02-05 at 22.21.27@2x.png

Solved!

just followed this binhex note:

 

"This also helps people easily sort out any permissions issues by simply deleting the /config/perms.txt file to force a re-apply of the correct permissions for the container."

 

 

i will leave it for others having the same problem

Link to comment

Hello not sure if this is the right place I have myself in a bit of a jam. I tried to follow the forum instruction to upgrade my cache drive all went good until and restarted my docker my plex would not start up so I decided to delete it and reinstall. finally I got it to install but only with the movie share when I add my music share i got this error in the log docker run
  -d
  --name='plex'
  --net='host'
  --privileged=true
  -e TZ="America/New_York"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Unraid"
  -e HOST_CONTAINERNAME="plex"
  -e 'VERSION'='docker'
  -e 'PLEX_CLAIM'=''
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:32400]/web/index.html'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/plex-logo.png'
  -v '/mnt/user/Media/TV/':'/tv':'rw'
  -v '/mnt/user/Media/Movies/':'/movies':'rw'
  -v '':'music':'rw'
  -v '/mnt/user/music/':'music':'rw'
  -v '/mnt/user/appdata/plex':'/config':'rw' 'lscr.io/linuxserver/plex:latest'

docker: Error response from daemon: invalid volume specification: '/mnt/user/music/:music:rw': invalid mount config for type "bind": invalid mount path: 'music' mount path must be absolute.
See 'docker run --help'.

The command failed.

this goes the same for my picture shares if I just do the movie share all is fine.

Any InSite on what I'm doing wrong

 

Lou

 

Link to comment
2 minutes ago, Lou said:

Thank you where would I go to edit this is this in the setup of plex?

lou

assuming you are an unraid user, left click plex icon select edit, then scroll down to the host path for music and click edit, then change the container path to have a forward slash at the beginning.

Link to comment
3 minutes ago, binhex said:

assuming you are an unraid user, left click plex icon select edit, then scroll down to the host path for music and click edit, then change the container path to have a forward slash at the beginning.

Ah got it thank you for the help on this I'll give it a try.

Link to comment

edit: Upon further investigation it seems like if i'm transcoding a 1080P movie, Plex leans on the CPU, but when I transcode a 4K movie, Plex uses the GPU. This is reproducible with any movie i try. Is this expected behaviour in Plex?

 

image.png.61fea9055bf37213d1dd65fc95977512.png

 

-----------------

 

I'm having difficulty getting Plex hardware transcoding to work despite the GPU being detected and used by Plex.

 

I migrated my Plex %appdata% folder from a Windows VM to Binhex Plexpass and everything worked fine after pointing it to the new media locations and syncing.

 

- I've installed the 'nvidia driver' plugin and downloaded the latest driver.

- The driver has a HWID.

 

image.png.01996f65d68d0cacc8b3d0105950f08c.png

 

- I have copied the ID from 'nvidia driver' and pasted it into Binhex Plexpass container settings.

- I have set --runtime=nvidia in 'extra parameters'

- I have set 'nvidia_visible_devices' to 'all'

 

image.png.8a68ce61c46870c13e89ca27e6ccbdaa.png

image.png.99862034c3cf40268c9bd6b437a00453.png

image.png.d9c470e15c74bc86968954c6f6e4d2b8.png

 

- I have enabled hardware acceleration under Transcoder settings.

 

image.png.d38dedb66e9e1b9dd83510821a9818d2.png

 

- I have confirmed transcoder temporary directory is working (i can see transcoding files in the directory i have mapped on my cache)

 

image.png.7a6b488cceb5634f116d2d6ee670dc0c.png

 

- When i launch Plex the the GPU Statistics plugin shows that my GPU is being utilised by Plex.

 

 image.png.b823fd985148fae1bab1f56cf37d9ef6.png

 

- When i launch terminal and type "watch nvidia-smi" i can see the GPU is being used by Plex.

 

image.png.7d87e2892fbf953e0a8f06cb5ca6163d.png

 

However with all that working properly and looking good, when I watch a movie and set Plex to transcode (rather than direct file stream), my CPU gets slammed and Plex does not show "transcode (hw)" in the now playing section. Instead it just shows "transcode", which means that it's not HW transcoding.

 

image.png.4183a6e7044b0590cd9f8e4f2ba4f6e7.png

image.png.a6be5bce14fea5bd905ff07c095081b8.png

 

Anyone have an idea? Has this been caused by transferring my Windows based %appdata% folder into Docker? To be clear i took the 'Plex Media Server' folder from Windows in %appdata%, deleted all of the folders in Binhex Plex in /appdata/, and copied it in.

 

Thanks.

image.png

Edited by LumpyCustard
Link to comment

I used the list here to fix it.

 

 

i updated to the latest image and got "Error: Unable to set up server: sqlite3_statement_backend::loadOne: database disk image is malformed (N4soci10soci_errorE)" as error in the log file of plex. Was working fine before update. any clues?

Edited by orlando500
Link to comment
  • 3 weeks later...

I'm having issues with Plex that I haven't been able to figure out. I have tried to delete the docker image and restore via CA Backup, but the same error occurs. The log says:
 

2023-03-09 12:08:01.163222 [info] Host is running unRAID
2023-03-09 12:08:01.182556 [info] System information Linux HAL 5.10.28-Unraid #1 SMP Wed Apr 7 08:23:18 PDT 2021 x86_64 GNU/Linux
2023-03-09 12:08:01.205559 [info] OS_ARCH defined as 'x86-64'
2023-03-09 12:08:01.227308 [info] PUID defined as '99'
2023-03-09 12:08:01.253773 [info] PGID defined as '100'
2023-03-09 12:08:01.290781 [info] UMASK defined as '000'
2023-03-09 12:08:01.311204 [info] Permissions already set for '/config'
2023-03-09 12:08:01.336987 [info] Deleting files in /tmp (non recursive)...
2023-03-09 12:08:01.361230 [info] TRANS_DIR defined as '/config/transcode'
2023-03-09 12:08:01.385715 [info] Starting Supervisor...
2023-03-09 12:08:01,726 INFO Included extra file "/etc/supervisor/conf.d/plexmediaserver.conf" during parsing
2023-03-09 12:08:01,726 INFO Set uid to user 0 succeeded
2023-03-09 12:08:01,728 INFO supervisord started with pid 8
2023-03-09 12:08:02,730 INFO spawned: 'plexmediaserver' with pid 65
2023-03-09 12:08:02,731 INFO reaped unknown pid 9 (exit status 0)
2023-03-09 12:08:03,732 INFO success: plexmediaserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-03-09 12:08:18,157 DEBG 'plexmediaserver' stdout output:
Critical: libusb_init failed

 

I tried googling the critical error, but it just said something about USB tuners which I'm not quite sure what is. Plex is showing everything, but all the thumbnails are black and when I'm trying to play anything it just says playback error. Any ideas?

Link to comment
  • 3 weeks later...

Hello,

 

After using Binhex plex for many years now, I've upgraded the setup to offload transcoding to a GPU (NVIDIA P1000), I've followed space invader tutorial on it but even though my GPU seems to be doing the transcoding, my CPU still works at the same rate as before and I'm still not able to transcode to 4k smoothly as my GPU should. Do you guys know why my CPU is still working this hard even though it should be the GPU doing it ?

Here's some pictures for more info (Was playing two movies transcoded in the time so you can have a better idea)

 

Can you please help ? Thank you very much !

 

EDIT: I have the exact same issue as LumpyCustard above apparently, I've seen the same behavior between binhex-plex and binhex-plexpass, and it's not a migration issue as I have this setup since day 1 and there was no transfer no anything. I even tried with a brand new docker install and I had the same behavior ... Please help if you have an idea

image.png

image.png

image.png

image.png

image.png

Edited by Samy
Link to comment
On 2/9/2023 at 5:02 AM, LumpyCustard said:

edit: Upon further investigation it seems like if i'm transcoding a 1080P movie, Plex leans on the CPU, but when I transcode a 4K movie, Plex uses the GPU. This is reproducible with any movie i try. Is this expected behaviour in Plex?

 

image.png.61fea9055bf37213d1dd65fc95977512.png

 

-----------------

 

I'm having difficulty getting Plex hardware transcoding to work despite the GPU being detected and used by Plex.

 

I migrated my Plex %appdata% folder from a Windows VM to Binhex Plexpass and everything worked fine after pointing it to the new media locations and syncing.

 

- I've installed the 'nvidia driver' plugin and downloaded the latest driver.

- The driver has a HWID.

 

image.png.01996f65d68d0cacc8b3d0105950f08c.png

 

- I have copied the ID from 'nvidia driver' and pasted it into Binhex Plexpass container settings.

- I have set --runtime=nvidia in 'extra parameters'

- I have set 'nvidia_visible_devices' to 'all'

 

image.png.8a68ce61c46870c13e89ca27e6ccbdaa.png

image.png.99862034c3cf40268c9bd6b437a00453.png

image.png.d9c470e15c74bc86968954c6f6e4d2b8.png

 

- I have enabled hardware acceleration under Transcoder settings.

 

image.png.d38dedb66e9e1b9dd83510821a9818d2.png

 

- I have confirmed transcoder temporary directory is working (i can see transcoding files in the directory i have mapped on my cache)

 

image.png.7a6b488cceb5634f116d2d6ee670dc0c.png

 

- When i launch Plex the the GPU Statistics plugin shows that my GPU is being utilised by Plex.

 

 image.png.b823fd985148fae1bab1f56cf37d9ef6.png

 

- When i launch terminal and type "watch nvidia-smi" i can see the GPU is being used by Plex.

 

image.png.7d87e2892fbf953e0a8f06cb5ca6163d.png

 

However with all that working properly and looking good, when I watch a movie and set Plex to transcode (rather than direct file stream), my CPU gets slammed and Plex does not show "transcode (hw)" in the now playing section. Instead it just shows "transcode", which means that it's not HW transcoding.

 

image.png.4183a6e7044b0590cd9f8e4f2ba4f6e7.png

image.png.a6be5bce14fea5bd905ff07c095081b8.png

 

Anyone have an idea? Has this been caused by transferring my Windows based %appdata% folder into Docker? To be clear i took the 'Plex Media Server' folder from Windows in %appdata%, deleted all of the folders in Binhex Plex in /appdata/, and copied it in.

 

Thanks.

image.png

You have the same issue as me above, I've found out that disabling subtitles solves the issue, now we need to understand how to get how to watch with subtitles and have everything go through the GPU as well......

EDIT: Putting SRT subtitles also work... Don't ask me why, I don't know. Hopefully someone will help us diagnose the issue, probably a docker issue ?

Edited by Samy
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.