[SOLVED] 4.3.6 -> 5.0.0: [ERROR] [core.karaf.internal.FeatureInstaller]

Hi,

I tried to upgrade my docker installation from 4.3.6 to 5.0.0.

After upgrading the container openhab is starting and I get these errors in openhab.log.

Also all items in the WebUI are NULL. After downgrading back to 4.3.6 everything is working again.

2025-08-01 16:14:40.659 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.

2025-08-01 16:14:42.632 [INFO ] [al.handler.OMaticMachineThingHandler] - [] Initializing, setting status ONLINE

2025-08-01 16:14:42.635 [INFO ] [al.handler.OMaticMachineThingHandler] - [dishwasher] Updating maxPower: 2359.5

2025-08-01 16:14:43.924 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-exec, openhab-misc-openhabcloud, openhab-binding-network, openhab-automation-jsscripting, openhab-binding-enigma2, openhab-binding-mqtt, openhab-transformation-map, openhab-binding-kodi, openhab-binding-homematic, openhab-core-config-discovery-addon-usb, openhab-binding-systeminfo, openhab-core-config-discovery-addon-ip, openhab-core-config-discovery-addon-mdns, openhab-core-config-discovery-addon-upnp, openhab-persistence-jdbc-mariadb, openhab-core-config-discovery-addon-sddp, openhab-binding-wled, openhab-binding-spotify, openhab-transformation-regex, openhab-transformation-jsonpath, openhab-binding-tankerkoenig, openhab-persistence-rrd4j, openhab-ui-basic, openhab-binding-openweathermap, openhab-binding-http, openhab-binding-astro, openhab-binding-unifi, openhab-binding-squeezebox, openhab-binding-dbquery': Error:

	Error downloading mvn:org.openhab.osgiify/org.graalvm.python.python-resources/24.2.1

2025-08-01 16:15:00.290 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 61477ca5-a574-4082-9708-0360ba10fa4c

2025-08-01 16:15:00.322 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 82839556-1f6a-4bd0-b4b7-cf6ff95e0f21

2025-08-01 16:15:00.335 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 6aa0e4e5-1056-4267-99e7-3c826543e021

2025-08-01 16:15:00.382 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: ad54cf6c-0189-4a77-9c4f-536443342e69

2025-08-01 16:15:00.394 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 2ace4242-557a-4b3f-a287-90248befe99f

2025-08-01 16:15:30.321 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 82839556-1f6a-4bd0-b4b7-cf6ff95e0f21

2025-08-01 16:15:30.334 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 6aa0e4e5-1056-4267-99e7-3c826543e021

2025-08-01 16:15:36.914 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-exec, openhab-misc-openhabcloud, openhab-binding-network, openhab-automation-jsscripting, openhab-binding-enigma2, openhab-binding-mqtt, openhab-transformation-map, openhab-binding-kodi, openhab-binding-homematic, openhab-core-config-discovery-addon-usb, openhab-binding-systeminfo, openhab-core-config-discovery-addon-ip, openhab-core-config-discovery-addon-mdns, openhab-core-config-discovery-addon-upnp, openhab-persistence-jdbc-mariadb, openhab-core-config-discovery-addon-sddp, openhab-binding-wled, openhab-binding-spotify, openhab-transformation-regex, openhab-transformation-jsonpath, openhab-binding-tankerkoenig, openhab-persistence-rrd4j, openhab-ui-basic, openhab-binding-openweathermap, openhab-binding-http, openhab-binding-astro, openhab-binding-unifi, openhab-binding-squeezebox, openhab-binding-dbquery': Error:

	Error downloading mvn:org.openhab.osgiify/org.graalvm.python.python-resources/24.2.1

Thanks for your help.

Did it have enough time? And after another restart? It is know that the first start can be problematic.

What hardware are you at?

Hi,

my machine is an Intel N100 with TrueNAS Scale as operating system.

In the log from the docker container I found something interesting

[main] INFO org.openhab.core.tools.UpgradeTool - Executing itemCopyUnitToMetadata: Copy item unit from state description to metadata

