TL;DR – if you’re seeing frequent LUUP engine restarts, confirm that you’re not having network traffic issues!
Just wanted to share my experience in hopes that it might help someone in a similar situation.
My (UI5) Vera had been stable for several months. I’d hit a point where nothing was broken, so I was leaving well alone, and was happy with the performance of my Vera and code.
Then I started seeing issues where Vera was acting erratically. I use a lot of PLEGs and I was having situations where timed events (10 min after a door closing, etc) weren’t happening and in general my PLEGs didn’t seem to remember when a condition had become true or false.
After keeping an eye on my Vera using the System Monitor plugin, I realized that the LUUP engine was restarting every 20-30 minutes. In response, I asked a couple questions on the forum and I opened a ticket with MicasaVerde. MV kept an eye on my logs and over the course of several follow-ups suggested that different PLEGs were at fault.
I made a backup and spent a day removing one plugin at a time while keeping an eye on uptime of LUUP. No luck - removed every plugin, deleting their devices, and I still had frequent restarts.
While pruning unneeded code from my startup Lua one day, the power at my house went out for several seconds. After the power was restored and my Vera restarted, it began to run stably. I was disappointed because I couldn’t point at a single fix, but happy that I was on the road to stability.
Then I discovered that another machine on my network had not resumed (by design) when power was restored. After turning this machine on, my LUUP restarts kicked back in!
After some trial and error (disabling Vera’s device discovery, playing with DLNA, disabling my media server), I found that a perl script that I use to retrieve callerID status from my OBI device was working overtime. I had it running once a second, checking the status of the phone line. Once I made this script wait 5 seconds between status checks, my Vera became stable again. For the last several days, the only LUUP restart I’m seeing is the typical nightly restart. The script in question was not communicating with my Vera, but the traffic was going through the same router.