I want to migrate my plex server from my windows server to my linux.
i followed the guide on plex’s website, and disabled automatic trash empty on the library, closed the service and transferred all the data inside “%LOCALAPPDATA%\Plex Media Server” after all the data was transfered i started the service on my linux machine and plex webinterface said it was doing database migration, and suddenly the service stopped.
The log told me the database or disk was full, the VM had 100GB available, so just to make sure i increased the VM to have 236GB available, but i still get the same error.
i’ve run a sudo “df -h” on the machine so you guys can see i have enough space on the ubuntu partition as well as the log from plex.
plex media server log.txt (6.1 KB)
Can anyone point me in the direction to a solution?
Next question is File Permissions.
Is the entire /var/lib/plexmediaserver , all files and directories beneath it, owned by plex:plex , with directories 755 permissions and files 644 permission ?
It should be, i have changed the permissions after i transferred all the data.
Are you using the SNAP install or the DPKG install ?
I am actually not sure about that, i am using swizzin on the ubuntu machine, and to install it, i just run a script: “sudo box install plex”
how can i check what installer i have used?
Instead of using the seedbox (swizzin) system, have you considered using the bare machine?
No i have not, everything else i have running with swizzin works like a charm, Jacket, sonarr, radarr, tautulli and webmin.
I guess i will have to spin up another VM and try to install plex without using swizzin, and import all the data.
I’ve just tried to run plex media server with snap, but i get a message saying that it is not installed, but when i run “dpkg -l | less” i can find plex on the list, so i guess it is installed with DPKG and not SNAP.
is that a good or a bad thing?
dpkg -l | grep plexm – will show you if installed with DPKG
snap list | grep plex – will show you if installed with snap
If you don’t see it in either location then it’s likely a container
Most find that running the native package (dpkg), on the bare host, to be the best performing and easiest to manage.
Putting the native package in a VM, with IP on the same home LAN, with GPU passthrough, to be another viable solution (e.g. what ProxMox VMs do)
Putting PMS in a container of any kind (VM or otherwise) can cause issues with GPU passthrough and/or networking if you’re not aware of the pitfalls
1 Like
It is indeed installed with DPKG, i’ve ran the commands, and it didn’t give an output with the snap command but it did give an output with DPKG.
So i suppose that is a good thing, as i have read online that snap can cause some weird trouble.
but is there anything else i can try to fix the database problem now that we know it is installed with DPKG?

I had some time today to try and spin up a new VM on my hypervisor and the only things i did was install openSSH so i could SSH into the VM and installed plex Media Server, and updated the machine fully, it could start the plex service and everything was working before i transferred the data, so i qiut the service and transferred the backup and try to start the service, it did the exactly same, it said it was doing database migration, and suddenly the service stopped, i checked the logs, and it said the disk og database is full, the machine has 106GB free, so it shouldnt be Swizzin that does anything wrong, it did exactly the same as my other server.
can you make a tar.gz of the server’s Logs directory and attach it?
i have made a tar.gz from the new VM i spun up today.
logs.tar.gz (42.4 KB)
did you set a quota anywhere ?
No not that i know of, i just checked my settings in plex and i have not set any kinds of quota, is there anywhere else i can set a quota?
The image above shows the permissions for the db files as 644. Not a Linux guy, but that’s not 755 as chuckpa asked.
He specified that files need to be 644 and directories need to be 755, as the DB is a file and not a directory the permission is correct.
Is your windows machine still working? See if the db will update from that.
Yes the machine is still working, last time I did an update on it, the Plex service wouldn’t load the database, and I had to restore from the backup from my Nas, as the backup that Plex took, didn’t work, so I have not updated it since, i could try to update Plex again and see if it was just the update that gave me some trouble, and that they maybe fixed it.
I’ve just tried to update plex on my windows machine, but after the update plex crashed and said i had a corrupted database, the logs told me that the disk is full, excacly what i experienced on my other machines.
I tried to use plex SQLite tool to recover and check my database, but the database check just returns “OK” i suppose all the data is OK, it is just that the database somehow can’t expand as it needs to?
I followed this guide from the plex website, but no luck, still the same error.
is there any commands i can just with the Plex SQLite tool to expand the database manually?