Since version 405 nzbdrone has not been able to update, I have manually updated to 431 but the problem is still present
LogUpdate :
13-9-5 15:33:09.8|Info|UpdateApp|Updating NzbDrone to version 2.0.0.433
…
13-9-5 15:33:13.3|Fatal|InstallUpdateService|Failed to copy upgrade package to target folder.
System.IO.IOException: The process cannot access the file ‘C:\Apps\zbDrone’ because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
at NzbDrone.Common.DiskProvider.DeleteFolder(String path, Boolean recursive) in m:\buildAgent1_work\bc9a5cca09497250\zbDrone.Common\DiskProvider.cs:line 270
at NzbDrone.Update.UpdateEngine.InstallUpdateService.Start(String installationFolder) in m:\buildAgent1_work\bc9a5cca09497250\zbDrone.Update\UpdateEngine\InstallUpdateService.cs:line 67
The update service is not able to delete the folder because it is being used by another process, is there anything else open in that folder? Even a command prompt being open with the current directory being that folder (or a sub-folder) would block the delete from going though.
The update process shuts down the NzbDrone process that called the update, before it proceeds with the update, so it shouldn’t be NzbDrone itself running (unless there is a partially hung second process).
I’ve used: http://www.emptyloop.com/unlocker/ to find programs that are locking files and folders in the past, just make sure you don’t install the crapware thats bundled with the installer (or use the portable version), other than that, great tool and supports Windows 8.
It was not the firewall, it’s now worst. NZBdrone stop when trying to update, then nzbdrone.update.exe hangs. It says waiting to finish network I/O in task manager and if I try to kill it, it says “access is denied”.
Update log and nzbdrone log do not report anything relevant
nzbdrone.update.exe doesn’t do anything on the network, what user does it say is running nzbdrone.update.exe?
If you don’t want to run it as a service, I’d recommend, stopping the service, uninstalling the service, rebooting and then starting up by running the exe - put it in the startup folder if you want it to boot with windows.
I used to run with the exe in startup folder but since version 405 it has failed to download the update.
User in task manager is the logged in user which is administator.
But I’m fine with running it has a service since I don’t use network share
Hmmm, shortly after that release the we started deleting the folder before the update, which is what I think is causing the issue. I’m going to take a look and see if I can make it more reliable.
Can anyone confirm what the latest version of both the Stable Branch and Develop Branch are i am on the Develop one and my version says NzbDrone Ver. 2.0.0.419
I just want to check as i have recently just install Windows Server 2012 Standard R2 and i want to make sure my windows firewall is not blocking updates i have no issues connecting to the NzbDrone or downloading Eps but just to be sure
@caddish I made a change to the update process which is available in the latest develop build, so as long as you’re on develop it should grab the update.
thanks this made me realise i did not enable myself on the develop branch i was on the stable release I had to do some maintenance to my server the other day and that required me re-installing V2 but i forgot one step which was that