openhab-core
openhab-core copied to clipboard
Rule engine not yet started
After upgrading to OH 4.3.2 rules are not working at all
Expected Behavior
Rules are working
Current Behavior
Rules are loaded to the OH, I can see them in the UI, but no rules working. In the openhab.log, you can see this:
` 2025-01-25 11:33:01.541 [DEBUG] [e.automation.internal.RuleEngineImpl] - The trigger '0' of rule 'test-1' is triggered. 2025-01-25 11:33:01.541 [DEBUG] [e.automation.internal.RuleEngineImpl] - Rule engine not yet started - not executing rule 'test-1', 2025-01-25 11:33:01.548 [TRACE] [dule.handler.ItemStateTriggerHandler] - Received Event: Source: null Topic: openhab/items/Switch45/statechanged Type: ItemStateChangedEvent Payload: {"type":"OnOff","value":"OFF","oldType":"UnDef","oldValue":"NULL"}
` as a workaround I am starting rule engine by this console command:
bundle:restart org.openhab.core.automation
What next I found out, that all persistence data are gone after "systemctl restart openhab" and "restart org.openhab.core.automation".
Possible Reason
Dependency not satisfied
2025-01-25 11:32:26.672 [DEBUG] [e.automation.internal.RuleEngineImpl] - bundle org.openhab.core.automation:4.3.2 (163)[org.openhab.core.automation.internal.RuleEngineImpl(70)] : Dependency not satisfied: $000 2025-01-25 11:32:26.672 [DEBUG] [e.automation.internal.RuleEngineImpl] - bundle org.openhab.core.automation:4.3.2 (163)[org.openhab.core.automation.internal.RuleEngineImpl(70)] : Dependency not satisfied: $001 2025-01-25 11:32:26.672 [DEBUG] [e.automation.internal.RuleEngineImpl] - bundle org.openhab.core.automation:4.3.2 (163)[org.openhab.core.automation.internal.RuleEngineImpl(70)] : Dependency not satisfied: $002 2025-01-25 11:32:26.673 [DEBUG] [e.automation.internal.RuleEngineImpl] - bundle org.openhab.core.automation:4.3.2 (163)[org.openhab.core.automation.internal.RuleEngineImpl(70)] : Not all dependencies satisfied, cannot activate
Your Environment
OpenHAB 4.3.2 OS: Linux openhab 6.8.0-51-generic #52~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Dec 9 15:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
This issue has been mentioned on openHAB Community. There might be relevant details there:
https://community.openhab.org/t/rule-engine-not-running-although-bundle-active/161517/39