The current upgrade instructions for Windows users instruct you to delete an assortment of files, then copy over the new version on top of your current installation.
The instructions further state to not overwrite any files as you are only replacing the files and folders you deleted.
"Copy and paste the contents of the zip file over your existing install, when prompted do not overwrite existing files"
What happens after you complete this upgrade is that logging fails to work. You are left with a system that due to changes in the logger no longer provides any logging.
It took me quite a bit of time to look for references to this and then to implement a fix. If you had customized your logger as I had to separate logging into binding specific files you then needed to dig more to find out the new way of adding the logger and the file appender.
Is there a better way that docs can get updated or maybe centralized that once items like this are discovered the amount of search time can be reduced?
I know we are working with bleeding edge stuff sometimes…but it would sure ne great if we could reduce some of the bleeding.
I did and the post was of great value. But I spent a great deal of time looking before I posted. I try and ask for help only after I have exhausted my self support options.
I believe that the latest snapshot has an upgrade.bat script now that should aid in upgrading like this. I know there is a shell script but @Benjy is good at keeping this stuff working for both platforms. In either case the docs need to be updated.
May I please ask for help with a upgrade issue. I’ve had a look around on the community but still stuck.
Spec - Windows 10 Pro and current version of openHAB 3.2.0 Build #2486
What I’ve tried up to now:
Created a temp folder.
Cleared the backup folder
Modified regedit
Please see below error:
######################################################################################################
# Could not backup existing distribution to C:\Users\danie\AppData\Local\Temp\openhab\backup-3.2.0 #
######################################################################################################
PrintAndReturn : Could not find a part of the path 'C:\Users\daniel\AppData\Local\Temp\openhab\backup-3.2.0\userdata\tmp
\mvn\org\openhab\addons\features\karaf\org.openhab.addons.features.karaf.openhab-addons-external\3.2.0-SNAPSHOT\org.ope
nhab.addons.features.karaf.openhab-addons-external-3.2.0-20210909.034330-29-openhabcloud.cfg'.
At C:\Users\daniel\AppData\Local\Temp\openhab\update\runtime\bin\update.ps1:646 char:14
+ ... exit PrintAndReturn "Could not backup existing distribution to ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,PrintAndReturn