…\runtime\bin\update : The term ‘…\runtime\bin\update’ is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
If I change the directory to C:\ProgramData\OpenHAB2\runtime\bin
and run the bat file like this
it seam to run but does nothing. No error no nothing.
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
message. Do you want to run C:\ProgramData\OpenHAB2\runtime\bin\update.ps1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is “D”): R
So I do something wrong or miss something and does not see it. Can anybody see my blind spot?
Thank you for help.
What folder is your openHAB installed in? I see you trying to run from c:\ProgramData\OpenHAB2?
Is that where you installed to? I am no longer on OH2.
But as I recall:
Make a backup of your openHAB installation folder.
Run PowerShell as an administrator and change to your openHAB root directory (e.g. cd C:\openHAB)
Run the update command:
Update-openHAB -OHVersion <Version Required>
Thanks, getting closer
It runs now, I see the header of the Update and some lines with directories, but after seconds it seem to fail, I see two red lines and powershell closes. All to fast to read or copy
Yes, JAVA_HOME is set correctly for V2, the version that runs (it would not run, if it was set wrongly).
I wait for Bruce_Osborne to confirm, that I can copy conf and userdata V2 to a V3 installation from scratch. At the moment my guess is, that I will not be able to run update, if he’s right that update fails because the bintray vor V2 is gone.
There are differences between OH 2 and OH 3 that will cause some things to break in your config. But I think those things wouldn’t be handled during an upgrade anyway such as the removal of Joda DateTime from rules and such.
I upgraded by setting up a new OH and gradually recreating my config on the OH 3 instance so I don’t know how well it will work if you just copy your 2.5 configs over to a 3.0 instance. Rules will likely break but that’s true of an upgrade as well. Things might break too for some bindings. But everything else should be fine.