OpenHAB 4.1.0 does not start after upgrade from 4.0.4

  • Platform information:
    • Hardware: Terramaster f2-221 NAS
    • OS: Linux 6.1.0-0.deb11.13-amd64
    • openHAB version: Docker image openhab/openhab:4.1.0-debian

After upgrading my docker image from openhab/openhab:4.0.4-debian to openhab/openhab:4.1.0-debian my OpenHAB installation hangs during startup.

I did see the upgrade information in the docker logs, though I have not saved it. There were no errors.

openhab.log on level debug gives only the following lines:

2023-12-23 00:39:54.299 [INFO ] [port.EventAdminConfigurationNotifier] - Sending Event Admin notification (configuration successful) to org/ops4j/pax/logging/Configuration
2023-12-23 00:39:54.318 [DEBUG] [org.apache.felix.configadmin        ] - Running task ManagedServiceFactory Update: factoryPid=[org.apache.felix.fileinstall]
2023-12-23 00:39:54.319 [DEBUG] [org.apache.felix.configadmin        ] - Found cached configuration org.apache.felix.fileinstall.be33a403-f797-4af6-93bd-abe31e42d1c5 bound to ?
2023-12-23 00:39:54.323 [DEBUG] [org.apache.felix.configadmin        ] - Updating service org.apache.felix.fileinstall with configuration org.apache.felix.fileinstall/org.apache.felix.fileinstall.be33a403-f797-4af6-93bd-abe31e42d1c5@3
2023-12-23 00:39:54.324 [DEBUG] [org.apache.felix.configadmin        ] - canReceive=true; bundle=mvn:org.apache.felix/org.apache.felix.fileinstall/3.7.4; configuration=? (no SecurityManager)
2023-12-23 00:39:54.326 [DEBUG] [org.apache.felix.configadmin        ] - [, id=48, bundle=18/mvn:org.apache.felix/org.apache.felix.fileinstall/3.7.4]: Updating configuration pid=org.apache.felix.fileinstall.be33a403-f797-4af6-93bd-abe31e42d1c5
2023-12-23 00:39:54.337 [DEBUG] [org.apache.felix.configadmin        ] - Running task ManagedService Update: pid=[org.apache.karaf.features.repos]
2023-12-23 00:39:54.337 [DEBUG] [org.apache.felix.configadmin        ] - Found cached configuration org.apache.karaf.features.repos bound to ?
2023-12-23 00:39:54.338 [DEBUG] [org.apache.felix.configadmin        ] - canReceive=true; bundle=mvn:org.apache.karaf.features/org.apache.karaf.features.core/4.4.4; configuration=? (no SecurityManager)
2023-12-23 00:39:54.339 [DEBUG] [org.apache.felix.configadmin        ] - Updating service org.apache.karaf.features.repos with configuration org.apache.karaf.features.repos@7

Then nothing happens anymore. docker ps still shows the running container.

Does anyone have an idea what happens here or how I could retrieve further information?

Thank you,

Have you tried restarting the container and cleaning cache?

1 Like

Thank you for your help, after clearing tmp and cache OpenHAB started again.

Then I have got the “ScriptEngine for language ‘application/javascript’ not found” error after clearing tmp and cache, though the JavaScript Scripting add-on was installed. Removing and installing it new helped. Looks a bit like something in tmp or cache was essential for JavaScript Scripting add-on to work.


1 Like

I’ve also experienced such problems after openHAB upgrades, restarting openHAB and cleaning cache always helped. Sometimes openHAB just requires some time to get addons working again.

I use openhabian and no Docker etc, but cleaning cache and tmp files helped me too. :+1:
sudo rm -rf /var/lib/openhab/cache/*
sudo rm -rf /var/lib/openhab/tmp/*