I did an upgrade last night and I am having problems getting Openhab to work properly. Here is part of the installation messages during openhab setup:
Setting up openhab2 (2.2.0~20170828204708-1) ...
Installing new version of config file /etc/default/openhab2 ...
Installing new version of config file /etc/openhab2/icons/classic/readme.txt ...
Installing new version of config file /var/lib/openhab2/etc/shell.init.script ...
Configuration file '/var/lib/openhab2/etc/org.ops4j.pax.logging.cfg'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** org.ops4j.pax.logging.cfg (Y/I/N/O/D/Z) [default=N] ? n
Configuration file '/var/lib/openhab2/etc/org.eclipse.smarthome.voice.cfg'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
org.eclipse.smarthome.voice.cfg (Y/I/N/O/D/Z) [default=N] ? n
Configuration file '/var/lib/openhab2/etc/jmx.acl.org.apache.karaf.config.cfg'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** jmx.acl.org.apache.karaf.config.cfg (Y/I/N/O/D/Z) [default=N] ? n
Configuration file '/var/lib/openhab2/etc/jmx.acl.org.apache.karaf.bundle.cfg'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** jmx.acl.org.apache.karaf.bundle.cfg (Y/I/N/O/D/Z) [default=N] ? n
Configuration file '/var/lib/openhab2/etc/org.eclipse.smarthome.audio.cfg'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** org.eclipse.smarthome.audio.cfg (Y/I/N/O/D/Z) [default=N] ? n
Setting up openhab2-addons (2.2.0~20170828204708-1) ...
Setting up openhab2-addons-legacy (2.2.0~20170828204708-1) ...
Setting up pi-bluetooth (0.1.3+1) ...
Setting up xarchiver (1:0.5.4-1+deb8u2) ...
Setting up python-gpiozero (1.4.0) ...
Setting up python3-gpiozero (1.4.0) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for initramfs-tools (0.120+deb8u3) ...
When I reboot my raspberry pi OpenHab gets stuck at the Welcome Screen with the wheel spinning saying " Please stand by while UIs are being installed." If I issue the commands:
You likely experience these problems as you did not install the new config files that came with the update. The correct answer would have been YES. By answering NO you kept the old files and I expect that the old files are now inadequate to configure your system correctly.
You can still reverse your choices manually, but you have to go to each of the folders listed above. In them you will find the new files with an extension other than .cfg (I don’t remember exactly but it may be something like .dist; I found it the extension pretty clear to identify when I made a similar mistake).
Just take the new files and copy them over the existing old configuration file by choosing the correct filename and extension (as shown in your log screen). Make sure you make a backup copy if you edited these config files manually so that you can retrieve the info.
Restart openHAB and all should be well again.
I tried your suggestion out but unfortunately it didn’t work. Not sure what to do now. I have an image backup from May 2017 and I don’t think I’ve changed anything that much lately, so maybe I’ll try that option. Thanks for taking the time to try and help me out.
These kar file would have been installed with the openhab2-addons and openhab2-addons-legacy packages you have also installed.
Did you need these packages? You can uninstall these last two packages and try again? You may need to delete the contents of /var/lib/openhab2/cache and /var/lib/openhab2/tmp before restarting openHAB.
That’s no problem, make a backup first, and the following steps should get you closer to where you need to be:
First look in addons.cfg, and make sure the following lines are uncommented (i.e. no ‘#’), there should be an explanation on what the lines do in the file.
remote = true
legacy = true
This will allow you to get the addons remotely when they’re required. Next uninstall the openhab2-addons and openhab2-addons-legacy packages, then restart openhab2 with a fresh cache:
It may take a few minutes to download the packages again, and you may want to look to see if your addons/bindings are still included in your configuration, but otherwise, any better?
I’m in Denver, CO USA. Even rolling back to a prior snapshot (also needs jfrog) doesn’t work. How do you switch to the release version, does that go through a different provider?
Hi all, I need help. I installed the 2.2 version (1098), at the beginning I thought all was ok, but afterwards I realized that zwave did not work properly, so after some attempts I decided to go back to 2.1, but trying to restore the backup when I do the systemctl start in the log I read the following error
2017-11-28 00:12:38.475 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.RuntimeException: Could not resolve mvn:org.eclipse.tycho/org.eclipse.osgi/3.10.101.v20150820-1432
at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
at org.apache.karaf.main.Main.createClassLoader(Main.java:457)
at org.apache.karaf.main.Main.launch(Main.java:254)
at org.apache.karaf.main.Main.main(Main.java:179)
I tried to use the openhabian-config (manual fresh setup) on both the 2.1 and the 2.2 versions, but I have always the same error.
Any help for this situation? (I create a lot of applications and I do not want to loose all my work)
Thanks
Hi NB
I started from scratch installing again the 2.2 version, a lot of work, but I had the backup of the user data, so I could recover all.
Perhaps there are more comfortable solutions, but I had no help by the community so I could not test a more suitable solution.
@bruno Sorry just didnt have the cycles to look at your post until now. Actually looking to understand how I can run Openhab as an HA pair using Docker/VM etc so that I will always have a stable image running.