# Wrapper.log is full of database malformed errors

**URL:** <https://forum.inductiveautomation.com/t/wrapper-log-is-full-of-database-malformed-errors/17713>\
**Category:** Ignition\
**Created:** [April 14, 2018, 2:24am UTC](https://forum.inductiveautomation.com/t/wrapper-log-is-full-of-database-malformed-errors/17713 "2018-04-14T02:24:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeyjojoshabadu](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@joeyjojoshabadu](https://forum.inductiveautomation.com/u/joeyjojoshabadu)\
**Post date:** [April 14, 2018, 2:24am UTC](https://forum.inductiveautomation.com/t/wrapper-log-is-full-of-database-malformed-errors/17713/1 "2018-04-14T02:24:47Z")

</div>

When I look in wrapper.log or the log page of the web interface there are loads of errors relating to a database malformed error:

```auto
INFO | jvm 1 | 2018/04/13 19:12:37 | Starting logfile maintenance. Max entries: 50000
INFO | jvm 1 | 2018/04/13 19:12:37 | Error executing logfile maintenance:java.sql.SQLException: database disk image is malformed
INFO | jvm 1 | 2018/04/13 19:12:38 | Scheduling logfile maintenance. Last maintenance: Fri Apr 13 19:12:37 PDT 2018, events since then: 0

```

those errors repeat every second.

The server is a linux OS.

What can I do to make the errors go away?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 16, 2018, 3:02pm UTC](https://forum.inductiveautomation.com/t/wrapper-log-is-full-of-database-malformed-errors/17713/2 "2018-04-16T15:02:39Z")

</div>

Delete the system\_logs.idb file from `var/log/ignition/`, then restart the gateway service so the file gets re-created.

---

<div class="post-metadata">

**Author:** ![joeyjojoshabadu](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@joeyjojoshabadu](https://forum.inductiveautomation.com/u/joeyjojoshabadu)\
**Post date:** [April 16, 2018, 5:03pm UTC](https://forum.inductiveautomation.com/t/wrapper-log-is-full-of-database-malformed-errors/17713/3 "2018-04-16T17:03:36Z")

</div>

that has fixed it thanks. the system\_logs.idb file was 300mb in size.
