Title says it all, checked on some of my automations and some of them weren’t running, checked on the rules and every single one of my text based rules are gone. I had around a dozen or so. All my UI based rules are still there and functioning fine. The only thing I did was install the ecovac binding yesterday evening and add some items for that. Didn’t touch or even look at any rules.
Has anyone had this happen before?
I haven’t tried rebooting yet to see if that does anything (my reboot rule is gone)and I can easily remake them in the UI, just rather annoying that they disappeared like that..
Are the files still there? OH doesn’t do anything with those files except read them so if they are gone something else happened to cause the files to be removed, corrupted, or otherwise made inaccessible by OH.
If they are there, doublecheck the file permissions.
What language are these rules written in? If they need an add-on (e.g. JS Scripting) is the add-on installed and active?
If the permissions are fine, take a backup and restart OH and see if they come back. You can do an unofficial backup with OH running by just saving a copy of the contents of /etc/openhab and /var/lib/openhab.
I will check that when I get home, having trouble with my vpn so all I can do at the moment is look at the UI. It’s not a huge deal, in fact I’ll probably just redo them in the UI anyway, I prefer that. Just wanted to see if I could figure out what may have happened before I did.
I’ve been using openhab for 5 years I believe, with these particular rules that disappeared and never had this happen before.
If all your rules are in single file and you have made some syntax errors during the last change, then this rules file will be ignored, but you should see a log entry
I haven’t touched any rules for months. They just disappeared/stopped working today. Only thing I did was install and configure the ecovac binding and corresponding items yesterday evening.
I tried looking in the logs, but that was spazzed out and not listing anything at all, so I backed up and rebooted the Pi and everything re appeared! Could installing that Ecovac Binding caused some problem in the background?
Not directly but if this is running on RPi or other SBC off of an SD card and you are not using openHABian with zram enablllllled, our SD card might be worn out. File disappearing and reappearing on a reboot is one of the many subtle symptoms of a worn out SD card.