New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OH3.0.0 stable: DSL Rules are removed after reload of other .rules and .items files with same file prefix #2022
Comments
This probably workarounds and issue from openhab/openhab-core#2022
Looks like this issue is related with naming and rules ID's. I have renamed |
I also had some spontaneous drops rules from |
Next day: all DSL rules from
Latest log message related to any of light rules was at 15:11 (now it is 19:40). At 15:25 i have added one new group and moved item there:
Also, reproduced issue on other files set. If i change I will enable debug logging and see. |
Debug log: renamed file Debug log:
Interesting, that log has messages from Rules after update:
But this rules are not more exist (they are not listed by |
Probably fixes issues: - openhab/openhab-core#2022 - openhab/openhab-core#1829
I have renamed my model files to be a bit more unique (like |
Thanks for your efforts. I saw equal issues with disapearing rules. |
If someone would be able to find an easily reproducible case on a clean OH setup, it would be awesome and I'll quickly look into fixing it. Atm, I am not yet really clear on where to look at and what could possibly make the issue appear, so it is a bit hard to look at it. |
Steps to reproduce:
This problem does not happen if you name the rule file "ventana.rules" in step 3. |
I did have a problem with a disappearing rule on OH3.0. I can't say for sure it is the same as described above, so this is just moral support |
@magcode I did your steps, but in step 8 I still see the rule and it does not disappear... I changed the items file 3 times, but still the rule stayed there. |
Which OS are you using, @magcode? You are ok MacOS, @kaikreuzer, correct? |
This OH instance was started in WSL/Ubuntu on Windows. But I got the same issues on my "production" instance on "native" Debian. 2021-01-03_16-36-32.mp4 |
Yes, I am on MacOS, but I doubt that the OS makes any difference. |
Thank you all for the examples - I was able to identify two bugs in the code, which should both be solved by #2077! |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/rules-disappear-when-items-are-reloaded/114984/8 |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-3-notification-rules-scripts/119277/17 |
I have issue similar to #1829 , but with different behavior:
My setup
Problems
name-XXX.rules
, e.g. reloading oflight.rules
file also removes rules from fileslight-astrocolor.rules
andlight-sunrize.rules
heating.items
removes all rules fromheating.rules
.Examples how i can reproduce this:
Just after start, all rules are loaded (56 rules total):
In ~10 seconds 4 rules are removed (52 rules left). Removed:
If i will update removed file "light-astrocolor.rules" with white space change:
Rules return back to list (only from this file - nr 30 and 31):
And, they are functional (reacting on command
openhab:things trigger astro:sun:home:set#event START
) with proper log messages.Here is the interesting part!
Updating of file
light
removeslight-astrocolor
again:Rules from
light-astrocolor
disappears again. Also, they are not reacting on trigger anymore.Please, let me know, if i can help you with some logs or something.
The text was updated successfully, but these errors were encountered: