PLEG gets out of sync with devices due to restart

I’m certainly far from being an expert, but it appears that the problem is localised to only 2 users.
There must be something in common with both of you as no one else has this problem.

Perhaps hardware is a common factor here?

Why not both list what you have and see if this can be eliminated?

[quote=“zedrally, post:21, topic:183969”]I’m certainly far from being an expert, but it appears that the problem is localised to only 2 users.
There must be something in common with both of you as no one else has this problem.

Perhaps hardware is a common factor here?

Why not both list what you have and see if this can be eliminated?[/quote]

I don’t think they even have the same problems do they? One has a crazy restarting problem that seems to be more of an issue in my eyes then anything else. They might be thinking it’s related to PLEG but it could be related to alot of things, Including low Memory on the Vera.

[quote=“zedrally, post:21, topic:183969”]I’m certainly far from being an expert, but it appears that the problem is localised to only 2 users.
There must be something in common with both of you as no one else has this problem.

Perhaps hardware is a common factor here?

Why not both list what you have and see if this can be eliminated?[/quote]

In reply to Zedrally’s suggestion, here is a liste of my equipement:
Veralite firmware 1.5.622
4 GE dimmer
8 GE switch
8 Evolve plug
2 Everspring HSM 02 wireless sensor (for garage doors)
2 Evolve ZWave Inline Relay Module LFM-20
1 Yale Z-Wave Push Button Door lock YRLD210ZW
4 Foscam 8906
1 foscam 9828
1 D-Link camera DCS-930 (all foscam working with Foscam IP camara plugin version 2.6)
1 Aeon-Lab 4 in one Multi sensor
1 CT-80 thermostat cionnected via Radio Thermostat Wi-Fi Plugin version 3
1 Envisalink board on DSC 1864 connected via DSC Alarm Panel Plugin version 0.4
1 Sonos Play 1 connected via Sonos App version 1.2

I’m not sure how devices could be involved since my vera worked perfectly with all devices configured and tested with the first 2 PLEG configured and no errors were detected for 24 hours, as soon I added the other PLEG with schedules vera started getting out of sync with Resstarts every 20 minutes or so.

@golddriiver
The log file shows that PLEG was active about 15 seconds before the crash … and there were NO actions pending.

If you change your logic to NOT use NOW and replace it with an explicit timer … you can reduce the noise in the log.

You really need to see why your VERA is restarting.
Potential issues:
Out of memory (too many plugins installed), NO USB thumb drive … so logs eat up memory.
Out of diskspace … your root directory is out of space …

Are you running UI5 or UI7 ? Vera Lite ? or Vera 3 ? Vera 3 has twice as much memory as a Vera Lite.

Your list shows devices not so much plugins

Day/Night
PLEG
Sonos
???

What else do you have and how many of each?

Vera Lite is a lil weak on Memory. Could be just adding a bit to much and it’s getting overloaded, but there are ways to check into this.

The Z-Wave devices do not eat up memory … nor do the alarm system devices … but they do each use some memory.

But the following each use about 2 MB of memory:
Each Camera
Your Thermostat
Each PLEG
The DCS interface.
Sonos Interface

^^^
Is that each or total?

[quote=“zedrally, post:27, topic:183969”]^^^
Is that each or total?[/quote]

[quote=“RichardTSchaefer, post:26, topic:183969”]But the following each use about 2 MB of memory:
Each Camera
Your Thermostat
Each PLEG
The DCS interface.
Sonos Interface[/quote]

[quote=“integlikewhoa, post:22, topic:183969”][quote=“zedrally, post:21, topic:183969”]I’m certainly far from being an expert, but it appears that the problem is localised to only 2 users.
There must be something in common with both of you as no one else has this problem.

Perhaps hardware is a common factor here?

Why not both list what you have and see if this can be eliminated?[/quote]

I don’t think they even have the same problems do they? One has a crazy restarting problem that seems to be more of an issue in my eyes then anything else. They might be thinking it’s related to PLEG but it could be related to alot of things, Including low Memory on the Vera.[/quote]

I’m not saying it is related to PLEG but the problem started when I added PLEG with schedules or NOW.

As for memory, I attached a USB stick and transfer logfiles to it before rebuilding my system since there seems to be quite a load of info wrote to the logfile by the thermostat, the 4 in one sensor and all the activity on the alarm system.

I’m actually installing datamine to try to pinpoint the memory usage and also looking the 60+ seconds before the crash in logfile.

[quote=“RichardTSchaefer, post:24, topic:183969”]@golddriiver
The log file shows that PLEG was active about 15 seconds before the crash … and there were NO actions pending.

If you change your logic to NOT use NOW and replace it with an explicit timer … you can reduce the noise in the log.

You really need to see why your VERA is restarting.
Potential issues:
Out of memory (too many plugins installed), NO USB thumb drive … so logs eat up memory.
Out of diskspace … your root directory is out of space …

Are you running UI5 or UI7 ? Vera Lite ? or Vera 3 ? Vera 3 has twice as much memory as a Vera Lite.[/quote]

A- only using NOW for motion activated action (turn on light for 10 minutes when movement) so don’t know how to use schedules instead

B- Vera Lite UI5

C- USB thumb used

D- Plugin installed:<
email notification
garage door
wunderground weathe plugin
foscam
DSC alarm
Radio thermostat
PLEFG
?Multiswitch
virtual ON O?FF switch
Sonos
Homewave push notification
vera alerts

