Plex looses library changes

I’m running Plex on my Raspberry Pi 3 (Raspbian)

It was all running smoothly until a few days ago. Now sometimes I just get the message that there was an error loading the library when opening the web client.

When I restart the service it works, but my recently added media and “watched” marks are gone.

The new media is found by scanning, but lost again the next day or so.

I already repaired the database as described here https://support.plex.tv/articles/201100678-repair-a-corrupt-database/

Ist there any way I can fix this error without resetting my library?

Try the solution in this thread Negative unwatched episode count (and Release Date ordering is random)

It sounds like your symptoms match the symptoms for the bad raspian update that rolled out 3/11

1 Like

Tried that. I set

LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so sudo rm /etc/ld.so.preload

And the responsible library raspi-copies-and-fills is installed in version 0.6

But when I reboot my library is still reset to an old state.

Seems like something’s really wrong with my pi.

I get lots of errors when apt upgrading.

I know it’s not a Plex problem, but if someone wants to check the output of apt-get upgrade and give some advice I’ll attach it.apt.log (19.9 KB)

At least your filesystem or your package database is broken.

So first check the filesystem of your RPi. Read e.g.

https://raspberrypi.stackexchange.com/questions/61723/raspberry-pi-3-and-raspbian-jessie-how-to-run-fsck-at-boot

Then perform another package list update, sudo apt-get update and try to repair your setup according to the recommendations in this post:

Thanks, so most of it works.

Now I only have the following errors left when running apt upgrade.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
Probieren Sie »apt --fix-broken install«, um dies zu korrigieren.
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libraspberrypi-bin : Hängt ab von: libraspberrypi0 (= 1.20190215-1) aber 1.20181112-1 ist installiert
 libraspberrypi-dev : Hängt ab von: libraspberrypi0 (= 1.20190215-1) aber 1.20181112-1 ist installiert
 libraspberrypi-doc : Hängt ab von: libraspberrypi0 (= 1.20190215-1) aber 1.20181112-1 ist installiert
 libraspberrypi0 : Hängt ab von: raspberrypi-bootloader (= 1.20181112-1) aber 1.20190215-1 ist installiert
E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt --fix-broken install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an).

apt --fix-broken install gives the attached log.
apt-fix-broken.txt (3.0 KB)

Edit: ok, forcing another fsck helped. No more problems in apt. Checking Plex again.

It seems like the problem is something completely different. It looks like my SD card went into hardware read-only mode since no file changes are persisted and everything is reset after reboot. Thanks @drmagoo @helphand

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.