Rule machine losing pieces of rules

Do we have a common denominator on what data keeps disapearing from the ‘headless’ rules or is totally random? Maybe we can trace back to a specific capability. This would give them a clue where to look. I can see @slagle so request for help as it might seem that they need to look for a needle in the haystack.

1 Like

Mine have varied.
I’ve lost triggers, conditions, and actions.

For triggers, I’ve lost power meter and motion.
For conditions I’ve lost switches being on.
For actions, I’ve lost switches and dimmable lights.

Every single one of my triggers and conditional triggers lost the triggers. I had one lose the trigger and the second. I had a rule lose conditions and rule. Ask of them had to be deleted and rebuilt.

It is not focused on any one thing, as far as I can tell. Look, they know the database is corrupted, they just evidently don’t want to talk about it. Application state is just part of what is held in the database. Some people have their defined custom commands vanish. Where are those held? In the application state. Some people have parts of their rules vanish. Same question and answer. There is no cause from the perspective of the app. Rule Machine has a larger application state than most apps (gee, wonder why that is), so it’s more vulnerable than a small app, like say Smart Lighting.

2 Likes

I only have a couple Rule Machine rules; I’ve been trying to restrict myself to Smart Lighting in case I ever take the plunge and migrate to the Hub V2 I have lying around; since the only benefit I’ll get is lower latency and some local resiliency…

But meanwhile, I have a simple Rule to turn on 2 light switches at Sunset (both Z-Wave). Both switches work find when triggered manually via mobile App or Minimote or Echo. Both switches got turned on fine until a few days ago. But now… the Schedule-Trigger fires; but no Command is going to the light; Notification is written to the log with the evt.name as null.

Well… there’s enough moving parts here that it’s worth me rebuilding this rule and even adding some extra events and debugging statements to my copy of RM. Since I’ve been rather lucky with essentially zero ghost events and the only missing events due to the old Scheduler, this would be a case that would shake my confidence if it recurs without an explanation.


###BTW:
A few SmartTiles users have reported symptoms of lost State over the past few weeks. Not very many, but not everyone is inclined to report (we have a lot of users). The main symptom is a loss of functionality of the access_token that it verifies; regenerating the token (i.e., updating State with a fresh value) always fixes the problem. So… one more SmartApp that is experiencing this, but not reproducible on demand.

1 Like

Yea, turns out half my current rules are headless I guess, they show actions but no trigger or conditions.
Some still have enough settings in the ide to rebuild, most don’t. Some inputs are cleared, some not, some state exists, some don’t.

Apps don’t do this to themselves, and I don’t care what kind of code you write, you cannot programaticly clear a preference input, that should be enough info right there if any of you still think this problem is in Bruce’s code. It ain’t, pure and simple, you also can’t delete a state variable, you can only set it to null, but you can’t delete it, so there you go.
The fact that rules and rule machine have lost preferences and state in rules that I haven’t messed with in months says it all.

The freaking wheels have fallen off man…

4 Likes

I don’t think anybody believes that this is an app issue, I sure hope not, but was hoping that we may be able to give them some clues, so they can isolate the database problem. Unfortunately, it doesn’t sound like we can…

They know what they did. They just don’t want to talk about how they f’d up the database 19 days ago.

That’s why they kept blowing smoke about adding more database capacity and what not. That wasn’t the problem; they broke it. How else can you explain database data going bye-bye all by itself?

Can someone provide a definition of headless and how to identify?

I have a different parent child app, that the parent sees the children (dth’s), but it does not seem the children get updates from the parent…

in the case of rm, portions of the rules no longer display in the mobile app.
In your case, I have no idea, did this app ever work correctly?
Not following what you mean that the child devices don’t get updates from the parent.
Are you saying that the parent isn’t able to issue commands to the child devices?

This morning my weekend alarm clock triggered and the weekend morning mode rule ran just fine. Which would be great, were it not for the fact that the virtual switch that is supposed to disable the alarm clock was on, and the weekend morning mode rule was deleted yesterday because it became headless. :frowning: This is getting very, very tiresome.

The rules look ok but I have lights that aren’t turning off even though the rule state is false. I’ve decided I’m not f’ing with it today. Everyone needs a day off. I am getting close to just making everything as simple as possible and start reading forums and looking for a replacement. Your right, this is getting tiresome.

I have an electronic lock on the door between the garage and house as well one on the front door. I also replaced the round door knobs with levers. Now I can make a single trip from the car to the house with my arms loaded and not have to set things down to open the door.

My problem is I just don’t trust the ST system any more. Things work one day and fail the next. Countless communication errors, the most common of which is ‘can’t load rooms’. On day I’ll have 60 devices, but only 6 the next. I’ve had the gate start to close on its own before I’ve cleared it. Ditto on the garage door. I keep peeling away more and more of the automated functions as I trust it less and less.

The day that happens to me, is the day I would be migrating to another controller. Luckily, it didn’t happen in almost two years…

1 Like

I’ve only had a couple cree bulbs dump on me and the strange thing is, after removing them from the smartapps associated with them, they started working. I blamed it on the ST gremlins.

Just wanted to chime in that I’ve been continuously having parts of RM child apps disappear. This has been happening for several weeks, even after upgrading RM code and rebuilding the rules that are problematic. Happens over, and, over, and over again.

I don’t even bother complaining anymore, because at the end of the day, I can only blame myself for this torment. :slight_smile:

Gosh… Seems like a lot of “live” Topics open on Rule Manager, but this is a general platform problem anyway;

Just thought I’d note that my simple “Turn on two switches at Sunset” Rule failed to execute and/or had an over 30,022 ms (30 seconds?) execution time?

Well… I still need to try to do more to debug this rule (gotta watch live logging at the one of the upcoming Sunsets, obviously, or see if it is effective with a non-Sunset based schedule).

1 Like

Two more headless rules today. Checking all rules every morning is becoming a necessity.

I’ll have to check mine. I’ve gone 3 days with a relatively stable system. No headless rules and only a couple light bulbs not turning off (could be my programming too). I had hoped this was behind us. Guess not. :thumbsdown:

I ended up having 1 headless rule and it was a trigger that disappeared.