[OS X] Sonarr won't start

I’m at a loss here. Been using Sonarr for a while now, but about a month ago, it wouldn’t start. Everytime I try to go to localhost:8989 I get: ERR_CONNECTION_REFUSED.

I’ve restalled Sonarr a bunch of times. I’ve read something about a corrupt database, so I tried to backup and restore. Wouldn’t butch. After that, I opened up the Activity Monitor and I see it for a veeery short time.

The only thing I can think of right now is place the log and hope someone can help me point to the right direction.

The solution: remove the logs.db, restart Sonarr. It should work again.

I used to have my entire log below. Now I truncated it to only show the problem area

15-12-12 08:16:52.4|Info|MigrationLogger|*** Migrating data source=/Users/Misha/.config/NzbDrone/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Truncate;pooling=True;version=3;Full FSync=True ***
15-12-12 08:16:52.4|Fatal|ConsoleApp|EPIC FAIL!

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) [0x00000] in <filename unknown>:0 
  at System.Data.SQLite.SQLiteCommand.BuildNextCommand () [0x00000] in <filename unknown>:0 

15-12-17 18:37:06.1|Info|Bootstrap|Starting Sonarr - /Applications/Sonarr.app/Contents/MacOS/NzbDrone.exe - Version 2.0.0.3594
15-12-17 18:37:10.6|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone.Console
15-12-17 18:37:11.0|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone
15-12-17 18:37:11.3|Info|MigrationLogger|*** Migrating data source=/Users/Misha/.config/NzbDrone/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Truncate;pooling=True;version=3;Full FSync=True ***
15-12-17 18:37:11.8|Debug|MigrationLogger|Took: 00:00:00.4443528
15-12-17 18:37:11.8|Info|MigrationLogger|*** Migrating data source=/Users/Misha/.config/NzbDrone/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Truncate;pooling=True;version=3;Full FSync=True ***
15-12-17 18:37:11.8|Fatal|ConsoleApp|EPIC FAIL!

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) [0x00000] in <filename unknown>:0 
  at System.Data.SQLite.SQLiteCommand.BuildNextCommand () [0x00000] in <filename unknown>:0

I am experiencing the same issue, I see somebody else is experiencing issues today too, I have no idea why I can’t connect anymore. I can’t blame it on El Capitan because it’s been working since I have upgraded, it’s just stopped all of a sudden.

Exact same issue here… Is it really needed to completely reinstall sonarr to restore a db backup?

Your logs.db file is corrupt and needs to be deleted.

It is located one directory up from the log files.

1 Like

Thanks. This worked! Thanks mate!

I genuinely cannot find this logs.db folder, I am in my user folder and see no such .config folder

.config (all files and folders that start with .) are hidden by default, you’ll either need to show them or navigate to it using Go to Folder in finder.

There we go, thank you so much, I had to unhide them. Sonarr is back :smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.