OH 5.0.1 problem (Win11) :-(

Platform: Windows 11 Pro

OH version: 5.0.1 (from 5.0.0)

I found some free time to upgrade from version 5.0.0 to 5.0.1, but quickly reverted to the previous version…

I’m doing what I usually do - backup.bat of the previous version, unzip to the directory newpackage of OH, transfer the backup.zip to ‘backups’ directory and run restore.bat, then start the service.

startLevel: 70 is still at 70%, and the logs show a lot of:

07.10.2025 18:52	 [WARN ]	 [nce.extensions.PersistenceExtensions] - 	There is no queryable persistence service registered with the id 'rrd4j'
07.10.2025 18:52	 [WARN ]	 [nce.extensions.PersistenceExtensions] - 	There is no queryable persistence service registered with the id 'rrd4j'
07.10.2025 18:52	 [WARN ]	 [nce.extensions.PersistenceExtensions] - 	There is no queryable persistence service registered with the id 'rrd4j'
07.10.2025 18:52	 [WARN ]	 [nce.extensions.PersistenceExtensions] - 	There is no queryable persistence service registered with the id 'rrd4j'
07.10.2025 18:52	 [WARN ]	 [nce.extensions.PersistenceExtensions] - 	There is no queryable persistence service registered with the id 'rrd4j'

This version under Win11 is unusable :frowning:

Help…

70% means you have one or more bundle that didn’t get installed and/or you have one or more Things that never went online.

The error posted indicates that the rrd4j add-on hasn’t installed.

The first step is to:

  1. let OH sit for a bit after the first start after clearing the cache, I wait until all the Things show as ONLINE or in some sort of error state
  2. restart OH and monitor for errors; any errors seen on the first start are likely caused by the add-ons not being there yet.

Every time you update the cache gets cleared. That means all the add-ons need to be reinstalled to match the new version and that takes some time. But OH’s start process does not wait for all the add-ons to complete before continuing starting up so if the add-ons don’t get installed fast enough errors can occur.

There are lots of things that can impact the amount of time it takes.

If you see errors installing the add-ons, clearing the cache might be needed. But follow the two steps outlined above.

Note, none of this is related to running on Windows 11. It’s true for all OH installations.

2nd approach - 100% start level achieved.

OH restarted.

Now I see many erros in the logs as following.

eg 1 (javascipt):

07.10.2025 20:10	 [ERROR]	 [ipt.internal.ScriptEngineManagerImpl] - 	ScriptEngine for language 'application/javascript' could not be found for identifier: c759c3b3-1d57-45d2-9a4b-9b35e2ac98f5
07.10.2025 20:10	 [ERROR]	 [ipt.internal.ScriptEngineManagerImpl] - 	ScriptEngine for language 'application/javascript' could not be found for identifier: 051ba191-00fd-4dc9-858d-6c41a59e75ed

eg 2 (HomeAssistantPythonBridge):

07.10.2025 20:11	 [ERROR]	 [t.internal.HomeAssistantPythonBridge] - 	bundle org.openhab.binding.mqtt.homeassistant:5.0.1 (316)[org.openhab.binding.mqtt.homeassistant.internal.HomeAssistantPythonBridge(465)] : Error during instantiation of the implementation object

eg 3 (MqttThingHandlerFactory):

07.10.2025 20:11	 [ERROR]	 [ric.internal.MqttThingHandlerFactory] - 	bundle org.openhab.binding.mqtt.homeassistant:5.0.1 (316)[org.openhab.binding.mqtt.homeassistant.generic.internal.MqttThingHandlerFactory(464)] : Error during instantiation of the implementation object: Unable to get service for reference $004

eg 4(HomeAssistantPythonBridge):

07.10.2025 20:11	 [ERROR]	 [t.internal.HomeAssistantPythonBridge] - 	bundle org.openhab.binding.mqtt.homeassistant:5.0.1 (316)[org.openhab.binding.mqtt.homeassistant.internal.HomeAssistantPythonBridge(465)] : Error during instantiation of the implementation object

I’m a little scared because these errors never occurred in 5.0.0 or previous versions before :frowning:

The next one error reported in block script:

07.10.2025 20:42	 [ERROR]	 [.handler.AbstractScriptModuleHandler] - 	Script execution of rule with UID 'ElectricityMeter-OverloadPowerConsumption' failed: TypeError: null has no such function "replaceAll" in <eval> at line number 43 at column number 15

there is the code (in generated code):

vtTimeStamp = vtTimeStamp.replaceAll('T',', godz:');

The first error is because the JS Scripting add-on isn’t installed yet.

Errors 2-4 are all related to MQTT Home Assistant sub-binding.

Both of these require GraalVM. So I would guess that the GraalVM bundle didn’t get installed, was not installed properly, or is otherwise having some sort of problem.

If you are not seeing OH attempting to install add-ons when starting up any more, you may need to clear the cache so that OH can try installing them again.

As I said above though, after clearing the cache wait a bit for things to settle and then restart OH. Only then pay attention to the errors.

Hello,

./userdata/cache - cleared

./userdata/temp - cleared

efect the same - long time of start first time, after second restart errors like above:

 [ERROR]	 [ipt.internal.ScriptEngineManagerImpl] - 	ScriptEngine for language 'application/javascript' could not be found for identifier: 5393d810-ba10-4bf4-8e13-6493b63fe692
...
 [ERROR]	 [t.internal.HomeAssistantPythonBridge] - 	bundle org.openhab.binding.mqtt.homeassistant:5.0.1 (316)[org.openhab.binding.mqtt.homeassistant.internal.HomeAssistantPythonBridge(465)] : Error during instantiation of the implementation object
...
 [ERROR]	 [ric.internal.MqttThingHandlerFactory] - 	bundle org.openhab.binding.mqtt.homeassistant:5.0.1 (316)[org.openhab.binding.mqtt.homeassistant.generic.internal.MqttThingHandlerFactory(464)] : Error during instantiation of the implementation object: Unable to get service for reference $004
...
 [ERROR]	 [t.internal.HomeAssistantPythonBridge] - 	bundle org.openhab.binding.mqtt.homeassistant:5.0.1 (316)[org.openhab.binding.mqtt.homeassistant.internal.HomeAssistantPythonBridge(465)] : Error during instantiation of the implementation object
...

etc…..

Double check that you have the JS Scripting add-on installed and you do not have anything in the addons folder.

double checked:

JS - installed, but nothing in addons folder….

OK, next step is to see if it’s activated.

Log into the karaf console and run bundle:list | grep -i JavaScript. You should see something like:

openhab> bundle:list | grep -i JavaScript
316 │ Active │  80 │ 5.1.0.M1              │ openHAB Add-ons :: Bundles :: Automation :: JavaScript Scripting

The key thing is to check that the second column saus “Active” and the fourth column matches the version of OH you are running.

Next run bundle:list | grep -i graal. The results should look something like this:

openhab> bundle:list | grep -i graal
295 │ Active │  78 │ 24.2.1                │ GraalVM :: JS :: Language
296 │ Active │  80 │ 24.2.1                │ GraalVM :: JS :: Script Engine
297 │ Active │  80 │ 24.2.1                │ GraalVM :: LLVM :: API
298 │ Active │  80 │ 24.2.1                │ GraalVM :: Polyglot :: Polyglot
299 │ Active │  80 │ 24.2.1                │ GraalVM :: Python :: Embedding
300 │ Active │  78 │ 24.2.1                │ GraalVM :: Python :: Language
301 │ Active │  78 │ 24.2.1                │ GraalVM :: Python :: Resources
302 │ Active │  78 │ 24.2.1                │ GraalVM :: Regex :: TRegex
303 │ Active │  80 │ 24.2.1                │ GraalVM :: SDK :: Collections
304 │ Active │  80 │ 24.2.1                │ GraalVM :: SDK :: Native Image
305 │ Active │  80 │ 24.2.1                │ GraalVM :: SDK :: Word
306 │ Active │  80 │ 24.2.1                │ GraalVM :: Truffle :: ICU4J
307 │ Active │  80 │ 24.2.1                │ GraalVM :: Truffle :: JSON
308 │ Active │  80 │ 24.2.1                │ GraalVM :: Truffle :: XZ
309 │ Active │  80 │ 24.2.1                │ GraalVM :: Tools :: Profiler
310 │ Active │  79 │ 24.2.1                │ GraalVM :: Truffle :: API
311 │ Active │  80 │ 24.2.1                │ GraalVM :: Truffle :: Compiler
312 │ Active │  80 │ 24.2.1                │ GraalVM :: Truffle :: NFI
313 │ Active │  80 │ 24.2.1                │ GraalVM :: Truffle :: Runtime

The second column should all read “Active”.

Finally, bundle:list | grep -i mqtt which should look something like:

openhab> bundle:list | grep -i mqtt
252 │ Active │  80 │ 1.3.9                 │ hivemq-mqtt-client
326 │ Active │  80 │ 5.1.0.M1              │ openHAB Add-ons :: Bundles :: MQTT Broker Binding
327 │ Active │  81 │ 5.1.0.M1              │ openHAB Add-ons :: Bundles :: MQTT Awtrix 3
328 │ Active │  81 │ 5.1.0.M1              │ openHAB Add-ons :: Bundles :: MQTT EspMilightHub
329 │ Active │  81 │ 5.1.0.M1              │ openHAB Add-ons :: Bundles :: MQTT FPP
330 │ Active │  81 │ 5.1.0.M1              │ openHAB Add-ons :: Bundles :: MQTT Things and Channels
331 │ Active │  82 │ 5.1.0.M1              │ openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
332 │ Active │  82 │ 5.1.0.M1              │ openHAB Add-ons :: Bundles :: MQTT Homie Convention
333 │ Active │  82 │ 5.1.0.M1              │ openHAB Add-ons :: Bundles :: MQTT Ruuvi Gateway
363 │ Active │  80 │ 5.1.0.M1              │ openHAB Core :: Bundles :: MQTT Transport

Again, the second column should all read “Active” and the fourth column for all by the hive-mqt-client should match the version of OH you are running.

here you are:

And the rest?

sorry missed by me, it’s here:

I need the graal one too

sorry, to fast…

OK, this all confirms that the relevant add-ons are installed and at least they are active.

Open one or more of the rules that is generating the error, click on the code tab and paste the full rule code here. Please use code fences.

```
code goes here
```

wait, wait,…I tried to find a script with identifier which report a error….and the developer side bar is not available(!) but only in FireFox…Oh my God, what’s going on here?

but developer side baqr I see in the Edge…

Jesus Christ! This is not a browser problem but problem with the size of any browser window(!)

When the window of browser is smaller then Developer Side Bar is hidden(!)

smaller window of FireFox:

and a little bit bigger window(!)

grrrrrrr

how to find the rule that is genereting the error if error in log is like this:

[ERROR]	 [ipt.internal.ScriptEngineManagerImpl] - 	ScriptEngine for language 'application/javascript' could not be found for identifier: 5393d810-ba10-4bf4-8e13-6493b63fe692
...

but through the developer bar search window is nothing to find when I put the identifier eg. this:

5393d810-ba10-4bf4-8e13-6493b63fe692

but something interesting I see when I tried to open some rule - “openHAB

Your Blockly script was created with a previous version of openHAB. Please save your script.”

maybe shoud I re-open and re-save all rules?

I guess that’s not the end of the problems…

I opened the script that shows this notification (I clicked OK), I clicked “Save” and… for 5 minutes now I’ve been seeing “INITIALIZING.”

I had to exit the script without saving… and the script is still “hanging” as “INITIALIZING.”

I don’t know what’s going on here, whether it’s due to some bugs in version 5.0.1 or some other reason.