Server Version#: 1.41.8.9834
Player Version#: 4.147.1
TMP database not cleaning after Scheduled Tasks backup. The backup is successful, both main database and backup ones check out ok, no signs of corruption.
"/usr/lib/plexmediaserver/Plex SQLite" /mnt/plexdata/Backups/Plex/com.plexapp.plugins.library.db-2025-06-11
SQLite version 3.39.4 2022-09-29 15:55:41
Enter ".help" for usage hints.
sqlite> PRAGMA integrity_check;
ok
sqlite> VACUUM;
sqlite>
But yet still it fails to cleanup, from the tmp database pile up this started happening sometime in December, unfortunate didn’t notice till last month and i have been trying to fix issue since then with no success.
Issue was with backup share location. It seems for Plex to clean tmp database the user Plex is running as needs to be listed as owner of share files and folder even if permissions is 777.
Added uid=1003,gid=1003 to mount in fstab and last night the backup worked as expected.
Well not sure what to tell you. Already had dir_mode and file_mode 777 for years which stopped working in December, added uid=1003,gid=1003 to mount and now it works.
Specify uid=1003,gid=1003 in the mount fixed the issue which suggest Plex now has something checking file and/or backup directory ownership during backup.