Raspberry Pi 3 / B Rev 1.2 Update from 2.0 to 2.1.0-1 go wrong / no WEB Interface / no logs


(Markus Lehmann) #1

Today i do the Update from 2.0 to 2.1 with the openhabian-config tool on my Raspberry Pi 3.
The Update process was successfully terminated. After reboot i got this informations

[19:18:41] root@smarthome:/var/log/openhab2# uname -a
Linux smarthome 4.9.28-v7+ #998 SMP Mon May 15 16:55:39 BST 2017 armv7l GNU/Linux
[19:19:47] root@smarthome:/var/log/openhab2#

[19:17:52] root@smarthome:/etc/init.d# ./openhab2 status
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
   Active: active (running) since Sat 2017-07-01 17:13:59 CEST; 2h 3min ago
     Docs: http://docs.openhab.org
           https://community.openhab.org
 Main PID: 710 (karaf)
   CGroup: /system.slice/openhab2.service
           ├─ 710 /bin/bash /usr/share/openhab2/runtime/bin/karaf server
           └─1345 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtime -Dopenhab.userdata=/var/lib/openhab2 -Dopenhab.logdir=/var/log/openhab2 -Dfelix.cm.dir=/var...

Jul 01 17:13:59 smarthome systemd[1]: Started openHAB 2 - empowering the smart home.
Jul 01 17:13:59 smarthome start.sh[710]: Launching the openHAB runtime...
[19:17:57] root@smarthome:/etc/init.d#

But there are “no Webinterface on port 8080” and no entries in the files knx.log, events.log, openhab.log

What goes wrong ?

Thanks for help
Markus


Integrate Siemens Logo (plclogo) in OpenHAB 2
( ) #2

There are no known issues.

Please check your java version

java -version

Also restart openHAB once:

sudo systemctl restart openhab2.service

On a side note, /etc/init.d# ./openhab2 status is not a good style and might restrict you at some point. You’ll have less issues with a command as the above.


(Christoph Wempe) #3

In my case, I had to delete the content of /var/lib/openhab2/cache and tmp to get openhab running again.


(Markus Lehmann) #4

Always an error, but an Error Message in the log

Now i have delete the Content of /var/lib/openhab2/Cache and /var/lib/openhab2/tmp

Java Version

[09:04:10] root@smarthome:/etc/openhab2/services# java -version
java version "1.8.0_131"
Java™ SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot™ Client VM (build 25.131-b11, mixed mode)
[09:04:14] root@smarthome:/etc/openhab2/services#

Restart Service

[09:05:15] openhabian@smarthome:~$ sudo systemctl restart openhab2.service
[09:06:45] openhabian@smarthome:~$ sudo systemctl status openhab2.service
● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
Active: active (running) since Sun 2017-07-02 09:06:45 CEST; 7s ago
Docs: http://docs.openhab.org
https://community.openhab.org
Process: 18944 ExecStop=/usr/share/openhab2/runtime/bin/stop (code=exited, status=0/SUCCESS)
Main PID: 19117 (karaf)
CGroup: /system.slice/openhab2.service
├─19117 /bin/bash /usr/share/openhab2/runtime/bin/karaf server
└─19272 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtime -Dopenhab.userdata=/var/lib/openhab2 -Dopenhab.logd…

Jul 02 09:06:45 smarthome systemd[1]: Started openHAB 2 - empowering the smart home.
Jul 02 09:06:45 smarthome start.sh[19117]: Launching the openHAB runtime…
[09:06:52] openhabian@smarthome:~$

and i got an error

[09:07:39] root@smarthome:/var/log/openhab2# ls -al
total 20
drwxrwxr-x+ 2 openhab openhabian 4096 Jul 1 16:58 .
drwxr-xr-x 13 root root 4096 Jul 2 06:25 …
-rw-rw-r-- 1 openhab openhabian 0 Jul 1 16:58 events.log
-rw-rw-r-- 1 openhab openhabian 0 Jul 1 16:58 knx.log
-rw-rw-r-- 1 openhab openhabian 11861 Jul 2 09:06 openhab.log
[09:07:41] root@smarthome:/var/log/openhab2#

2017-07-02 08:49:03.200 [WARN ] [raf.features.internal.osgi.Activator] - Error starting activator
java.io.IOException: Unexpected end of input at 1:1
at org.apache.karaf.features.internal.util.JsonReader.error(JsonReader.java:337)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.util.JsonReader.expected(JsonReader.java:331)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.util.JsonReader.readValue(JsonReader.java:93)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.util.JsonReader.parse(JsonReader.java:58)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.util.JsonReader.read(JsonReader.java:52)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.region.DigraphHelper.readDigraph(DigraphHelper.java:112)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.region.DigraphHelper.loadDigraph(DigraphHelper.java:70)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:130)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:246)[8:org.apache.karaf.features.core:4.0.8]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_131]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_131]


(Angelos) #5

did you remove all the content from these 2 folders (files and subdirs)? (don’t delete the tmp folder)
it’s better to stop OH2, then clear out the folder contents and then start
if you try to clear them with OH2 running, you may get new stuff in there when you try to restart.

sudo su
systemctl stop openhab2
rm -ri /var/lib/openhab2/tmp/*
rm -ri /var/lib/openhab2/cache/*
systemctl start openhab2

(Markus Lehmann) #6

Thanks to Dim Angelos -

-> it’s better to stop OH2 do the trick

Now the WEB Interface is online

Now i check the knx bindings an persistenten Data


(Markus Lehmann) #7

I have to reinstall all Bindings, Persistence and Transformations objects, no Config-Data lost,

Webinterface are now up and running,
knx is ok,
exec Interface is ok,
mysql persisnent connection also ok

but no Charts in the web Interface


(Angelos) #8

what do you mean by “objects”? (the addons in PaperUI?)
why should you re-install them?

BasicUI?
Try to double check the syntax of your *.sitemap file


(Markus Lehmann) #9

yes the addons in PaperUi,

After delete the cache and temp directory and reboot this this addons had the Status “INSTALL”


(Angelos) #10

That’s unusual… cache and temp dirs should have no effect on the install status of the addons
this is controlled by /etc/openhab2/services/addons.cfg
If you define them there, they will be kept and installed
Defining them is optional of course.


( ) #11

Even this is not needed and we shouldn’t recommended it anymore. Configuration via this file easily done wrong.

If you clear out cache and tmp your addons are newly installed. That’s why they might appear not installed right after start. You just need to wait a few minutes and all previously installed addons are installed anew. Check the openhab.log.