Other minor thing: I can find such log entries in my file events.log while I would expect them more in openhab.log. Is it expected ?
2017-01-17 19:33:22.018 [ExtensionEvent ] - Extension 'binding-hue' has been installed.
2017-01-17 19:33:22.081 [ExtensionEvent ] - Extension 'voice-voicerss' has been installed.
2017-01-17 19:33:22.092 [ExtensionEvent ] - Extension 'binding-weather1' has been installed.
2017-01-17 19:33:22.111 [ExtensionEvent ] - Extension 'transformation-regex' has been installed.
I just install OH2RC1 on Windows and I don’t get this log subdirectory… just the normal logs one.
From what I see, these are ExtensionEvent type, so it seems normal to appear in the event.log
Anyway, I think (imho) that we should use/open new threads for issues and put in the title the version that we are running (e.g. OH2RC1). This thread is for the major announcement of OH2RC1, so I propose to keep it clean
Hi All
I try to install openhab2 RC1 via apt on RP2 but when I run systemctl start openhab2 i get only
root@raspberrypi:/opt# systemctl status openhab2
● openhab2.service - LSB: openHAB2 server
Loaded: loaded (/etc/init.d/openhab2)
Active: active (exited) since Wed 2017-01-18 16:54:12 UTC; 1min 4s ago
Process: 2435 ExecStart=/etc/init.d/openhab2 start (code=exited, status=0/SUCCESS)
Jan 18 16:54:12 raspberrypi openhab2[2435]: Starting openHAB2 server: openhab2.
Jan 18 16:54:12 raspberrypi systemd[1]: Started LSB: openHAB2 server.
Jan 18 16:55:00 raspberrypi systemd[1]: Started LSB: openHAB2 server.
and I can’t connect to server on port 8080
when I manually run start.sh from /usr/share/openhab2 i get error
Error occurred shutting down framework: java.io.FileNotFoundException: /var/lib/openhab2/etc/custom.properties (No such file or directory)
java.io.FileNotFoundException: /var/lib/openhab2/etc/custom.properties (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at org.apache.karaf.util.config.PropertiesLoader.loadPropertiesFile(PropertiesLoader.java:150)
at org.apache.karaf.util.config.PropertiesLoader.loadIncludes(PropertiesLoader.java:190)
at org.apache.karaf.util.config.PropertiesLoader.loadPropertiesFile(PropertiesLoader.java:173)
at org.apache.karaf.util.config.PropertiesLoader.loadConfigProperties(PropertiesLoader.java:71)
at org.apache.karaf.main.ConfigProperties.(ConfigProperties.java:205)
at org.apache.karaf.main.Main.updateInstancePidAfterShutdown(Main.java:226)
at org.apache.karaf.main.Main.main(Main.java:191)
I think I just installed it from the previous beta5 version but I am not quite sure it worked because after installing (all scripts looked ok) when I type the following command:
ssh openhab@localhost -p 8101
with password habopen
I get the following:
__ _____ ____
____ ____ ___ ____ / / / / | / __ )
/ __ / __ / _ / __ / // / /| | / __ |
/ // / // / __/ / / / __ / ___ |/ // /
_/ ./_// /// /// |/_____/
/_/ 2.0.0.b5
Release Build
It is normal? it there another way to check the version that is installed?
No. You are currently on the Snapshot (#693) version
To switch from Snapshot versions to the testing versions (Beta, Release Candidate) you need to use another apt package repository.
Follow these instructions to go from Snapshot to RC1 (they also apply to your case):
(before, you need to switch repositories by modifying /etc/apt/sources.list.d/openhab2.list and using the testing repo):
you could stay on the snapshot apt repository and perform an upgrade to get the latest snapshot
Make sure that you have switched to the new bintray snapshot repo (don’t use the older snapshot apt repository at cloudbees)
I am also stuck on b5 somehow. My /etc/apt/sources.list.d/openhab2.list contains the right path but during the apt-get update it seems to be ignored and does not show the full path with */openhab/apt-repo2:
Make sure that your /etc/apt/sources.list.d/openhab2.list file contains only 1 line: deb http://dl.bintray.com/openhab/apt-repo2 testing main
Make sure that you have added the openHAB 2 Bintray repository key: wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -
apt-get clean, then apt-get update and then apt-get upgrade
.b5 will have online and offline variants, but these have been since merged into one for RC1 and up and no new version of offline/online exists.
To upgrade, you should only need apt-get install openhab2 which will remove the old version automatically. From then on, upgrade will work as you intend.
Thank you, I mistakenly copied the unstable repo. But now openhab won’t start anymore. It doesn’t even get to the point of creating logs, so I’m not sure where to start troubleshooting.