Strange error after updating: TinyIoCResolutionException

After NzbDrone updated itself it seems to have gone wrong somewhere.
I’m not monitoring NzbDrone 24/7 so I don’t know after which version the troubles began, but I guess its Ver. 2.0.0.419.

1 - I noticed I couldn’t reach the webif anymore. Went to the system by Remote Desktop. Service not started. Restarting it gave the following error: The NzbDrone-service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other service or programs

2 - Started NzbDrone.Console.exe - this one keeps running (NzbDrone.Console.exe*32 stays in taskmanager), but spits out the following error during startup: netsh.exe: Url reservation add failed, Error: 183 Cannot create a file when that file already exists. Result: Webif doesn’t work.

3 - Started NzbDrone.exe. Result:

4 - Grrr.

5 - Unpacked NzbDrone.develop.2.0.0.501.zip to desktop. Ran NzbDrone.exe - worked flawless. Must be a problem with 419… wait till new master version

6 - Noticed a new master version (516), extracted it in 419 folder (overwrite, and also as fresh new folder): Result: Same as point 2 and 3 … Huh?

7 - Ran v501 again (still extracted in a folder on the desktop) no problem … hmmmm

8 - Ran update on v501 (through webif: System -> Check for update) … webif didn’t react anymore, killed nzbdrone… started it again: Error 2 and 3!!

9 - Unpacked NzbDrone.develop.2.0.0.529.zip, ran NzbDrone.exe - works flawless! Update didn’t have any effect, since there is no new version at the moment of writing.

Questions:
What do the errors mean?
It seems to be related to update problems, correct?

  1. happens when another copy of NzbDrone is running or something is using port 8989 (or whatever port you have configured drone to run under).

There should be more details in the log files - which would help figure out what caused it, looking at the code quickly, I suspect it was an issue accessing the database.

Also be careful switching back to master, there are breaking database changes that aren’t available in master right now and there is no guarantee that the next master release will contain them, especially if we need to fix a bug in master before the changes in develop are ready.

Thanks markus101.
It probably was a corrupt SQLite database, at least there was something about it in the logs.

I deleted all and everything related to NzbDrone. Extracted the latest master and now it runs again.
I had to manually add all series again (only 16, so it wasn’t much of problem).

I know that normally the ProgramData folder contains all the info, but if the contents of that folder are deleted it’s back to manually adding everything. Maybe its an idea to have an export/import option in NzbDrone. Just with the series and their corresponding path - saves work :slight_smile:

I get this regularly…well this is the third time anyway. I’d really like an export/import data option as well.

Please provide a complete log that includes this error message so we can investigate.

Import/Export settings is already on Trello.