Yikes, serious new bug. It appears all my settings are being wiped with each new update of NZBDrone 2. It originally happened with the “5xx” update, and I assumed it was some kind of one-time glitch, I reset everything up and didn’t think too much about, but it has just happened again with the 605 update.
All settings reset to default, logs don’t go back further than 10:35am this morning. Installed on Windows Server 2012, and has worked fine since 2.0 (and 1.x before that), until just recently. Anyone else seen this? I can’t see anyway in the settings to back them up to make it easier to recover from this in the future…
This came up from time to time in v1, the cause was anti-virus resetting the database after the computer rebooted.
Which Anti-Vius product do you have installed (assuming you have one)?
NzbDrone does at time make DB changes, but they are done in a non-destructive way and 2.0.0.605 did not contain any of these changes.
As for the logs, DB or file logs? The DB logs get trimmed periodically (keeping 14 days worth). File logs roll over, keeping the last 5 files plus the current one (nzbdrone.log).
2.0.0.605 was released yesterday and drone checks for updates every hour, unless your system was offline or the update failed for some reason (it should be in C:\\ProgramData\zbDrone\\updatelogs
). I’d say take a look at what happened around 10:35am, did your system restart?
And one more update (sorry):
- I found the last version backed up in C:\windows\temp
zbdrone_update
zbdrone_backup. (thanks!!) – I copied the nzbdrone.db* files and the assets in the MediaCover folder from that backup back to the \ProgramData\zbDrone folder and restarted the service and I appear to be back in business!
I can’t find anything that indicates why this might of happened. Let me know if you want more info/help diagnosing…
Confirming that the event that occurred at 10:35 was the nzbdrone update event. From the backed up logs, here is the start of the update event:
13-9-23 10:35:07.7|Info|InstallUpdateService|Downloading Updated 2.0.0.605 [master]
13-9-23 10:35:11.1|Info|InstallUpdateService|Extracting Update package
13-9-23 10:35:12.1|Info|InstallUpdateService|Update package extracted successfully
13-9-23 10:35:12.1|Info|InstallUpdateService|Preparing client
13-9-23 10:35:12.2|Info|InstallUpdateService|Starting update client C:\Windows\TEMP
zbdrone_update
zbdrone.update.exe
13-9-23 10:35:12.2|Info|InstallUpdateService|NzbDrone will restart shortly.
13-9-23 10:35:12.2|Info|nzbdrone.update.exe|Starting C:\Windows\TEMP
zbdrone_update
zbdrone.update.exe 2448
13-9-23 10:35:12.9|Info|NzbDroneServiceFactory|Attempting to stop application.
13-9-23 10:35:12.9|Info|OwinHostController|Attempting to stop Nancy host
13-9-23 10:35:13.2|Info|OwinHostController|Host has stopped
13-9-23 10:35:13.2|Info|NzbDroneServiceFactory|Application has finished stop routine.
@millercentral said:
Additional details:
You have the exe in C:\\ProgramData\zbDrone
? Thats the reason, part of the update process removes all files in the NzbDrone folder so there aren’t files left over from previous versions (when we rename files etc), just keeping things clean.
You should uninstall the NzbDrone service, move the application files/folders (leaving the DB files, config.xml, logs, mediaCover and Update Logs) to a new location, something like C:\zbDrone (don’t use C:\Program Files as that will prevent NzbDrone from updating). Then you can re-install the service.
EDIT: If you want the folder to exist in C:\ProgramData\zbDrone for soem particular reason, you could put it inside a subfolder (such as bin) so the settings aren’t deleted, but the settings and app continue to live in the same folder on disk.
I am a world class idiot.
Somehow, when I downloaded v2.0, I didn’t remember where 1.0 was installed, found the data files in ProgramData and assumed it was there (otherwise how would the autoupdate process be able to change the files? I smartly told myself). Stupid, stupid mistake. Feel free to bring back a windows installer any time 
I’m back and running in C:\services
zbdrone with all settings restored. Thanks for your quick (and non-patronizing) help! I really love nzbdrone.
Heh! No problem, glad you got it sorted.