My syslog (and deamon.log) is full (many, many GB of Data) with the following example:
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-615" java.lang.NullPointerException
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-616" #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.lang.Thread.run(Thread.java:834)
Feb 11 11:22:48 openHAB karaf[555]: java.lang.NullPointerException
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-617" #011at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.lang.Thread.run(Thread.java:834)
Feb 11 11:22:48 openHAB karaf[555]: java.lang.NullPointerException
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.lang.Thread.run(Thread.java:834)
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-618" java.lang.NullPointerException
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.lang.Thread.run(Thread.java:834)
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-619" java.lang.NullPointerException
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.lang.Thread.run(Thread.java:834)
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-620" java.lang.NullPointerException
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-621" #011at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-622" #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.lang.Thread.run(Thread.java:834)
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-626" java.lang.NullPointerException
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.lang.Thread.run(Thread.java:834)
Feb 11 11:22:48 openHAB karaf[555]: java.lang.NullPointerException
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.lang.Thread.run(Thread.java:834)
Feb 11 11:22:48 openHAB karaf[555]: Exception in thread "OH-eventexecutor-625" Exception in thread "OH-eventexecutor-624" Exception in thread "OH-eventexecutor-623" java.lang.NullPointerException
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 11 11:22:48 openHAB karaf[555]: #011at java.base/java.lang.Thread.run(Thread.java:834)
When I restart openHAB is OK, But after some hours it begins again.
And when this error is written in the syslog I’m not able to send commands over basicUI (and other UIs).
In the event.log and openhab.log I see nothing related to this problem.
How can I find the source of this error? I have no glue what it is.
Your description is too vague thus barely understandable. Noone wants to help if first thing he has to do is to ask all the details from you, you have to give them upfront.
Do you run openHABian ? If no, how did you install your box ?
How do you start OH ? When did the problem start first ? What did you try so far ?
It’s errors in syslog so it is not an openhab problem itself.
Java is crashing which is always a user’s own problem when he installed it himself.
First I’m no expert, but find clues in the (somewhat obscure) error messages. It appears to me the thread OH-eventexecutor is trying to process a “null” value. Also looking at my system the OH-eventexecutor starts at 1, so it appears whatever is happening is in a loop. I’d check your rules and any other program (or binding) you wrote or run that processes OH events. Also there is a command in the console Shell:threads --list that might help.
I start it with the system start: sudo systemctl enable openhab.service
When did the problem start first?
I’m not sure. My guess its with update to 3.0.1 from 3.0.0. But I’m not sure.
What did you try so far?
Check openhab and event log, but nothing is in there. I removed not used binding, Habbot and Voice.
I also try to find out what is happens when it starts (compare timestamp on syslog wit openhab and event log). And I compare that also with my rules, but find no related event.
It’s errors in syslog so it is not an openhab problem itself.
Java is crashing which is always a user’s own problem when he installed it himself.
Thanks for this hint. I update Zulu java to the latest version and maybe its with that OK. Until now it is OK, but sometimes openHAB runs some days until it happens.
Also there is a command in the console Shell:threads --list that might help
Thanks for this hint. I will check this when it happens again.
You are possibly suffering from a lack of properly adapting java and OS parameters to OH which is right what openHABian will do for you.
Another major advantage of openHABian is that it provides a well-defined starting point.
In a nutshell, noone knows what you have installed on or done to your box so noone knows where to start debugging so noone or only very few are willing to do this for you.
It is a 1:1 thing and the next individual installation will be different with a different set of problems so there’s little point in spending efforts on this.
Your best choice is to move over.
To reiterate my statement above, why don’t you switch to openHABian ? It takes care of all these issues. Sure it’s no guarantee there’s no bugs but for sure it’s way more intelligent and less of a hassle to everybody to maintain a single setup rather than to debug everybody’s own specific setup.
The error in the log mainly looks to me as if influxdb is not running at that moment or using a different port than 8086:
...
Caused by: java.net.ConnectException: Failed to connect to /127.0.0.1:8086
...
Caused by: java.net.ConnectException: Connection refused (Connection refused)
...
I don’t think this is related to the syslog errors problem.
At least it looks like it doesn’t happen that often when using plain openjdk instead of Zulu Java, so it might be related to some strange behaviour of the JRE itself. openHAB 3 runs for one week now for me without showing the problem again.