Update to stable and RC versions failed on windows 10 x64 pro


#1

What is the problem?
Whenever there is a prompt for a newer version to update to.
I click update now and it seems to go through the update but then get a failed at the end.

What did you already try to solve it?
Tried to go through the settings and click force update check etc
but still failed.

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)
Octoprint 1.36
Windows 10 x64 pro

Log
https://pastebin.com/CJszHNpQ


#2

Selfupdating under windows is currently unsupported. Since Windows doesn't allow swapping files that are currently in use (read: octoprint.exe), this is more or less made impossible.


#3

Would it be possible for you implement the update so that when we click "update now"
It kills the octoprint.exe process and then do the update in cmd or via the batch file?

Is there a way for me to get the latest RC version e.g. from maintenance channel
by doing it via command prompt (when octoprint.exe is not running) and using the python commands?
If so, can you tell me what command I can type to get the latest RC version?

So if I notice an update is available, I shutdown octoprint and do the update via CMD using python command.
If it is possible to do the update this way,
can you please update the documentation for octoprint installation under windows, using this method,
so others can also do this if they want the latest update..


#4

I updated the guide to include this information.


#5

Thanks.

Updated to RC version following the new instructions.