# Error executing logfile maintenance:org.sqlite.SQLiteException: \[SQLITE\_CORRUPT\] The database disk image is malformed (database disk image is malformed)

**URL:** <https://forum.inductiveautomation.com/t/error-executing-logfile-maintenance-org-sqlite-sqliteexception-sqlite-corrupt-the-database-disk-image-is-malformed-database-disk-image-is-malformed/59200>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 4, 2022, 8:58am UTC](https://forum.inductiveautomation.com/t/error-executing-logfile-maintenance-org-sqlite-sqliteexception-sqlite-corrupt-the-database-disk-image-is-malformed-database-disk-image-is-malformed/59200 "2022-05-04T08:58:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dean\_Walsh](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dean\_Walsh](https://forum.inductiveautomation.com/u/Dean_Walsh)\
**Post date:** [May 4, 2022, 8:58am UTC](https://forum.inductiveautomation.com/t/error-executing-logfile-maintenance-org-sqlite-sqliteexception-sqlite-corrupt-the-database-disk-image-is-malformed-database-disk-image-is-malformed/59200/1 "2022-05-04T08:58:43Z")

</div>

Hello, I was looking in the wrapper file of the logs and seen i was getting thousands of the same error which refers to sqlite being corrupt but its very confusing because im using microsoft sql for my database, other than i think the sample tags use this.  
I seen one related post on these forums which said to delete the system\_logs.idb file and restart the gateway the file itself is actually 36gb so obviously there is a problem will deleting it be a long term solution or will these errors keep piling up again what have i done to cause this?

(sorry if the title isnt ideal i thought it might help people googling the same problem)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/2/42ab172f55c8b48d157354a6415baa54559f11ab.png)

---

<div class="post-metadata">

**Author:** ![Dean\_Walsh](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dean\_Walsh](https://forum.inductiveautomation.com/u/Dean_Walsh)\
**Post date:** [May 4, 2022, 9:22am UTC](https://forum.inductiveautomation.com/t/error-executing-logfile-maintenance-org-sqlite-sqliteexception-sqlite-corrupt-the-database-disk-image-is-malformed-database-disk-image-is-malformed/59200/2 "2022-05-04T09:22:08Z")

</div>

To follow up, deleting system\_logs.idb seems to have stopped the onslaught of errors

---

<div class="post-metadata">

**Author:** ![bao.nguyen](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bao.nguyen](https://forum.inductiveautomation.com/u/bao.nguyen)\
**Post date:** [May 27, 2025, 6:50am UTC](https://forum.inductiveautomation.com/t/error-executing-logfile-maintenance-org-sqlite-sqliteexception-sqlite-corrupt-the-database-disk-image-is-malformed-database-disk-image-is-malformed/59200/3 "2025-05-27T06:50:16Z")

</div>

Hi,  
Thank you sharing your solution.  
Just a clarification - I **deleted** the "system\_logs.idb" and then **restarted** the gateway.  
After those two steps, the gateway logs started to appear as normal.  
Cheers.
