# Corrupt database Nvidia shield

**URL:** <https://forums.plex.tv/t/corrupt-database-nvidia-shield/917122>\
**Category:** Plex Media Server\
**Tags:** server-nvidia-shield\
**Created:** [May 5, 2025, 6:10pm UTC](https://forums.plex.tv/t/corrupt-database-nvidia-shield/917122 "2025-05-05T18:10:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mic7](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Mic7](https://forums.plex.tv/u/Mic7)\
**Post date:** [May 5, 2025, 6:10pm UTC](https://forums.plex.tv/t/corrupt-database-nvidia-shield/917122/1 "2025-05-05T18:10:13Z")

</div>

Server Version#: 1.41.6.9685

Hello,

New media is not been added anymore, the consol shows below:  
SQLITE3:0x1, 11, database corruption at line 69165 of [a29f994989]  
SQLITE3:0x1, 11, statement aborts at 16: [SELECT sttb.`id`,sttb.`account_id`,sttb.`device_id`,sttb.`timespan`,sttb.`at`,sttb.`lan`,sttb.`bytes` FROM statistics\_bandwidth sttb WHERE (sttb.`account_id`=:C1 AND sttb.`device_id`=:C2 AND sttb.`timespan`=:C3 AND sttb.`at`=:C4 AND sttb.`lan`=:C5) LIMIT :C6] database disk image is malformed  
Thread: Uncaught exception running async task which was spawned by thread 216968568000: std::exception

Unfortunately I have no backup, so only way I think I can solve it is to [repair the database](https://support.plex.tv/articles/repair-a-corrupted-database/)?

I found above link, but it doesnt seems to explain when the server is installed on nvidia shield.

Can somebody please help me how to fix this? I am a real noob requarding PC and stuff 🙂

Thank you.

---

<div class="post-metadata">

**Author:** ![thenextbutton](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/thenextbutton/32/296564_2.png) [@thenextbutton](https://forums.plex.tv/u/thenextbutton)\
**Post date:** [May 5, 2025, 7:28pm UTC](https://forums.plex.tv/t/corrupt-database-nvidia-shield/917122/2 "2025-05-05T19:28:29Z")

</div>

You will need to get the DB files from the shield

[https://support.plex.tv/articles/220347688-accessing-shield-storage/](https://support.plex.tv/articles/220347688-accessing-shield-storage/)

There will probably be some backups on the shield already, assuming the corruption just happened recently, you may be able to restore one of them. Stop the Plex server service on the shield, rename/copy the live DB (I would not delete it until everything is back up and running), copy one of the backups across (renaming it at the same time, as it will probably have a date and time stamp in the filename of when the backup took place), then start up the Plex server service on the shield.

If that does not work it could, it be worth a shot trying to use this guide, once you copy the db files over from the shield.

[https://support.plex.tv/articles/repair-a-corrupted-database/](https://support.plex.tv/articles/repair-a-corrupted-database/)

you will probably need to install the server on to the computer just to get access to the Plex SQLite tool (I’m not sure if these can be downloaded from the Plex website separately). You won’t need to claim/register the server after installation, you are just looking to get the exe that is installed by the server installation.

---

<div class="post-metadata">

**Author:** ![Mic7](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Mic7](https://forums.plex.tv/u/Mic7)\
**Post date:** [May 10, 2025, 11:09am UTC](https://forums.plex.tv/t/corrupt-database-nvidia-shield/917122/3 "2025-05-10T11:09:28Z")

</div>

I manage to do everything in the links but unfortunatly it didnt solve the problem.  
I just created a new database, it took some time but al working well again. I will turn on the back for future restores :-).

---

<div class="post-metadata">

**Author:** ![ChristianKent](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@ChristianKent](https://forums.plex.tv/u/ChristianKent)\
**Post date:** [May 11, 2025, 12:35am UTC](https://forums.plex.tv/t/corrupt-database-nvidia-shield/917122/4 "2025-05-11T00:35:24Z")

</div>

Just to be sure, you’re talking about Plex’s built-in auto backup feature right? Because if you try to backup a live sqlite database using other software, you’re going to corrupt it.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [August 9, 2025, 12:35am UTC](https://forums.plex.tv/t/corrupt-database-nvidia-shield/917122/5 "2025-08-09T00:35:58Z")

</div>

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