E- still trying to find out how to see if root is full or not, learning LINUX …

[quote=“RichardTSchaefer, post:24, topic:183969”]@golddriiver
The log file shows that PLEG was active about 15 seconds before the crash … and there were NO actions pending.

If you change your logic to NOT use NOW and replace it with an explicit timer … you can reduce the noise in the log.

You really need to see why your VERA is restarting.
Potential issues:
Out of memory (too many plugins installed), NO USB thumb drive … so logs eat up memory.
Out of diskspace … your root directory is out of space …

Are you running UI5 or UI7 ? Vera Lite ? or Vera 3 ? Vera 3 has twice as much memory as a Vera Lite.[/quote]

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 4608 4608 0 100% /rom
tmpfs 31240 888 30352 3% /tmp
tmpfs 512 0 512 0% /dev
/dev/mtdblock7 11264 3224 8040 29% /overlay
overlayfs:/overlay 11264 3224 8040 29% /
/dev/sda1 518320 22740 469252 5% /tmp/log/cmh
/dev/mtdblock8 4480 4480 0 100% /mios

From what I see here, root woukd be full !!!

how could this happened ?

[quote=“integlikewhoa, post:22, topic:183969”][quote=“zedrally, post:21, topic:183969”]I’m certainly far from being an expert, but it appears that the problem is localised to only 2 users.
There must be something in common with both of you as no one else has this problem.

Perhaps hardware is a common factor here?

Why not both list what you have and see if this can be eliminated?[/quote]

I don’t think they even have the same problems do they? One has a crazy restarting problem that seems to be more of an issue in my eyes then anything else. They might be thinking it’s related to PLEG but it could be related to alot of things, Including low Memory on the Vera.[/quote]

I don’t think they are the same problems either. goldriver has very frequent restarts, and mine are only 2-3 per day - and always when a PLEG action occurs.

Now I do think memory may be a common theme, as I am also on a VeraLite, and have 11 plug-ins, 27 z-wave devices, 10 enocean devices, etc, but that is always a suspect with the current hardware, in my opinion. My restarts always seem to be at the time of changing the state of a z-wave device, so I did a manual heal today. I am also going to see if I can figure out how to clean up some of the leftover files from ERGY and plug-ins I have uninstalled…

Well, this thread inspired me to delete the one camera I had on Vera, and remove the Foscam plug-in, in order to free up memory. I had kept it on both Vera and Synology just due to the fact I hadn’t figured out how to set presets in Surveillance Station, but I figured that out this morning. I still move the camera position in Vera based on alarm state, but that is straight LUA as PLEG action, and it functions fine, no need for the device or plug-in…

But when I looked around Vera’s file structure via putty last night, I couldn’t figure out where I could delete files related to old uninstalled plug-ins. Will try again…

But when I looked around Vera's file structure via putty last night, I couldn't figure out where I could delete files related to old uninstalled plug-ins.

Installed plugin files are usually in the folder /etc/cmh-ludl. Look for all the files that contain the name of the plugin. They may start with D_, I_, J_, L_ or S_.

The disk space used by a plugin’s implementation files is usually not a limiting factor on Vera.
Deleting a plugin device from the dashboard deletes the runtime memory needed by the plugin. This is the critical limit.

Well, I picked up a Vera3 and just moved everything over to it via a backup. So am praying the restart does not reappear and that memory was the issue.

It is sure nice to see 80 MB free system memory instead of <10 MB free on the VeraLite…

My new Vera3 has been running over 72 hours without a restart, so my issue with restarts during PLEG actions appears to be resolved. Can’t be 100% certain the extra memory of the Vera3 over the VeraLite was the difference, but it seems very likely…

Thank you to everyone on this thread!

It looks like the replacement of my veralite by vera3 also fixed most of my issues, with the difference from wilme2 that I still have 1-2 restart every 24 hours.

I’m still investigating on the issue, I think I have a zwave device having issue being polled causing crashes but I’m unable to pinpoint which devices causes the problem

You probably have Vera Routing turned on … that will cause a restart every night as it continuously tries to optimize the Z-Wave network.
It would be nice to see the log file for a crash during the day.

There are other reasons that Vera can restart, but on a VeraLite it’s often memory.

Vera did re-start this morning in the middle of a PLEG action. So while the extra memory of the Vera3 has cleared up the vast majority of the restarts, I still have the restart/out-of-sync issue when multiple triggers hit PLEG logic at the same time.

The restart happened when I walked into our walk-in closet at the same time my wife opened the back door. The closet has an Leviton LevNet Occupancy Sensor + EnOcean plug-in, while the back door has a wired door sensor connected to a DSC 1832 + DSC plug-in. Each tripping should have turned on a GE/Jasco z-wave light switch. I know they happened at the same time because I walked into the closet and the light failed to turn on at the exact same time I heard the alarm chime. The garage light did turn on, but the closet light did not, likely because Vera was restarting. The garage light is still on now hours later, because while Vera shows it on, PLEG’s triggers show it off.

GarageLightOff Garage Light is turned off true 2014-12-08 17:57:05.586 2014-12-08 17:51:44.846
GarageLightOn Garage Light is turned on false 2014-12-08 17:51:44.847 2014-12-08 17:57:05.587

Any idea how to troubleshoot?