[quote=“clippermiami, post:799, topic:172785”]I continue to be plagued with a Vera Restart problem for which no one at Vera seems to have an answer.
I have two UI5 Veras; Vera-1 runs all the Zwave stuff and Vera-2 interfaces the DSC alarm and the Blue Iris camera system. Both exhibit very high memory utilization, Vera-1 85-95% and Vera-2 110-115%. Vera-1 also exhibits periodic high CPU utilization topping 90% about once per minute which I suspect may be PLEG serving timers but i can’t prove it.
Anyway the current problem is that Vera-1 may restart several times a day (others days not at all). About once a week it restarts but LuaUPnP does NOT start at all — the problem for which Vera Tech Support seems not to have an answer. I can access it via SSH and see that LuaUPnP is not running at all but it answers PINGs so there does not appear to be a nice clean method to use as a means of detecting startup failure and forcing a restart or power cycle.
So I’m thinking about a different approach. Two ZWave power outlets in a box, one controlled by Vera-1 and the other by Vera-2. Vera-1 is plugged into the Vera-2 controlled outlet and vice. Each Vera would have a VirtualSwitch/MultiSwitch, a PLEG function with a 1 minute short timer and a 5 minute long timer.
Each Vera would then use HTTP to set a VirtualSwitch/MultiSwitch on the other Vera. When each Vera sees the switch set it would reset the internal timer and set the switch on the other Vera and so one once every minute or so throughout the day.
Because LuaUPnP is not running commands received would be ignored on that Vera. If Vera-1-or-2 fails to see its control switch set by the other then the long timer will eventually expire and the Vera would trip the other-Vera-outlet OFF and then turn it back ON after 30 seconds. Thus each Vera would be monitored and power cycled by the other if it fails to function properly.
A convoluted solution to be sure but its what I’ve been able to devise to solve for a problem “that can’t happen” when it happens.
Opinions? Suggestion? Better solution?[/quote]
I’m making good progress on this solution with one glitch. I’ve built a short extension cord with a dual gang box to house two GE/Jasco Duplex outlets (‘m awaiting the two Ge/Jasco outlets, my local Lowes’ didn’t have any in stock.) Each of the outlets will power one of the Veras but be controlled by the other Vera.
I have a Vera-Vera Heartbeat function working and every minute each Vera sends the other a command to turn on a “pulse button” in a MultiSwitch. This button is set up as as TRIGGER in PLEG. When the trigger is received it resets the MONITORING PowerCycleTimer.
If a MONITORED Vera LuaUPnP fails to start for some reason the heartbeat is missed and after 10 minutes the MONITORING Vera PowerCycleTimer expires and it will cycle the outlet powering the failed Vera which will of course start that Vera cold.
The glitch occurs when the MONITORING Vera restarts. As soon as it recovers from the Restart it fires its PowerCycleTimer which power cycles the running Vera. So I need to find a way to suppress this on local restart but this appears to runs counter to the design of PLEG. I need to find a way to make the PLEG aware that a local restart has occurred and suppress firing the PowerCycleTimer that monitors the "other’ Vera.
Thoughts?