I can’t start Sonarr. I get an error message about permissions. I’m on Windows 7. It was running and I found that it had shut down.
Any ideas?
I can’t start Sonarr. I get an error message about permissions. I’m on Windows 7. It was running and I found that it had shut down.
Any ideas?
It seems to happen after the latest update tonight. I tried restoring from backup but when Sonarr started it updated and I was back to that error message.
System.UnauthorizedAccessException: Access to the path ‘C:\ProgramData\NzbDrone\config.xml’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName)
at System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings)
at System.Xml.Linq.XDocument.Save(String fileName, SaveOptions options)
at NzbDrone.Core.Configuration.ConfigFileProvider.DeleteOldValues() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Configuration\ConfigFileProvider.cs:line 322
at NzbDrone.Core.Configuration.ConfigFileProvider.HandleAsync(ApplicationStartedEvent message) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Configuration\ConfigFileProvider.cs:line 345
at NzbDrone.Core.Messaging.Events.EventAggregator.<>c__DisplayClass3`1.b__0() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Events\EventAggregator.cs:line 72
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
15-1-18 23:08:34.6|Info|HousekeepingService|Running housecleaning tasks
15-1-18 23:08:35.5|Info|BrowserService|Starting default browser. http://localhost:8989
15-1-18 23:08:35.5|Info|ProcessProvider|Opening URL [http://localhost:8989]
15-1-18 23:08:35.9|Info|DbFactory|Vacuuming database
15-1-18 23:08:36.8|Error|TaskExtensions|Task Error
System.UnauthorizedAccessException: Access to the path ‘C:\ProgramData\NzbDrone\config.xml’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName)
at System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings)
at System.Xml.Linq.XDocument.Save(String fileName, SaveOptions options)
at NzbDrone.Core.Configuration.ConfigFileProvider.SetValue(String key, Object value) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Configuration\ConfigFileProvider.cs:line 299
at NzbDrone.Core.Configuration.ConfigFileProvider.<>c__DisplayClass1.b__0() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Configuration\ConfigFileProvider.cs:line 267
at NzbDrone.Common.Cache.Cached1.Get(String key, Func
1 function, Nullable1 lifeTime) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Cache\Cached.cs:line 87 at NzbDrone.Core.Configuration.ConfigFileProvider.GetValue(String key, Object defaultValue, Boolean persist) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Configuration\ConfigFileProvider.cs:line 248 at NzbDrone.Core.Configuration.ConfigFileProvider.get_BindAddress() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Configuration\ConfigFileProvider.cs:line 120 at NzbDrone.Host.AccessControl.UrlAclAdapter.ConfigureUrls() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\AccessControl\UrlAclAdapter.cs:line 56 at NzbDrone.Host.Owin.OwinHostController.StartServer() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Owin\OwinHostController.cs:line 48 at NzbDrone.Host.NzbDroneServiceFactory.Start() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\ApplicationServer.cs:line 55 at NzbDrone.Host.Router.Route(ApplicationModes applicationModes) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Router.cs:line 38 at NzbDrone.Host.Bootstrap.Start(ApplicationModes applicationModes, StartupContext startupContext) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Bootstrap.cs:line 70 at NzbDrone.Host.Bootstrap.Start(StartupContext startupContext, IUserAlert userAlert, Action
1 startCallback) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Bootstrap.cs:line 38
at NzbDrone.WindowsApp.Main(String[] args) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone\WindowsApp.cs:line 23
Have you tried renaming config.XML?
Do you have an antivirus application running on that system?
Looks like something external is blacking Sonarr from accessing its own config file.
PS please pastebin logs, much easier to read.
Renaming the config.xml seems to have fixed things.
Sorry for the sloppy way I posted my logs.
Thank you for your help.
Thanks for reporting back, glad its working again,