So the title says everything.
As soon as I remove or install a binding OH4 stops responding, webservices go offline and endless logs get printed
“sudo service openhab stop” also does not work, I need to restart the whole PC and after a restart the bindings shows as installed or removed as indented.
I would start to make sure that these lines do not occur first:
Transformation service JS for pattern switch2Zigbee2mqtt.js not found!
2023-07-30 23:22:41.852 [WARN ] [core.karaf.internal.FeatureInstaller] - The binding add-on 'tcp1' does not exist - ignoring it.
2023-07-30 23:22:41.853 [WARN ] [core.karaf.internal.FeatureInstaller] - The binding add-on 'plex1' does not exist - ignoring it.
2023-07-30 23:22:41.856 [WARN ] [core.karaf.internal.FeatureInstaller] - The binding add-on 'wol1' does not exist - ignoring it.
2023-07-30 23:22:41.858 [WARN ] [core.karaf.internal.FeatureInstaller] - The misc add-on 'ruleengine' does not exist - ignoring it.
2023-07-30 23:22:41.859 [WARN ] [core.karaf.internal.FeatureInstaller] - The persistence add-on 'mysql' does not exist - ignoring it.
2023-07-30 23:22:41.860 [WARN ] [core.karaf.internal.FeatureInstaller] - The ui add-on 'dashboard' does not exist - ignoring it.
2023-07-30 23:22:41.860 [WARN ] [core.karaf.internal.FeatureInstaller] - The ui add-on 'restdocs' does not exist - ignoring it.
2023-07-30 23:22:41.861 [WARN ] [core.karaf.internal.FeatureInstaller] - The ui add-on 'classic' does not exist - ignoring it.
2023-07-30 23:22:41.861 [WARN ] [core.karaf.internal.FeatureInstaller] - The ui add-on 'habmin' does not exist - ignoring it.
2023-07-30 23:22:41.861 [WARN ] [core.karaf.internal.FeatureInstaller] - The ui add-on 'paper' does not exist - ignoring it.
The second block mainly is caused by outdated version one bindinds.
Java 17 is installed and the current version ?
How does the log file look after a restart ?
The log messages mention some rule files I use: “periodic_averages_POWER2.rules”, “periodic_averages_TEMP2.rules” and “periodic_HEATING.rules”.
Those rule files usually work perfectly, no issues. Only when installing/removing a binding it seems everything gets a mess.
I noticed that those rule files in the logs have one thing in common, they all access items in a dynamic way with ScriptServiceUtil.getItemRegistry.getItem(), e.g.: