OH2 - freezes after some time

hang
freeze
response
Tags: #<Tag:0x00007f6ce8b5ef08> #<Tag:0x00007f6ce8b5edc8> #<Tag:0x00007f6ce8b5ec10>

(Christian Huck) #1

I have a strange Problem with OH2.

When I start it up it works fine. My main usecase is the KNX Plugin.

Then - sometimes after hours, sometimes after days - the logic engine stops working (logics are not fired anymore by KNX events) and the Web GUI is unreachable.

The only solutions is to restart the OH2 service which then takes a very long time or better restart the entire machine.

There are no errors related to this in the logfiles.

I am running OH2 on a KVM (Proxmox) VM. But I think this is not related to the issue.

I know that this is a very generic error. Right now I have no idea what could cause this.


(Markus Gehlhaar) #2

Same here, but just using Homematic and HUE emulation binding on a raspberrz pi 2. OH2 service freezes. No more log entries are generated. This installation worked for years. The only change I did was updating to 2.1. Im totally lost now. Cant find any suspicious in the logs.


(Christian Huck) #3

This still constantly happens and it’s really annoying. Since the whole house is dead when it happens.

Somebody any idea how nail down the root cause of this ?


(Christian Huck) #4

After my first analysis this issue seems to be related with the graph features.
I’ve removed all graphs in my sitemap and now it’s not crashing anymore(knocking on wood).

I am using mysql as a persistence backend on a separate machine.

It sucks to give up graphing just to have the system stable.


(Willem Spoelstra) #5

have had the same problem with openhabian. The freezing started when I added charts to the sitemap for basic UI. Removed the chart, let’s see what it does.


(ridvan) #6

i have similar issues.

zwave freezes after some time, something between 2h-24h

im always on latest snapshots, this issues starts before some weeks >4weeks.

using habpanel ui
jdbc-mariadb + mapdb persistence, i have also some charts in habpanel

i think it has something todo with the persistence engine.
couse it stops also persisting every2min

every2Min : "10 0/2 * * * ?"

(Markus Gehlhaar) #7

I reverted back to an older version and the problem is gone. I’m curious if the problem was fixed with the newest version 2.2


(Christian Huck) #8

Yes - I can confirm it is definitivly related to (MySQL)persistence and graphs.

And - NO - the problem was NOT fixed in Version 2.2 unfortunately.


(Willem Spoelstra) #9

Do you have the error msg form the log?


(Christian Huck) #10

As far as I can see I don’t have any related error message when this happens.
Strange thing is that the system seems to continue running but all logics which need persisted items are f****ed up.

This a really a pitty. I have the feeling I have to leave Openhab2 because of this and go back to Smarthome.py


(Willem Spoelstra) #11

i am using mysql for data logging and charts, the msg i got is gone in the latest snapshot.

openHAB 2.3.0~20180115165618-1 (Build #1186)


(Christian Huck) #12

Today there was another freeze of writing Metrics to MySQL.
I’ve no also switched to the latest snapshot 2.3.0 Build #1188 and pray that it will work now…


(Willem Spoelstra) #13

my system is just getting better fixed the crashing. now jetty is acting up and reconnecting and disconnecting the sitemap every second.

I am gonna reinstall openhab this weekend.


(Christian Huck) #14

I can confirm that with Version 2.3.0 my issues are gone.


(Markus Gehlhaar) #15

I don’t use mysql but rdd4j. I hope the bug is gone for me with 2.3 also.


(Christian Huck) #16

crashed again yesterday. Very dissapointed.


(Markus Gehlhaar) #17

Oh man. I’m on the snapshot 2.3 since yesterday. Was hoping that the problem are gone. Will report back. Has anybody opened a issue already?


(Alex) #18

Hi, I have the same issues with MySQL persistence and openHAB 2.2.0-1 (Release Build).

After some weeks of uninstalling addons, I was finally able to get openhab stable by removing the MySQL persistence (currently I don’t use a persistence).

I didn’t have the issues with an older version of openHAB 2. But here I was running MySQL and openhab on the same raspberry pi.
In my current setup I have different raspberry pi’s for MySQL and openhab , could this be related?


(Willem Spoelstra) #19

Hi, I reinstalled my openhab install and the crashing is gone. The system is stable and running great.

I am running influxdb instead of MySQL. I think the issue was related to the sd-card getting older and slower. I now have a new sd-card. It hasn’t frozen since reinstall.


(Christian Huck) #20

In my case I am running OH2 on a KVM virtual machine and don’t have a sdcard.
The crashes might be related to MySQL persistance storage.