Closed Davidoff77test closed 3 years ago
Hi @Davidoff77test. Since I am running this binding on my openhabian for months without restart, this is not straight to reproduce. What about other system components? Is there anything else in the logs? Do other bindings function? What is the status of the free memory?
Hi, every other binding runs ok, but the loxone stops. Ram is ok, there is more than 2GB ram free. There is also no logs from loxone binding since the time at log I send until I restart service. I don't know if helps to change log from debug to trace, but there isn't every error which is strange.
Hello hello, same issue here and sorry @ppieczul ppieczul for emailing you this morning didn't know this tracker. Have Openbian 1.6 (openHAB 2.5.9-1), Loxone server 1st gen 11.1.9.14 version. Communication is only one way, from miniserver to OH, but not updating items. In other way, nothing works, only after reboot (stopping and starting binding only has no effect) - or when procced a thing deletion and adding new miniserver.
What is crazy, that debug log show nothing. Maybe I missed something and will look deeper to logs, but so not have anything more right now as Davidoff has.
Ha, found more than one interesting things, look at the top of the banner. Unable to parase IP. Wifi is off, running dhcp config, IP in OH settings is set:
############################################################################### ############### openHABianDevice ############################################ ###############################################################################
###############################################################################
And as I can see, Systeminfo binding is not working. So I presume, Loxone binding is ok and there is major mistake in OH release.
There is everything right on my Openhabian
############################################################################### ############### openhab ##################################################### ###############################################################################
###############################################################################
As I rember I found some unstability of Lox binding and new openhabian version about one month ago, can't remeber what I exactly did, but sometimes it was not working properly. Maybe there is some dependency on all installed bindings and current OH version. But I'm not prorammer or debugger, only wintel scripting guy :)
So I will do update/upgrade within hour to latest version, then will try to "downgrade", for example to OpenHabian 1.5.
I updated to the latest version of OH 2 weeks ago and my loxone->OH connection has just dropped. It was running on the previous version with no problems for about 1 year. I can't see anything obvious in the logs.
Restarting my openhab device seems to reconnect
Hi, loxone binding still freezing. Last after a day. Othes addon works correctly. Just restart openhab helps, but it isn't solution because I control for example heating in bathroom via loxone bathrooom temperature.
Hello, I did almost a month ago a clean instalation from OpenHabian 1.5 and then update instead of 1.6 clean instalation where Loxone binding was dropping connection. Now it seems that everything is ok and there is scheduled restart every morning 3AM as a maintenance.
It is still freezing for me too. I've created a cronjob to restart openhabian every monday, hopefully that will fix it.
Same for me. But cronjob? It's not acceptable workaround.
When the communication freezes, what is the status of Loxone thing in paper UI and over CLI?
As I remember it's simply offline. Debug log don't show anything extra so there is unfortunately nothing to debug. Is there any limitation for binding such a number of items or something like that? I had them plenty, now I'm trying to simplify some stuff to move all possible rules to Loxone only and it seems that with cron restart every morning it's stable (the offline happened only one time). Pawel - is there something what could help you more? Some log / settings / versions of Loxone stuff and more? Thank you.
There is nothing specific to the binding, but maybe we are hitting some corner case in the framework. Next to offline status there should be some text reason explaining why it went offline, if it was initiated by the binding. Also any normal termination of the binding or it going offline has some accompanying logs. If the logs just stop, it looks like maybe something happened to the binding thread. Here is what you can do: log into openhab console (default password is habopen): openhab-cli console run command: threads --list >list.txt run command: threads --monitors --locks -e >threads.txt exit console, cd /var/lib/openhab2 and send me the two created files there: list.txt, threads.txt Maybe they will tell something about the condition of the threads. Thanks Pawel
Good morning, just sent a files. Maybe I missed something when reading the logs after lox binding stopped working in past. But firstly please have a look into the files I sent, maybe you will see something on the first sight, who knows.
Unfortunately I do not have the logs right now where lox bindig stopped working, they are overwrited already. If there will be a demand I can do following: 1, stop maintenance cronjob for restart 2, set lox biding log level to debug 3, wait ... 4, share the logs 5, wait for miracle
Anyway thanks in advance !
Are those logs that you sent with the failure or without?
Without.
Great. So now please get the same when it fails. Hopefully it will tell us something what is happening. Thanks a lot
Hi, ppieczul, I just sent these two files (threads.txt, list.txt) on your mail. These files was copied in freeze state. Thx in advance
I see where the problem is, it is a deadlock between processing incoming binary message and sending keep alive message. I will work on a fix during the weekend. Thanks for the data!
It's just crashed again for me and I've got the log files you asked for. I sent them to your email.
That's excelent what's happened here. Luckily I'm stable all the time. Thanks all for participating on this issue.
Yes, deadlock is a programmer nightmare :)
Can you please test this version: https://www.dropbox.com/s/w4zxn25ogzyatbz/org.openhab.binding.loxone-2.5.12-SNAPSHOT.jar?dl=0 You need to remove the standard binding (uninstall) from the paper UI, no need to remove thing before. Then go to openhab CLI and check that there are really no bindings:
bundle:list | grep Loxone
If there are then remove them manually
bundle:uninstall <ID>
Install manually UPNP dependency:
feature:install openhab-transport-upnp
Then copy the Loxone binding JAR to
/usr/share/openhab2/addons
Then check that OH picked this up again by listing bundle. Proper version should show this:
<ID> │ Active │ 80 │ 2.5.12.202012181428 │ openHAB Add-ons :: Bundles :: Loxone Binding
Let it run and see if it is any better.
Done. We will see. Thank you
What do you see with the fix?
W dniu pt., 18.12.2020 o 15:58 Davidoff77test notifications@github.com napisał(a):
Done. We will see. Thank you
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/openhab/openhab-addons/issues/8693#issuecomment-748129457, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOHS7R5JMLO3POVXT2BSNDSVNU2JANCNFSM4SIIJGXQ .
Fix still looks stable. But it's just 4 days. Wait week at least.
Hi, it's stable for 14days. Good job.
Testing right now and it seems that everything is all right. Thank you very much!
What is the recommended way to install this update? Wait for it to be merged into an openhab release? Or follow the instructions in https://github.com/openhab/openhab-addons/issues/8693#issuecomment-748123780
@ollietb if you install jar you will have the fix now. It is merged into main, but not 2.5 yet.
Just for info. There is fix in version 3.0.0?
I just updated my openhab from 2.5 to 3.0.1 using the openhab config tool and the loxone connection still goes down after a few days until I login and reboot the device.
Please post logs, thanks. The fix should be in version 3.0.1.
Correction: fix is NOT in 3.0.1, it is earliest in 3.1.0.M1.
czw., 4 mar 2021 o 17:51 Ollie Harridge notifications@github.com napisał(a):
I just updated my openhab from 2.5 to 3.0.1 using the openhab config tool and the loxone connection still goes down after a few days until I login and reboot the device.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openhab/openhab-addons/issues/8693#issuecomment-790761898, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOHS7SUI4RIJHXSZOAMIG3TB63AZANCNFSM4SIIJGXQ .
OK thanks I've emailed you the logs
To all that need that fix - it is NOT included in 3.0.1. The earliest version containing this fix is 3.1.0.M1.
Expected Behavior
Communication continue and loxone binding keeps read/write value from/to loxone
Current Behavior
After a few days loxone binding stops communication. In log you can see this: _2020-10-08 02:32:40.434 [DEBUG] [ding.loxone.internal.LxServerHandler] - [1] Sleeping for 32 seconds. 2020-10-08 02:33:12.373 [DEBUG] [.binding.loxone.internal.LxWebSocket] - [1] Sending unencrypted string: keepalive 2020-10-08 02:33:12.376 [DEBUG] [inding.loxone.internal.types.LxState] - State set (152A405E-022C-6A42-FFFFBB45C369C8A5,value) control (152A405E-022C-6A42-FFFFBB45C369C8A5,Aktuální příkon sítě) value=309.0 2020-10-08 02:33:12.422 [DEBUG] [ding.loxone.internal.LxServerHandler] - [1] Sleeping for 120 seconds. 2020-10-08 02:33:40.411 [DEBUG] [inding.loxone.internal.types.LxState] - State set (152A405E-022C-6A3C-FFFFBB45C369C8A5,value) control (152A405E-022C-6A3C-FFFFBB45C369C8A5,Aktuální příkon domu) value=329.0 2020-10-08 02:33:40.414 [DEBUG] [ding.loxone.internal.LxServerHandler] - [1] Sleeping for 92 seconds. 2020-10-08 02:33:42.396 [DEBUG] [inding.loxone.internal.types.LxState] - State set (152A405E-022C-6A42-FFFFBB45C369C8A5,value) control (152A405E-022C-6A42-FFFFBB45C369C8A5,Aktuální příkon sítě) value=329.0 2020-10-08 02:33:42.397 [DEBUG] [ding.loxone.internal.LxServerHandler] - [1] Sleeping for 90 seconds. 2020-10-08 02:33:43.615 [DEBUG] [inding.loxone.internal.types.LxState] - State set (151DD295-005A-712A-FFFF8A4870419E06,value) control (151DD295-005A-712A-FFFF8A4870419E06,Venkovní teplota) value=11.100000000000001 2020-10-08 02:33:43.616 [DEBUG] [ding.loxone.internal.LxServerHandler] - [1] Sleeping for 89 seconds. 2020-10-08 02:33:43.806 [DEBUG] [inding.loxone.internal.types.LxState] - State set (151DD295-005A-712E-FFFF8A4870419E06,value) control (151DD295-005A-712E-FFFF8A4870419E06,Teplota v 13 nádrže) value=43.1 2020-10-08 02:33:43.808 [DEBUG] [ding.loxone.internal.LxServerHandler] - [1] Sleeping for 89 seconds. 2020-10-08 02:34:12.464 [DEBUG] [inding.loxone.internal.types.LxState] - State set (152A405E-022C-6A42-FFFFBB45C369C8A5,value) control (152A405E-022C-6A42-FFFFBB45C369C8A5,Aktuální příkon sítě) value=299.0 2020-10-08 02:34:12.466 [DEBUG] [ding.loxone.internal.LxServerHandler] - [1] Sleeping for 60 seconds. 2020-10-08 02:34:40.500 [DEBUG] [inding.loxone.internal.types.LxState] - State set (152A405E-022C-6A3C-FFFFBB45C369C8A5,value) control (152A405E-022C-6A3C-FFFFBB45C369C8A5,Aktuální příkon domu) value=299.0 2020-10-08 02:34:40.502 [DEBUG] [ding.loxone.internal.LxServerHandler] - [1] Sleeping for 32 seconds.
But after this log there is no log from loxone binding (even there is no other keepalive command)
Steps to Reproduce (for Bugs)
Your Environment
Openhab 2.5.9 - stable running as openhabian on rPi4 4GB RAM