# SQLlite databse or disk is full when migrating

**URL:** <https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [May 7, 2025, 3:22pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470 "2025-05-07T15:22:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 7, 2025, 3:22pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/1 "2025-05-07T15:22:23Z")

</div>

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.

 ![ksnip_20250507-171834](https://global.discourse-cdn.com/plex/original/4X/5/b/6/5b6d10428ad00936665fc47923e8fbd732737562.png)

[plex media server log.txt](https://forums.plex.tv/uploads/short-url/4L1f06OgAbtTbbgCHifRq6B6hIn.txt) (6.1 KB)

Can anyone point me in the direction to a solution?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 7, 2025, 3:41pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/2 "2025-05-07T15:41:01Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 7, 2025, 3:42pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/3 "2025-05-07T15:42:46Z")

</div>

It should be, i have changed the permissions after i transferred all the data.

 ![ksnip_20250507-174507](https://global.discourse-cdn.com/plex/original/4X/b/d/a/bdadbadc21dfca1f42c209fb1205ecdd4b08bd9c.png)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 7, 2025, 3:49pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/5 "2025-05-07T15:49:33Z")

</div>

Are you using the SNAP install or the DPKG install ?

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 7, 2025, 3:55pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/6 "2025-05-07T15:55:25Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 7, 2025, 4:10pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/7 "2025-05-07T16:10:00Z")

</div>

Instead of using the seedbox (swizzin) system, have you considered using the bare machine?

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 7, 2025, 4:12pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/8 "2025-05-07T16:12:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 7, 2025, 4:33pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/9 "2025-05-07T16:33:34Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 7, 2025, 4:49pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/10 "2025-05-07T16:49:47Z")

</div>

`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

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 8, 2025, 7:05am UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/11 "2025-05-08T07:05:34Z")

</div>

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?  
 ![ksnip_20250508-090423](https://global.discourse-cdn.com/plex/original/4X/5/6/a/56a0df696b9c65fb5cf854a409b3c2380327ca1b.png)

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 8, 2025, 5:09pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/12 "2025-05-08T17:09:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 8, 2025, 8:54pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/13 "2025-05-08T20:54:05Z")

</div>

can you make a tar.gz of the server’s `Logs` directory and attach it?

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 8, 2025, 9:29pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/14 "2025-05-08T21:29:12Z")

</div>

i have made a tar.gz from the new VM i spun up today.  
[logs.tar.gz](https://forums.plex.tv/uploads/short-url/kaotTDkq1IVC6k66BMPdA38vACz.gz) (42.4 KB)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 8, 2025, 9:42pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/15 "2025-05-08T21:42:06Z")

</div>

did you set a quota anywhere ?

 ![Screenshot from 2025-05-08 17-43-10](https://global.discourse-cdn.com/plex/original/4X/3/5/8/3583b92ed40267f2a897c1ddedbbed8320a3989e.png)

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 9, 2025, 5:27am UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/16 "2025-05-09T05:27:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![MovieFan](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@MovieFan](https://forums.plex.tv/u/MovieFan)\
**Post date:** [May 9, 2025, 6:47am UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/17 "2025-05-09T06:47:50Z")

</div>

The image above shows the permissions for the db files as 644. Not a Linux guy, but that’s not 755 as chuckpa asked.

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 9, 2025, 7:02am UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/18 "2025-05-09T07:02:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MovieFan](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@MovieFan](https://forums.plex.tv/u/MovieFan)\
**Post date:** [May 9, 2025, 7:20am UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/19 "2025-05-09T07:20:18Z")

</div>

Is your windows machine still working? See if the db will update from that.

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 9, 2025, 7:48pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/20 "2025-05-09T19:48:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gaggenau](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gaggenau/32/16927_2.png) [@gaggenau](https://forums.plex.tv/u/gaggenau)\
**Post date:** [May 9, 2025, 9:31pm UTC](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470/21 "2025-05-09T21:31:17Z")

</div>

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](https://support.plex.tv/articles/repair-a-corrupted-database/) 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?

[Next page](https://forums.plex.tv/t/sqllite-databse-or-disk-is-full-when-migrating/917470.md?page=2)
