Syslog Errors (100 GB)

The openhab.log.6 entry in one of your previous posts is not a normal file;
it seems to be a character device …; besides that it is not owned by openhab:openhab
Do the repeated occurences of your problem also show that one of the files seem to be a character device ?

What happens when the log tries to roll over, and shuffle existing historic logs down one, I wonder?

I think the problem of missing openhab.log.6 is, that the /var/log is full (because of syslog errors) and then i reboot the system. My guess is, that zram is then not able to write down the changes.

I don’t know.

Hi,

I expirienced the same problem twice. Openhab 3 was running without problems and after system update (Raspberry Pi 4B) I got foold of the same logs. I upgraded java, but I see that people report it is not helping. Have you found out what was causing the problem? How to fix it? At the moment I use only two bindings- modbus and vallox.

No solution

For what it’s worth, I am experiencing the same issue here. I get log entries similar to below

karaf[22367]: Exception in thread "pool-6-thread-52852303"         at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
karaf[22367]:         at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
karaf[22367]:         at java.base/java.lang.Thread.run(Thread.java:829)
karaf[22367]: java.lang.NullPointerException
karaf[22367]:         at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
karaf[22367]:         at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
karaf[22367]:         at java.base/java.lang.Thread.run(Thread.java:829)
karaf[22367]: Exception in thread "pool-6-thread-52852304" java.lang.NullPointerException
karaf[22367]:         at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
karaf[22367]:         at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
karaf[22367]:         at java.base/java.lang.Thread.run(Thread.java:829)
karaf[22367]: Exception in thread "pool-6-thread-52852305" java.lang.NullPointerException
karaf[22367]:         at java.base/java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:214)
karaf[22367]:         at java.base/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
karaf[22367]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
karaf[22367]:         at java.base/java.lang.Thread.run(Thread.java:829)

The logging is very very rapid

This time, further debugging with live java heap dump shows that threads named pool-6-thread-XXX are associated with worked threads of SseResource executor. However, I have withnessed same error with other threads as well so it is just a coincidence, I think.

The error location seems to indicate something wrong with Java VM itself (relevant piece of code in openjdk source code)?

Oddly enough, google search with "LinkedBlockingQueue.java:214" only finds these openhab community posts.

My system specs:

openjdk version "11.0.11" 2021-04-20 LTS
OpenJDK Runtime Environment Zulu11.48+21-CA (build 11.0.11+9-LTS)
OpenJDK Client VM Zulu11.48+21-CA (build 11.0.11+9-LTS, mixed mode)

Raspi 4 running rasbian:

Linux lerbacka-raspi 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l GNU/Linux

I will probably try to update zulu java, and possible try the workaround above Syslog Errors (100 GB) - #15 by Wolfgang1966


UPDATE: Now running Zulu 2021-07-20 java 11

openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment Zulu11.50+19-CA (build 11.0.12+7-LTS)
OpenJDK Client VM Zulu11.50+19-CA (build 11.0.12+7-LTS, mixed mode)

Also cleared the openHAB cache (stop openhab, sudo openhab-cli clean-cache, start openhab).

Will report how this goes. Based on history, problem seems to resurface in ~2 weeks

For those of you that run openHABian, try switching Java to AdoptOpenJDK to see if that makes a difference. It’s a simple menu option. Anyone else can also install it manually, of course.

PS: have you cleaned the cache

1 Like

I got the same issue with Zulu 2021-07-20.

Now trying again with AdoptOpenJDK, clearing the cache first.

Will report how it goes.

It’s been close to 3 weeks running with AdoptOpenJDK. So far it looks to be better than zulu… I used to got the errors discussed above every ~2 weeks. I will keep monitoring and report again

@ssalonen any update? still working without the issue we are having?
Cheers, Thanks Norbert

Unfortunately the installation has suffered (unrelated) power cuts, and therefore the uptime has been at most 2 weeks. I have not seen any negative issues so far.

I will keep running and report here after some weeks.

Everything seems to be stable with AdoptOpenJDK, installation has been up 5 weeks now without any issues.

The fact that there is a menu option for AdoptOpenJDK, does that mean it is recommended to use AdoptOpenJDK?

Of course not. Any option means that you can use it, nothing more.
How do you come to assume anything beyond that ?

That is because

  • a solution approach ist quite often to install AdoptOpenJDK
  • AdoptOpenJDK moved to the Eclipse Foundation and was renamed
  • and

Sure it is an option, and so is Amanda Backup which you recommand in most of the threads related to backup strategies.

As you can see above it was just a question - nothing more

err…no. This thread is the only instance I’m aware of. “Quite often” it isn’t for sure.

Asking because I am really interested in how people think as that can help us make improve openHABian and docs. Glad you asked, most do not.
I am quite often amazed though how descriptions or changes to the software are interpreted by people, like in this case.
Adopt has been an option in several months, totally unchanged by itself. The default is also unchanged ever even (Zulu) so I really did not understand why you or anyone would spot a “recommendation” in the pure fact that this is available as an option.

probably it is just me :slight_smile:

no. just search for AdoptOpenJDK in all subforums (30 hits) and there are few / many (doesn’t matter) suggesting to install AdoptOpenJDK or where the OP had problems with Zulu which were solved by switching to AdoptOpenJDK

30 hits not 30 issues, and even those boil down to a handful or less real issues.
Out of thousands of installations. That ain’t “quite often”.