Computer hangs on boot, after manual reboot, nzbdrone (installed as service) will not start. Config.xml file is the cause

So here is my situation. I have my media server (win 8.1 Pro) set to restart every day around 5. Some days (maybe once a week) when I try to access it remotely from work, it is inaccessible, and when I return home I notice the computer is displaying the desktop, the mouse moves, but I am unable to open anything. I then press the reset button, and the computer boots up fine, with the exception of nzbdrone now not launching, and giving the following error message.

“InvalidConfigFileException: C:\ProgramData\NzbDrone\config.xml is invalid, please see the http://wiki.nzbdrone.com for the steps to resolve this issue.”

Searching the wiki for issues relating to “config.xml” finds me nothing unfortunately.

I am able to fix the issue, by deleting the config.xml file and relaunching the program. It recreates a new config.xml file, and all my settings seem to be intact.

I’m not sure what is causing the failure but would love to know if anyone had any insight into this. I have since changed the service from Automatic to Automatic (Delayed Start) to see if that has any affect on it.

you should solve the problem with your machine on why its partially freezing, not look at trying to make sonarr work around the problem with your machine, hitting the reset button isnt a good solution, problems will just get worse

You should start with the event viewer in Windows, and check what errors are been generated if any / do some diagnostics on your memory and hard drives, update all your drivers etc

The answer is in the FAQ: https://github.com/Sonarr/Sonarr/wiki/FAQ#i-got-a-pop-up-that-said-configxml-was-corrupt-what-now, but its just to delete the file.

Definitely want to figure out why you need to restart it so often and why it freezes, thats not causing the issues with the config file, but something is causing the config file to become corrupt, when it happens again could you send me a copy, PM me a link to dropbox/mega/some file service, don’t pastebin the contents, I want the whole file.

That file shouldn’t be open for reading and writing, and should only be opened when saving settings (though most are in the DB).

It happened last night, and I renamed the file rather than delete it. I’ll send the file, renamed to config.xml.old

Thanks for the quick reply and help!

Edit: Not quite sure how to send a private message, is that disabled because this is a new account or am I missing something?

Edit 2: “Users at trust level 0 cannot…
•Send private messages to other users”
I think so, let me know how you would like me to proceed, I can post the link here if need be.

You should be able to PM now :smile: