I’m looking for help debugging the log files for my server. For the past week or so I have had playback errors with my video files on my plex server, streaming remotely from a linux server to an Nvidia Shield TV.
Most commonly the error will be that the playback will jump forward about 20 seconds intermittently. Sometimes the audio and video will just repeat themselves, but out of sync for about 5 seconds. Is there anything I can do to debug these issues? I have the log files downloaded but I’m a little wary of attaching them here in the forum as they might contain my personal information?
Two things can help you with posting log files.
When you restart PMS, give it 6 min., then cause the issue, stop playback, and download logs, you will see a number of the logs are timestamped after the reboot. Those are the only ones we need, and they will be reasonably clean.
Two, you can use a text editor to redact things based on the privacy info
And another that includes an example at the bottom of details that help
I’ve seen in some other threads that people were able to DM files to someone rather than post them on the public facing forum as an attachment?
That being said, I think what I missed from before was to restart right before causing the issue so the logs aren’t massive. What I had downloaded before was huge, so I was worried it might have PII or other information. I will try to get a more narrow set of logs that I can upload when I reproduce this issue. Thanks!
Ok I’ve captured the logs the way you suggested. This time the problem happened after about 10 minutes of resuming playback of a file. The audio just completely cut out after a bit. Any help with debugging my setup would be greatly appreciated.Plex Media Server Logs.zip (401.2 KB)
Hey thanks for the logs. This is the software/hardware:
Oct 23, 2019 00:23:40.069 [0x7fb06e2ac700] INFO - Plex Media Server v1.18.1.1973-0f4abfbcc - Docker Docker Container x86_64 - build: linux-x86_64 debian - GMT 02:00
Oct 23, 2019 00:23:40.070 [0x7fb06e2ac700] INFO - Linux version: 4.15.0-58-generic, language: C
Oct 23, 2019 00:23:40.070 [0x7fb06e2ac700] INFO - Processor Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
And this is the dominant error:
Oct 23, 2019 00:27:31.914 [0x7fb01e7fc700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Oct 23, 2019 00:27:31.914 [0x7fb01e7fc700] ERROR - [FFMPEG] - Could not dynamically load CUDA
Oct 23, 2019 00:27:31.915 [0x7fb01e7fc700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Oct 23, 2019 00:27:31.915 [0x7fb01e7fc700] ERROR - [FFMPEG] - Could not dynamically load CUDA
Because you’re using a docker and because I’m pretty clueless, you’re going to have to solve why it can’t dynamically load that one library. If it’s not a docker thing, you can stop PMS and delete the shared library. It will download it again when you start PMS.
Unfortunately I couldn’t see any good details in your logs about the playback issue because the server was not placed into Debug mode. Set up your logging options for Debug only like this:
Thank you! I have gotten some good leads based on the errors you pointed out so I’ll chase those down. If the issue happens again after I do the suggestions (update kernel etc) I’ll try to update this ticket with the debug logging attached.
So it happened again and I was able to capture the debug log. There seem to be two errors, one is about a missing font which I can investigate but the other error is pretty hard to understand.
Darn you’re getting two difficult errors that I’ve seen before.
The libcuda GPU driver issue did you try my suggestions? What happened?
The subtitle issue, try Settings - Account - Audio & Subtitle so that it’s 100% manual.
Thanks, I’ve gone ahead and done the subtitle change so hopefully that will help.
Secondarily, I didn’t quite understand your suggestion on the codecs and I was scared to mess it up. I wasn’t sure exactly what you meant when you said “delete the shared library”.
Is your suggestion that I delete the entire directory here: /config/Library/Application\ Support/Plex\ Media\ Server/Codecs/395e79c-2735-linux-x86_64/ ?
That’s what I did and it did download the codecs again on restart, but I still am seeing the error messages about LIBCUDA pop up. Let me know if I misunderstood, or if this was correct and I should upload a new set of logs if I can reproduce the error again.
You did well removing that directory. A website article has some information on clearing codecs and cache like that iirc.
I was offline due to power cuts in California.
As you’re on a Docker, the best I can do is help you to log this with steps to reproduce your issue. If we develop a good basis of evidence, we can ask another Linux pro to help us. You will probably want to explain exactly how you set up your Docker permissions with screenshots etc. Have a read over the Linux Tips here on the forums and let us know what you’ve tried and what you saw.