EPIC FAIL - Ubuntu

Finally made the move from Sickbeard to Sonarr

Clean Ubuntu install I get this

~$ mono /opt/NzbDrone/NzbDrone.exe
[Info] Bootstrap: Starting NzbDrone - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0. 2850
[Info] MigrationLogger: *** Migrating data source=/home/ross/.config/NzbDrone/nzb drone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;vers ion=3 ***
[Info] MigrationLogger: *** Migrating data source=/home/ross/.config/NzbDrone/log s.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version= 3 ***
[Info] Router: Application mode: Interactive

[Fatal] ConsoleApp: EPIC FAIL!

NzbDrone.Core.Configuration.InvalidConfigFileException: /home/ross/.config/NzbDro ne/config.xml is invalid, please see the http://wiki.sonarr.tv for steps to resol ve this issue. —> System.Xml.XmlException: Text node cannot appear in this stat e. file:///home/ross/.config/NzbDrone/config.xml Line 1, position 1.
at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in :0
at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in :0
at Mono.Xml2.XmlTextReader.Read () [0x00000] in :0
at System.Xml.XmlTextReader.Read () [0x00000] in :0
at Mono.Xml.XmlFilterReader.Read () [0x00000] in :0
at System.Xml.Linq.XDocument.ReadContent (System.Xml.XmlReader reader, LoadOpti ons options) [0x00000] in :0
at System.Xml.Linq.XDocument.LoadCore (System.Xml.XmlReader reader, LoadOptions options) [0x00000] in :0
at System.Xml.Linq.XDocument.Load (System.String uri, LoadOptions options) [0x0 0000] in :0
at System.Xml.Linq.XDocument.Load (System.String uri) [0x00000] in :0
at NzbDrone.Core.Configuration.ConfigFileProvider.LoadConfigFile () [0x00000] i n :0
— End of inner exception stack trace —
at NzbDrone.Core.Configuration.ConfigFileProvider.LoadConfigFile () [0x00000] i n :0
at NzbDrone.Core.Configuration.ConfigFileProvider+<>c__DisplayClass1. b__0 () [0x00000] in :0
at NzbDrone.Common.Cache.Cached1[System.String].Get (System.String key, System .Func1 function, Nullable1 lifeTime) [0x00000] in <filename unknown>:0 at NzbDrone.Core.Configuration.ConfigFileProvider.GetValue (System.String key, System.Object defaultValue, Boolean persist) [0x00000] in <filename unknown>:0 at NzbDrone.Core.Configuration.ConfigFileProvider.GetValueInt (System.String ke y, Int32 defaultValue) [0x00000] in <filename unknown>:0 at NzbDrone.Core.Configuration.ConfigFileProvider.get_Port () [0x00000] in <fil ename unknown>:0 at NzbDrone.Host.AccessControl.UrlAclAdapter.ConfigureUrls () [0x00000] in <fil ename unknown>:0 at NzbDrone.Host.Owin.OwinHostController.StartServer () [0x00000] in <filename unknown>:0 at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00000] in <filename unknown >:0 at NzbDrone.Host.Router.Route (ApplicationModes applicationModes) [0x00000] in <filename unknown>:0 at NzbDrone.Host.Bootstrap.Start (ApplicationModes applicationModes, NzbDrone.C ommon.EnvironmentInfo.StartupContext startupContext) [0x00000] in <filename unkno wn>:0 at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContex t startupContext, IUserAlert userAlert, System.Action1 startCallback) [0x00000] in :0
at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00000] in :0

Press any key to exit…

Searched the Wiki that is said in the error…Couln’t find it mentioned…Maybe I missed it?

Maybe, the wiki is a mess right now.

You can simply delete config.xml to get back up and running (it will reset the port, authentication and a few other options on the general settings page).

If Sonarr has already run a backup you can restore the config from that as well.

Markus ( thanks for your help )

This is a fresh install - Never ran

Removed it with

rm /home/ross/.config/NzbDrone/config.xml

now I get this error

[Info] Bootstrap: Starting NzbDrone - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.2850
[Info] MigrationLogger: *** Migrating data source=/home/ross/.config/NzbDrone/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] MigrationLogger: *** Migrating data source=/home/ross/.config/NzbDrone/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] Router: Application mode: Interactive

[Fatal] ConsoleApp: EPIC FAIL!

NzbDrone.Core.Configuration.InvalidConfigFileException: /home/ross/.config/NzbDrone/config.xml is invalid, please see the http://wiki.sonarr.tv for steps to resolve this issue. —> System.Xml.XmlException: Text node cannot appear in this state. file:///home/ross/.config/NzbDrone/config.xml Line 1, position 1.
at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in :0
at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in :0
at Mono.Xml2.XmlTextReader.Read () [0x00000] in :0
at System.Xml.XmlTextReader.Read () [0x00000] in :0
at Mono.Xml.XmlFilterReader.Read () [0x00000] in :0
at System.Xml.Linq.XDocument.ReadContent (System.Xml.XmlReader reader, LoadOptions options) [0x00000] in :0
at System.Xml.Linq.XDocument.LoadCore (System.Xml.XmlReader reader, LoadOptions options) [0x00000] in :0
at System.Xml.Linq.XDocument.Load (System.String uri, LoadOptions options) [0x00000] in :0
at System.Xml.Linq.XDocument.Load (System.String uri) [0x00000] in :0
at NzbDrone.Core.Configuration.ConfigFileProvider.LoadConfigFile () [0x00000] in :0
— End of inner exception stack trace —
at NzbDrone.Core.Configuration.ConfigFileProvider.LoadConfigFile () [0x00000] in :0
at NzbDrone.Core.Configuration.ConfigFileProvider+<>c__DisplayClass1.b__0 () [0x00000] in :0
at NzbDrone.Common.Cache.Cached1[System.String].Get (System.String key, System.Func1 function, Nullable1 lifeTime) [0x00000] in <filename unknown>:0 at NzbDrone.Core.Configuration.ConfigFileProvider.GetValue (System.String key, System.Object defaultValue, Boolean persist) [0x00000] in <filename unknown>:0 at NzbDrone.Core.Configuration.ConfigFileProvider.get_UrlBase () [0x00000] in <filename unknown>:0 at NzbDrone.Host.AccessControl.UrlAclAdapter.BuildUrlAcls (System.String scheme, System.String address, Int32 port) [0x00000] in <filename unknown>:0 at NzbDrone.Host.AccessControl.UrlAclAdapter.ConfigureUrls () [0x00000] in <filename unknown>:0 at NzbDrone.Host.Owin.OwinHostController.StartServer () [0x00000] in <filename unknown>:0 at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00000] in <filename unknown>:0 at NzbDrone.Host.Router.Route (ApplicationModes applicationModes) [0x00000] in <filename unknown>:0 at NzbDrone.Host.Bootstrap.Start (ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x00000] in <filename unknown>:0 at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, IUserAlert userAlert, System.Action1 startCallback) [0x00000] in :0
at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00000] in :0

Error just seems to be looping, even after I delete the config.

What are the contents if that file?

> <?xml version="1.0" encoding="utf-16" standalone="yes"?>
> <Config>
>   <Port>8989</Port>
> </Config>

Can you try setting the contents to:

<Config>
  <Port>8989</Port>
</Config>