Corrupt DB instructions lead to a 0KB database

Dumping the db and then recreating it works for me. Which I think is the same as the Plex recommended commands

Sadly not an Unraid guy, so clueless here, but as others has mentioned, Unraid has a history of bas SQLite handling

@dane, any chance you can still
Take a look at my
Logs in case anything stands out ??

That would req. a fresh set of logs :wink:

@dane22 - Its ā€œJustā€ corrupted again :frowning: I’ll send you the logs directly if you could take a look ??

Nothing stands out here

Logs indicate a corruption most likely in media_items and/or media_parts table or their indexes

But no indication as to why

I did however do some searching, and found this:
https://sqlite.org/forum/info/02c1a784a2830a3d

and this:

So if using NFS, then consider moving config to a local disk

Not sure what NFS is ?

I use XSF file system for the unassigned drive

Hey,

Yup I don’t use that, so i dont think thats the problem.

I’m stumped.

Do the logs point to a corrupt DB ?

thanks

Yes, but as said, nothing to indicate why, so maybe something in your system/os logs?
And as said, not knowing your environment

its ok, what was the last action before the db error ?

It’s unlikely that there’s a ā€œsmoking gunā€ event in the Plex logs.

Plex uses SQLite to read and write data.
Each IO operation will either succeed or fail.
Plex will log the first time a read or write encounters an error, but that indicates that the database was already damaged.

SQLite is absurdly reliable unless the underlying storage is lying to it and misbehaving.

How SQLite Is Tested
Most Widely Deployed SQL Database Engine
How To Corrupt An SQLite Database File

How do you currently have Unraid configured? Where is the Plex data & database stored? What’s the filesystem?

In a nutshell:-

I’m using the linuxserver plex docker, with my plex app data on a dedicated SSD using ā€œUnassigned Devicesā€

The SSD is XSF formatted & is 1TB in size, and only 230GB used. its a Samsung 860 EVO & is 2 years (ish) old.

Ahh, interesting. I’m super unfamiliar with Unraid, so ā€œUnassigned Devicesā€ didn’t mean anything to me.

It seems like it’s a plugin for people who want to use Unraid, but don’t actually want to use Unraid? Odddddddd

Linux & XFS & SQLite should be fine. XFS is a conservative choice.

I’ve got no good suggestions.

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