Suddenly my scenes are not working anymore, motion sensors do no switch things on or off etc…
When i log into UI7 i see a startup lua error on top.
When i reload the lua engine everything is OK again and works.
This goes OK for a sometimes a few hours, sometimes a few days but then suddenly again the same error occurs.
I had allready contact with support about an other issue and i reported this, they answered that it mostlikely is not my own lua code but an installed app what is causing this. Developers of the apps had to update there code but did not do this or did not do this correctly was there response.
Which app they did not mention.
I have now a problem, i have a unit which randomly crashes and stops working.
I cannot find the cause and if it is a 3th party app i mostlikely need the add for my own scenes to run properly.
I never had these issues on my old vera lite UI5 device, all these problems occur since i upgraded to vera edge including UI7.
Anyone an idea how i can find out what is causing these lua startup errors?
Is there maybe a way to automaticly restart the lua engine on crash?
Having the same issue with my VeraEdge with UI7. My scenes suddenly stop doing what they suppose to & as a result of this my lights flicker randomly.(this is how I know this happened)
This also happens after a random periods of time. it can work for a week, but sometimes crashes after hours.
When I enter the online interface it shows me “Error in Lua for scenes and events”. I installed LuaTest app to be able to troubleshoot lua code on controller, because i found this is the only way to do so. But whenever the crash happens I cannot start LuaTest anymor either. So i go into Apps->develop Apps-> run startup lua. Apparently this restarts the controller & everything starts to work OK.
It would be ideal if the controller restart itself automatically when the crash happens, but if not is it possible to set the controller to restart itself lets say every hour???
I dont believe this happens because of the apps installed. Simply because I dont have any… LuaTest apparenty is not considered an app because it is not in “installed apps” list.
Sometimes it takes several restarts (without changing anything else) before the Lua error goes away.
While the system is ‘quiet’, the system reports a restart, then invariably it restarts with the Lua error - and nothing is working. Could probably work around if there was a way to keep restarting it until it ran successfully.
Interesting to here you say you removed all apps with no effect. I removed all but what I considered essential, but no joy
I found a correlation with frequency of restarts with scenes that had a ping command in it, but the randomness makes that only the best guess for now.
Only experienced since upgrading to UI7 on VeraLite (have tried about 10 restores since the upgrade). Also tried the current beta firmware (no difference).
I’ve run every trigger and scene separately in Test Luup with no reported problems.
Never solved the problem so i made a php script which runs on a local server (in my case a synology nas) which monitors the lua engine and restarts the lua engine when it crashes automaticly.
To get this to work you need:
a local (unix) server which runs 24/7 in the same subnet
apache/php/mysql installed on that server
the server should be able to execute cronjobs
What this script exactly does is:
vera update a db table every minute on that server (create a time based scene)
the php scripts monitors the database for its last update timestamp of vera unit
when a X minutes (in my case 5 minutes) are past without any update it will asume the lua engine is crashed and reload the lua engine
Because this script makes use of a database i added an option to also set/enter/update values from vera (by url) in a database which can be used for examle as logging or just store values in the database.
On vera unit itself you only have to add a specific lua code to call a url to your server with some params, so no install of apps, plugins etc
This work around works for me, since i use it my unit has never a downtime anymore of max 5 minutes.
Do you have any scenes using the ping command or a ping/WoL plugin or possibly a plugin that might check for connectivity via a ping?
Too early to say I’ve solved it yet, but the system ran all night without a failure since I removed all references to ping.
i did had ping sensors installed, but removed them some weeks ago.
Crashes are indeed less since i removed them but absolutely not gone.
I now let my NAS/server ping my devices and update the status in a DB and in a vera variablen app.
I’m getting less and less random lua restart errors since removing all time interval activated scenes (like… trigger every 5 minutes).
I previously had a ping on one, and it got less while it was disabled, so yanked them all out, and haven’t seen one today. It may take a few days to be sure, but has 100% of the time failed at the 2am reboot, so should know soon enough.
The reason I was looking at the timer triggers was because every failed lua restart occurred when one of the few timers went active during the reload process.
[quote=“Autom8, post:7, topic:189357”]I’m getting less and less random lua restart errors since removing all time interval activated scenes (like… trigger every 5 minutes).
I previously had a ping on one, and it got less while it was disabled, so yanked them all out, and haven’t seen one today. It may take a few days to be sure, but has 100% of the time failed at the 2am reboot, so should know soon enough.
The reason I was looking at the timer triggers was because every failed lua restart occurred when one of the few timers went active during the reload process.[/quote]
I think you are onto something. There was a reported memory leak issue with time interval scenes in previous releases. Either it has not yet been fixed, or your still on that earlier software.
I initially went from UI5 to UI7 with the official 1.7.730 and was getting so many dramas, that I figured best to try 1.7.739 (beta) before going back to UI5. Its at a workable state today after 3 weeks of messing around. Geofence is still a puzzle. I did about 200 Lua reloads a few hours ago and didn’t get lua failure (but did get a completely locked up unit while it was idle a short while ago), so fingers crossed.
Best Home Automation shopping experience. Shop at Ezlo!