openHAB 4 migration FAQ

Yes, in openhabian.conf

Update: I havenā€™t seen this issue for some days, but moments ago it reappeared while I was stress testing the Hue binding.

openhab> threads | grep upnp-main-queue
"upnp-main-queue" Id=371383 in RUNNABLE
"pipe-grep upnp-main-queue" Id=374317 in RUNNABLE
openhab> threads 371383
Thread 371383 upnp-main-queue RUNNABLE
Stacktrace:
java.util.concurrent.LinkedTransferQueue.awaitMatch line: 652
java.util.concurrent.LinkedTransferQueue.xfer line: 616
java.util.concurrent.LinkedTransferQueue.poll line: 1294
org.jupnp.QueueingThreadPoolExecutor$1.run line: 194
java.lang.Thread.run line: 833

That line:

So after reading:

Iā€™m now suspecting this is also caused by:

This would mean itā€™s a bug in openjdk 17, not in openHAB, and thereā€™s nothing we can easily do about it.

You gotta be kidding me, now:

top:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
11216 openhab   20   0 1318172 472096   4528 S 256.2  47.4   4740:45 java

top -H -p 11216:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
25409 openhab   20   0 1318172 471856   4528 R  99.7  47.4  93:36.83 upnp-main-queue
30546 openhab   20   0 1318172 471856   4528 R  99.7  47.4  15:19.09 safeCall-queue

Hit by both cases.

3 posts were split to a new topic: JS issues after OH4 upgrade

Dear community members, please respect forum policy / posting rules.
Stay on topic and stay tight. The topic is FAQ here.
For anything not strictly related and of relevance to the FAQ, open your own threads.
Same if you want to discuss any of the FA questions in more detail.
When you do in wide-ranged or overview-like threads like this one, itā€™s quickly becoming an unreadable mess.
Thank you.

How to ask a good question / Help Us Help You - Tutorials & Examples - openHAB Community

1 Like

You might also want to add to the FAQ that old and incompatible OH 3.x .jar/.kar files in the /addons dir (or installed via the Marketplace) should be removed/updated. They can cause a lot of issues as observed in: Endless loop during start of OH4.0.2 service after upgrade from OH4.0.1

1 Like

I wonder if this should be done by the upgrade processes in the various installation methods. They can move them to a different folder perhaps (they should not delete them). And of course they should log out that itā€™s moved them.

Because it causes such a significant problem, and the end user is going to have to do something to manually download and install the newer version anyway, I donā€™t see that much of a down side. Shall I open an issue or is there something obvious here Iā€™m not seeing that makes it a bad idea?

1 Like

Yes I agree that this should be handled better so I welcome the issue. :slight_smile:

1 Like

2 posts were split to a new topic: Upgrade questions