Wrapper.log is full of database malformed errors

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:

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?

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

that has fixed it thanks. the system_logs.idb file was 300mb in size.