If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Endless buffering on Raspberry Pi 3

Hello, I have recently installed Plex Media Server on a Raspberry Pi 3 B+. The server runs well and is able to play content with no buffering until 2 items have been played. Once a third item is played, after about 3-5 minutes of playback the video will begin buffering and will not stop (I've left it alone for hours to buffer and it never finished). If the video is exited and selected again, it will resume but will only play for about a minute before it begins buffering once again. The same thing happens if the video is exited and another is selected instead. The only thing that resolves the issue is a full reboot of the Pi; however the issue will return once 2 items have been played. I am streaming via ethernet on my local area network (although the problem also exists with remote streaming) to my Macbook Pro 2015 running Plex Media Player, everything is Direct Play with no transcoding, so that shouldn't be part of the issue. I don't think it's a problem with my router either, as I was previously running a Plex Media Server on a Windows 10 desktop on the same network and experienced no issues whatsoever. I've checked the Plex logs and there doesn't seem to be anything fishy, does anybody know why this might be happening? I can provide logs & other information upon request. For reference, I am running Raspbian Lite (CLI only) with kernel version 4.14.30-v7+. Thank you!

Answers

  • uglymagoouglymagoo Posts: 966Members, Plex Pass, Plex Ninja, TunerTester Plex Ninja

    Please first update your Raspbian (with apt). Linux 4.14.30 has known stability issues and there is a new kernel available.

    Official instructions for Plex Media Server on the Raspberry Pi 2 and 3 / Banana Pi / ODROID / many more : armhf and arm64 Debian Repository
    My PMS hardware: RPi 2, NVIDIA Shield TV, Intel Xeon

  • grumblegoosegrumblegoose Posts: 5Members

    @uglymagoo said:
    Please first update your Raspbian (with apt). Linux 4.14.30 has known stability issues and there is a new kernel available.

    This fixed the problem last night, but I just tried to watch something today and it's back again, this time after watching one item.

  • uglymagoouglymagoo Posts: 966Members, Plex Pass, Plex Ninja, TunerTester Plex Ninja

    Pleas tell us more: where is your media and how is it mounted on your Pi? How did you install Plex? What version of Plex Server and Plex player are you using? Is a restart of the plexmediaserver via systemctl not sufficient to fix your issue? What power supply do you use? Anything special ...

    And server logs would be great: journalctl -u plexmediaserver, sudo dmesg and Plex server logs:

    https://support.plex.tv/articles/200250417-plex-media-server-log-files/

    Official instructions for Plex Media Server on the Raspberry Pi 2 and 3 / Banana Pi / ODROID / many more : armhf and arm64 Debian Repository
    My PMS hardware: RPi 2, NVIDIA Shield TV, Intel Xeon

  • grumblegoosegrumblegoose Posts: 5Members

    My media is stored on a 750GB Samsung HDD in a USB enclosure, mounted via ntfs-3g. I installed Plex using the instructions for Raspberry Pi 2/3 on this forum; the only other thing installed on my Pi is ntfs-3g. A restart of plexmediaserver via systemctl will allow the content to play for a few minutes before the buffering returns. I use an Adafruit power supply that came with my Pi when I bought it.

    Plex Media Server Version: 1.13.0.5023
    Plex Media Player Version: 3.47.1

    journalctl -u plexmediaserver: https://pastebin.com/raw/KmdJ2WSJ

    sudo dmesg: https://pastebin.com/raw/DK9cq8Gr

    Plex Media Server.log: https://pastebin.com/raw/Rtp6C08p

    com.plexapp.system.log: https://pastebin.com/raw/8muQeVd4

    Please let me know if you need any further information.

  • uglymagoouglymagoo Posts: 966Members, Plex Pass, Plex Ninja, TunerTester Plex Ninja

    Please post all Plex Media Server.log s or the complete archive. The Plex Media Server.log that you have provided contains only the messages after your last manual restart. There is nothing helpful there.

    Official instructions for Plex Media Server on the Raspberry Pi 2 and 3 / Banana Pi / ODROID / many more : armhf and arm64 Debian Repository
    My PMS hardware: RPi 2, NVIDIA Shield TV, Intel Xeon

  • grumblegoosegrumblegoose Posts: 5Members

    Sorry about that. Here are all the Plex Media Server.logs. I wasn't able to upload them to pastebin as they are too large.

  • uglymagoouglymagoo Posts: 966Members, Plex Pass, Plex Ninja, TunerTester Plex Ninja

    The only interesting thing I have seen in your logs is an occasional "database locked" error. Did you move your Plex Library / Application Support Directory from /var/lib/plexmediaserver to another location (e.g. your external drive)?

    Official instructions for Plex Media Server on the Raspberry Pi 2 and 3 / Banana Pi / ODROID / many more : armhf and arm64 Debian Repository
    My PMS hardware: RPi 2, NVIDIA Shield TV, Intel Xeon

  • grumblegoosegrumblegoose Posts: 5Members

    I haven't moved that directory, it's still in /var/lib/plexmediaserver. However, I think I've learned something about this issue that may be helpful. It seems that the buffering occurs after a certain amount of data rather than a number of items (which was probably just coincidental). Last night I attempted to watch a movie and it stalled and began buffering about halfway through, which was at around 1h of playback time.

    Is there anything else that could be causing the "database locked" error?

    Some other information:
    -my media drive is an old reformatted laptop drive in a Kingston USB enclosure, not sure if that would cause an issue with the Pi. It is not externally powered.
    -I only use SSH from my Macbook to interface with the Pi if that makes any difference.
    -the issue was totally resolved after I used apt to switch to another commit branch (I was somehow stuck on a 4.14.30 branch) and rebooted; after this, media played flawlessly for hours until the next day when I woke my Macbook up from sleep and my SSH connection had been terminated by a broken pipe. After this, the issue returned.

    Thanks again for the help.

Sign In or Register to comment.