Help…Oh oh. My VeraLite is not working after I made a change to some test LUA code in a scene. May have been a LUA code issue, however seems to have crippled the device? I’ve trying power cycling the device and it doesn’t help. I can get to the logs but that’s about it…some key items I see over and over.
What can I do to get the device working again? Do have have to hold the reset button down for 10 seconds and reset the whole device just because there is an error in a LUA file? Would this mean I’d have to reload the device from the latest backup then?
Can I ssh to the box & find the scene LUA code represented as a file? Then change the file to fix the issue? Where are the LUA files stored?
That looks similar to the problem I got in Ui7. Is it a scene you scheduled to run every X minutes ?
Like you, my unique option was to reset the Vera to leave the infinite crash loop. Then you can restore a backup and try to unschedule this scene.
If not, what were your lua code changes that could explain such a repeated crash ?
With the crashing I couldn’t get a chance to get into the UI (I’m on UI5) to stop the schedule, so then I tried the factory reset after which I was going to try a restore, however I’m kind of stuck now as I mentioned
In the LUA code it was only a couple of test lines, so I think it would have been accessing or printing a variable that hadn’t been initialized yet…hard to imagine something so small has caused so much grief. I’m assuming from a LUA programming perspective it’s just a minor little bug, but the fact I’d had the scene scheduled to run each minute it became a big issue?
The sharp-eyed @lolodomo has spotted evidence that your VeraLite seems to be running UI6 not UI5. If the upgrade happened as a result of your factory reset, it might explain why you cannot connect it to your UI5 account.
If you really were running UI5, you may want to reload it.
I think you could encounter a bug introduced in UI6 and not yet fixed in UI7 (I have not tested the last UI7 release) that is in my hypothesis relative to scene scheduling.
If there is an error in your lua code, it should crash the scene run but not the full lua engine. And there should be something to prevent this infinite loop of lua engine restart because the engine runs this scene at each startup.
get “No controllers have been added to this account” => click on “add another controller”
get “Select Your Controller” => VeraLite selected then click on “Continue”
get plugin your controller and wait for all 3LEDs to be on => click on “Continue”
get ERROR “An error has occurred while trying to process your request. Please try again later!”
I can actually ssh onto the device ok, but if I look at the log file directory it seems there were no entries during the above (based on file timestamps)
I note in the serproxy.log the following, happening every 6 minutes (I changed the devid):
11/16/14 0:17:51 ===---Running 4 with Luup IP: 127.0.0.1 ID: 35202858 My IP: 127.0.0.1 COM: *none*
11/16/14 0:17:51 ==Skipping unknown Serial Port: usbserinfo:1.0 driver:2.0
11/16/14 0:17:51 ===Number of Serial Ports found: 0
11/16/14 0:17:51 Downloaded http://127.0.0.1:3480/data_request?id=lu_finddevice&devid=12341234&devtype=urn:micasaverde-org:device:SerialPortRoot:1 to /tmp/serproxy.1-5966 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o "/tmp/serproxy.1-5966" "htt
p://127.0.0.1:3480/data_request?id=lu_finddevice&devid=12341234&devtype=urn:micasaverde-org:device:SerialPortRoot:1" Response 1792
11/16/14 0:17:51 Download failed
11/16/14 0:17:51 find_self failed
PS. Separate to trying to get my current build back on the air, I posed the question here [url=http://forum.micasaverde.com/index.php/topic,28404.0.html]http://forum.micasaverde.com/index.php/topic,28404.0.html[/url] re how one could completely rebuild a unit from scratch…
Best Home Automation shopping experience. Shop at Ezlo!