[main] INFO org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - Copying item unit from state description to metadata in database '/openhab/userdata/jsondb/org.openhab.core.items.Item.json'

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OpenWeatherMap_ForecastHours05_Precipprobability: Could not determine if channel 'openweathermap:onecall:47260e5b03:local:forecastHours05#precip-probability' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OpenWeatherMap_ForecastDay3_Maxtemperature: Could not determine if channel 'openweathermap:onecall:47260e5b03:local:forecastDay3#max-temperature' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OpenWeatherMap_ForecastHours03_Precipprobability: Could not determine if channel 'openweathermap:onecall:47260e5b03:local:forecastHours03#precip-probability' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - Verbrauch_Server_Gesamt_Input: Could not determine if channel 'mqtt:topic:3098a16f8a:17d7acdede:Energy_Total' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OpenWeatherMap_ForecastDay5_Maxtemperature: Could not determine if channel 'openweathermap:onecall:47260e5b03:local:forecastDay5#max-temperature' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OpenWeatherMap_ForecastHours01_Precipprobability: Could not determine if channel 'openweathermap:onecall:47260e5b03:local:forecastHours01#precip-probability' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - Verbrauch_Kuehlschrank_Gesamt_Input: Could not determine if channel 'mqtt:topic:3098a16f8a:188843fdd7:Energy_Total' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OG_Kueche_Steckdose_Kuehlschrank_Energie: Could not determine if channel 'mqtt:topic:3098a16f8a:188843fdd7:Energy_Total' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OpenWeatherMap_ForecastTomorrow_Maxtemperature: Could not determine if channel 'openweathermap:onecall:47260e5b03:local:forecastTomorrow#max-temperature' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OG_Wohnzimmer_Schreibtisch_Leistung: Could not determine if channel 'mqtt:topic:3098a16f8a:4a4a759b77:Power' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OpenWeatherMap_ForecastToday_Mintemperature: Could not determine if channel 'openweathermap:onecall:47260e5b03:local:forecastToday#min-temperature' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - OpenWeatherMap_ForecastDay5_Mintemperature: Could not determine if channel 'openweathermap:onecall:47260e5b03:local:forecastDay5#min-temperature' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - Verbrauch_Verstaerker_Gesamt_Input: Could not determine if channel 'mqtt:topic:3098a16f8a:7e755e2867:Energy' sets a state description. Check if you need to set unit metadata.

[main] WARN org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader - Verbrauch_Schreibtisch_Gesamt_Input: Could not determine if channel 'mqtt:topic:3098a16f8a:4a4a759b77:Energy_Total' sets a state description. Check if you need to set unit metadata.

Exception in thread "main" java.lang.NoClassDefFoundError: tech/units/indriya/AbstractSystemOfUnits

	at java.base/java.lang.ClassLoader.defineClass1(Native Method)

	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)

	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)

	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)

	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)

	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)

	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)

	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)

	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)

	at java.base/java.lang.ClassLoader.defineClass1(Native Method)

	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)

	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)

	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)

	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)

	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)

	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)

	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)

	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)

	at org.openhab.core.types.util.UnitUtils.<clinit>(UnitUtils.java:63)

	at org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader.lambda$0(ItemUnitToMetadataUpgrader.java:161)

	at java.base/java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4709)

	at org.openhab.core.tools.internal.ItemUnitToMetadataUpgrader.execute(ItemUnitToMetadataUpgrader.java:104)

	at org.openhab.core.tools.UpgradeTool.lambda$2(UpgradeTool.java:134)

	at java.base/java.lang.Iterable.forEach(Iterable.java:75)

	at org.openhab.core.tools.UpgradeTool.main(UpgradeTool.java:122)

Caused by: java.lang.ClassNotFoundException: tech.units.indriya.AbstractSystemOfUnits

	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)

	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)

	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)

... 25 more

Update tool failed, please check the openHAB website (www.openhab.org) for manual update instructions.

+ IFS='

	'

++ find /usr/lib/jvm -mindepth 1 -maxdepth 1 -type d

+ export JAVA_HOME=/usr/lib/jvm/java-21-openjdk

+ JAVA_HOME=/usr/lib/jvm/java-21-openjdk

+ '[' limited = unlimited ']'

+ capsh --print

+ grep -E Current:.+,cap_net_admin,cap_net_raw,.+

+ rm -f '/var/lock/LCK..*'

+ rm -f /openhab/userdata/tmp/instances/instance.properties

+ NEW_USER_ID=9001

Starting with openhab user id: 9001 and group id: 9001

+ NEW_GROUP_ID=9001

+ echo 'Starting with openhab user id: 9001 and group id: 9001'

+ id -u openhab

+ initialize_volume /openhab/conf /openhab/dist/conf

+ volume=/openhab/conf

+ source=/openhab/dist/conf
....

the messages from my last post repeating every ~30s. I waited ~10min and nothing changes.

This means that either you have the new Python add-on or the MQTT add-on which now depends on this bundle.

For some reason, Karaf is having trouble download this specific bundle and unfortunately when it runs into trouble with one bindle OH tends to bail and not install any add-ons until it tries again and succeeds without a failure.

This is almost caused by circumstances outside your control (e.g. the bundle wasn’t uploaded, temporary network outage to where the files are hosted, etc.).

The JS errors can be ignored for now. They just mean that OH hasn’t installed the JS bundle add-on, which we already know. Every time a rule triggers you’ll get that error. You can temporarily stop those errors by disabling your rules until installation of the add-ons succeed.

This looks like it might be the known bug in upgradeTool. You can ignore that for now. It’s not related to the add-on installation. If you never created custom symantic tags in a yaml file I think you can even ignore it forever as not relevant. A fix will be back ported though so that should be fixed on 5.0.1.

Try a restart of OH. I don’t think a clearing of the cache will be useful here but it won’t hurt. If the “Error downloading” error persists, you can temporarily work around it by downloading the add-ons kar file from OH’s downloads page and placing that in the addons folder you have mounted to the docker container. OH will install the add-ons and bundles from there instead of trying to download them on demand. Just remember to replace or remove that kar file before your next upgrade.

Hi,

I restarted the docker container several times but no changes.

I download now the add-ons and put it in the add-on folder. Openhab 5.0.0 is now running. :grinning_face:

Thanks for your help.

1 Like