My EM Client crashed

How do I fix this? I dont want to lose my emails. I’m on an iMAC

code = IoErr (10), message = System.Data.SQLite.SQLiteException (0x800007FF): disk I/O error
disk I/O error
at System.Data.SQLite.SQLite3.Prepare (System.Data.SQLite.SQLiteConnection cnn, System.String strSql, System.Data.SQLite.SQLiteStatement previous, System.UInt32 timeoutMS, System.String& strRemain) [0x00346] in <246c97b5d01341d297c1c5ac880fd224>:0
at System.Data.SQLite.SQLiteCommand.BuildNextCommand () [0x000f6] in <246c97b5d01341d297c1c5ac880fd224>:0
at System.Data.SQLite.SQLiteCommand.GetStatement (System.Int32 index) [0x00008] in <246c97b5d01341d297c1c5ac880fd224>:0
at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteCommand.GetStatement(int)
at System.Data.SQLite.SQLiteDataReader.NextResult () [0x00124] in <246c97b5d01341d297c1c5ac880fd224>:0
at System.Data.SQLite.SQLiteDataReader…ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x0008e] in <246c97b5d01341d297c1c5ac880fd224>:0
at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader…ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <246c97b5d01341d297c1c5ac880fd224>:0
at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <246c97b5d01341d297c1c5ac880fd224>:0
at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <246c97b5d01341d297c1c5ac880fd224>:0
at System.Data.SQLite.SQLiteConnection.Open () [0x009c9] in <246c97b5d01341d297c1c5ac880fd224>:0
at MailClient.Storage.Data.DataStore.GetConnectionInternal (System.String relativeName) [0x000a4] in :0
at MailClient.Storage.Data.DataStore.GetSQLiteConnection (System.String relativeName) [0x00000] in :0
at MailClient.DbRepair.CorruptionChecker.CheckCorruption (MailClient.DbRepair.RepairOptions repairOptions, System.Threading.CancellationToken token) [0x002b8] in <2b32b060f4ea4e04849c465322871d91>:0
at MailClient.DbRepair.CheckingProcess.Check (System.Threading.CancellationToken token) [0x00000] in <2b32b060f4ea4e04849c465322871d91>:0
Data:
databaseFile: templates.dat

Usually with a disk error you will not be able to recover the database.

This lists the issue as the templates.dat file, so you will lose your templates, but delete that file from the database directory and restart eM Client. If that still doesn’t help, you will need to delete the database directory completely.

If your email is synced with an IMAP or Exchange server, means you can access your emails using a web browser, you will not lose them. Once you setup your account in eM Client again, the messages will resync from the server.

Otherwise, after deleting the database directory, restart eM Client, cancel the setup window and restore your last backup if you have one.