HABApp 25

I have another instance of HABApp stops triggering with OpenHab 5.1. There is a more closely correlated error message with WebSocket.

Here’s the HABApps logs; note the entries at 6:37.

[2026-01-05 04:57:51,537] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 04:57:51,789] [     HABApp.openhab.items]     INFO | Updated 363 Items
[2026-01-05 04:57:51,900] [     HABApp.openhab.items]     INFO | Updated 63 Things
[2026-01-05 04:57:52,335] [ HABApp.openhab.transform]     INFO | Transformations:
[2026-01-05 04:57:52,335] [ HABApp.openhab.transform]     INFO |   Map: de.map, en.map, scalar-15618683d7d2.map
[2026-01-05 05:37:54,391] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 05:37:54,665] [     HABApp.openhab.items]     INFO | Updated 363 Items
[2026-01-05 05:37:54,741] [     HABApp.openhab.items]     INFO | Updated 63 Things
[2026-01-05 05:37:55,213] [ HABApp.openhab.transform]     INFO | Transformations:
[2026-01-05 05:37:55,213] [ HABApp.openhab.transform]     INFO |   Map: de.map, en.map, scalar-15618683d7d2.map
[2026-01-05 06:00:57,967] [                 ZoneApis]     INFO | SetTimeOfDay: Set day period to MORNING
[2026-01-05 06:07:56,460] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 06:07:56,718] [     HABApp.openhab.items]     INFO | Updated 363 Items
[2026-01-05 06:07:56,819] [     HABApp.openhab.items]     INFO | Updated 63 Things
[2026-01-05 06:07:57,290] [ HABApp.openhab.transform]     INFO | Transformations:
[2026-01-05 06:07:57,290] [ HABApp.openhab.transform]     INFO |   Map: de.map, en.map, scalar-15618683d7d2.map
[2026-01-05 06:37:58,601] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 06:37:58,853] [     HABApp.openhab.items]     INFO | Updated 363 Items
[2026-01-05 06:37:58,919] [     HABApp.openhab.items]     INFO | Updated 63 Things
[2026-01-05 06:37:59,380] [ HABApp.openhab.transform]     INFO | Transformations:
[2026-01-05 06:37:59,381] [ HABApp.openhab.transform]     INFO |   Map: de.map, en.map, scalar-15618683d7d2.map

I was doing development work yesterday, so HABApps was restarted around 9:30 PM. Notice how many times it reconnects to OpenHab. I didn’t notice this behavior with the previous version of OpenHab.

[2026-01-04 21:42:16,707] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-04 22:17:23,929] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-04 22:32:24,929] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-04 22:47:25,881] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-04 23:27:28,514] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-04 23:42:29,481] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 01:22:35,893] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 01:42:37,097] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 02:07:39,374] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 02:12:39,719] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 02:17:40,089] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 02:32:41,174] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 03:12:44,029] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 03:57:47,246] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 04:40:24,812] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 04:47:50,771] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 04:57:51,537] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 05:37:54,391] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 06:07:56,460] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)
[2026-01-05 06:37:58,601] [HABApp.connection.openhab]     INFO | Connected to OpenHAB version 5.1.0 (Release Build)

Below is the WebSocket errors on the OpenHab side. Notice the strong correlation between the timestamp there and the Connected to OpenHab messages on the HABApp side.

2026-01-04 21:39:15.337 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-04 21:40:39.824 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-04 22:17:22.817 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-04 22:32:23.848 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-04 22:47:24.797 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-04 23:27:27.417 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-04 23:42:28.397 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 01:22:34.793 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 01:42:36.013 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 02:07:38.288 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 02:12:38.641 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 02:17:39.014 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 02:32:40.094 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 03:12:42.929 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 03:57:46.146 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 04:40:23.704 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 04:47:49.690 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 04:57:50.452 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 05:37:53.294 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 06:07:55.376 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 06:37:57.530 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: Blocking message pending 10000 for BLOCKING
2026-01-05 07:49:37.761 [INFO ] [re.io.websocket.event.EventWebSocket] - WebSocket error: java.util.concurrent.TimeoutException: Idle timeout expired: 10001/10000 ms

HABApp stops updating the beacon at 6:37 AM. The WebSocket error stops around an hour later.

The gist is that OpenHab 5.1 seems to make HABApp less stable in certain circumstances (I haven’t nailed it down yet). But logs on both side indicate a strong correlation in WebSocket behavior changes. The only way to fix it is to re-start both components.

Are you sure that you’re still using my modified bundle when you get these results? I’m not sure if the bundle survives an OH restart, or if the standard bundle will be reinstalled then. I know that bundles can “revert” to the standard version even without a restart, if you do other changes to the system, like installing an add-on for example.

The logs shown above absolutely looks to be related to the same problem, which is why it’s essential to know that you’re using the “fixed” bundle.

I think you’re right. I was using bundle:update before and of course restarted OH multiple times since. I just did a bundle:list | grep Web and it was showing 5.1.0, which is incorrect. I just put it in again. This is a bit painful to remember to do this every time I restart OpenHab, but it will have to do till we get an updated 5.1. I will let you know if the issue happens again. Thanks again.

1 Like

There are other ways, I’m just not an expert on Karaf, so I’m a bit unsure. I think that it will actually work “automatically” if you place the custom bundle in the addons folder, but you would have to verify that it actually does what it should. If that works like I think, you won’t have to do anything from the Karaf console.

Yes, this time I placed it in the addon folder and did the bundle stop/start. Let’s see if this lasts over restart. I am short on time now so I can’t try yet.

1 Like

openHAB 5.1.1 was just release which should work out of the box

4 Likes