Sonarr version: 2.0 Mono version: N/A OS: Mac OS 10.11.4 (15E65) ((Debug logs)) (posted to hastebin or similar):
7/31/16 7:28:02.544 PM com.apple.xpc.launchd[1]: (com.osx.sonarr.tv.291232[2036]) Service exited with abnormal code: 1
Description of issue:
I had a working version of sonarr, but it suddenly stopped working.
Following the advice in some forums, I removed logs.db, logs.db-journal, and all files from the logs directory within .config/NzbDrone in my user directory.
Even then, sonarr doesn’t start. I attached above the log I get when looking at the Console app from the Mac OS X utilied.
Aha, that says indeed something more useful. How can I recover the nzbdrone.db?
16-8-1 14:41:11.4|Info|Bootstrap|Starting Sonarr - /Applications/Sonarr.app/Contents/MacOS/NzbDrone.exe - Version 2.0.0.4230
16-8-1 14:41:16.6|Info|MigrationLogger|*** Migrating data source=/Users/gianno/.config/NzbDrone/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Truncate;pooling=True;version=3;Full FSync=True ***
16-8-1 14:41:16.8|Fatal|ConsoleApp|EPIC FAIL!
[v2.0.0.4230] System.Data.SQLite.SQLiteException: database disk image is malformed
database disk image is malformed
at System.Data.SQLite.SQLite3.Prepare (System.Data.SQLite.SQLiteConnection cnn, System.String strSql, System.Data.SQLite.SQLiteStatement previous, UInt32 timeoutMS, System.String& strRemain) <0x3845000 + 0x00ac3> in :0
at System.Data.SQLite.SQLiteCommand.BuildNextCommand () <0x38444a0 + 0x001a8> in :0
I now found an alternative nzbdrone.db in backups (The latest one was in the update directory, not in scheduled). Substituted the failing one with the one from backups, and everything works now. Is it OK?