I made this change to org.ops4j.pax.url.mvn.cfg, but I’m still getting errors when attempting to execute rules such as “Heating/Cooling Check”.
2021-12-29 19:43:55.137 [WARN ] [e.automation.internal.RuleEngineImpl] - Fail to execute action: 3
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.eclipse.smarthome.model.script.actions.ScriptExecution cannot be found by com.eclipsesource.jaxrs.publisher_5.3.1.20160228125
...
I looked around in the AddOns section of the Paper UI, but I didn’t see anything with “Script” or “ScriptExecution” in the name.
I also found that my changes are being reverted, exactly as @rucker reported. To attempt to answer this, I installed auditd
but the kernel doesn’t have support for the audit subsystem. My plan to find what was making this change was to do something like this…
sudo auditctl -w /var/lib/openhab2/etc/org.ops4j.pax.url.mvn.cfg -p wa
tail -f /var/log/audit/audit.log
As a workaround, I made that file immutable with filesystem attributes:
sudo chattr +i /var/lib/openhab2/etc/org.ops4j.pax.url.mvn.cfg
It’s not the right solution, but it’s what I know and it’ll keep the settings correct for long enough to do what I need to do.
I tried removing the entire rules engine, thinking that if that were reinstalled, it might pick up the ScriptExecution class as well. The uninstall went fine, but this is where things got ugly. Now I don’t have a rules engine and I can’t get it back. Here’s the output of openhab.log:
2021-12-29 20:52:50.844 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-ruleengine': Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.exec/[2.5.0,2.6)
2021-12-29 20:53:50.490 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-ruleengine': Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.exec/[2.5.0,2.6)
2021-12-29 20:54:50.208 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-ruleengine': Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.exec/[2.5.0,2.6)
2021-12-29 20:55:50.483 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-ruleengine': Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.exec/[2.5.0,2.6)
2021-12-29 20:56:50.097 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-ruleengine': Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.exec/[2.5.0,2.6)
2021-12-29 20:57:50.187 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-ruleengine': Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.exec/[2.5.0,2.6)
2021-12-29 20:58:50.122 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-ruleengine': Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.exec/[2.5.0,2.6)