Event log stops when full
Posted: 03 Sep 2017 16:06
Since Upgrading to 2.3.5. release I have noticed that after about 3 days
the event logs have a huge chunk missing.
It will give the last 30 minutes of history (about 8 entries), then jump to 2 days ago.
Restarting the z-way server does not resolve the issue !
Deleting the Notifications-xxx.json file and then starting the server again works until
3-5 days later when the same issue occurs.
Looking at the Notifications-xxx.json file it seems to get to 4999 entries and then gets stuck
at 1053854 bytes
v2.3.5 on RPI3 Jesse 4.9.35-v7+
Further details below:-
Snapshot on 29/08/2017 19:25 but at 19:21 It's suddenly looking at 2 days before.
//---------------------------
device-gas
Utility
19:25 | Gas Meter is 2.7 Qubic meter
device-OnOff
Lounge
19:25 | PIR is off
device-OnOff
Kitchen
19:24 | PIR is off
device-OnOff
Kitchen
19:23 | PIR is on
device-OnOff
Kitchen
19:23 | PIR is off
device-OnOff
Lounge
19:23 | PIR is off
device-OnOff
Kitchen
19:22 | PIR is on
device-OnOff
Lounge
19:22 | PIR is on
device-OnOff
Lounge
19:22 | PIR is off
device-OnOff
Lounge
19:21 | PIR is on
device-OnOff
Lounge ------ Missing 2 days of data here
27.8. - 19:05 | PIR is on
device-OnOff
Lounge
27.8. - 19:05 | PIR is off
device-OnOff
Lounge
27.8. - 19:05 | PIR is on
device-OnOff
Garden
27.8. - 19:03 | Conservatory PIR is off
30 minutes later. Still only see the last 2 mins of history. Then jumps back to 48 hours previous.
Lounge
19:55 | Light is 33%
device-OnOff
Passage
19:55 | Light bedroom is on
device-temperature
Garage
19:55 | Temperature is 21.1 °C
device-OnOff
Utility
19:55 | Shut/Open ALL Curtains is on
device-OnOff
Lounge
19:55 | Curtains - French Doors is on
device-OnOff
Bedroom2
19:55 | Curtains is on
device-OnOff
Kitchen
19:55 | Curtains is on
device-OnOff
Lounge
19:55 | Curtains - Patio is on
device-OnOff
Lounge
19:55 | Curtains Click twice TV is on
device-OnOff
Utility
19:55 | Daylight 202 is off
device-OnOff
Lounge
19:54 | PIR is off
device-OnOff
Kitchen
19:54 | PIR is off
device-OnOff
Lounge
19:54 | PIR is on
device-OnOff
Lounge
27.8. - 19:05 | PIR is on
device-OnOff
Lounge
27.8. - 19:05 | PIR is off
----------------------------------
03/09/2017 09:35 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16910 root 20 0 168108 75592 16780 S 11.7 8.0 309:17.90 z-way-server
at 13:15
-rw-r--r-- 1 root root 1053854 Sep 3 12:50 notifications-f37bd2f66651e7d46f6d38440f2bc5dd.json
-rw-r--r-- 1 root root 1053854 Sep 3 13:18 notifications-f37bd2f66651e7d46f6d38440f2bc5dd.json
-rw-r--r-- 1 root root 1053854 Sep 3 14:01 notifications-f37bd2f66651e7d46f6d38440f2bc5dd.json
----------------------------------------
device-OnOff
Lounge
12:54 | PIR is on
device-OnOff
Kitchen
12:54 | PIR is on
device-luminiscence
Bathroom
12:54 | Luminiscence is 37 Lux
device-humidity
Bathroom
12:54 | Humidity is 66 %
device-temperature
Bathroom
12:54 | Temperature is 20.2 °C
device-luminiscence
Kitchen
12:52 | Luminiscence is 136 Lux
device-temperature
Kitchen
12:52 | Temperature is 20.9 °C
device-OnOff
Kitchen
12:51 | PIR is off
device-OnOff
Kitchen
08:01 | PIR is off
device-OnOff
Lounge
08:01 | PIR is on
device-OnOff
Lounge
08:01 | PIR is off
device-OnOff
Kitchen
08:01 | PIR is on
device-OnOff
Lounge
08:00 | PIR is on
device-luminiscence
Bathroom
07:59 | Luminiscence is 13 Lux
@13:20
Lounge
13:20 | PIR is off
device-OnOff
Lounge
13:19 | PIR is on
device-OnOff
Lounge
13:19 | PIR is off
device-OnOff
Kitchen
13:19 | PIR is on
device-OnOff
Kitchen
13:19 | PIR is off
device-OnOff
Lounge
13:19 | PIR is on
device-OnOff
Kitchen
13:18 | PIR is on
device-OnOff
Kitchen
13:18 | PIR is off
device-OnOff
Lounge
13:18 | PIR is off
device-OnOff
Kitchen
08:01 | PIR is off
device-OnOff
Lounge
08:01 | PIR is on
device-OnOff
Lounge
08:01 | PIR is off
device-OnOff
Kitchen
08:01 | PIR is on
device-OnOff
Lounge
08:00 | PIR is on
device-luminiscence
Bathroom
07:59 | Luminiscence is 13 Lux
the event logs have a huge chunk missing.
It will give the last 30 minutes of history (about 8 entries), then jump to 2 days ago.
Restarting the z-way server does not resolve the issue !
Deleting the Notifications-xxx.json file and then starting the server again works until
3-5 days later when the same issue occurs.
Looking at the Notifications-xxx.json file it seems to get to 4999 entries and then gets stuck
at 1053854 bytes
v2.3.5 on RPI3 Jesse 4.9.35-v7+
Further details below:-
Snapshot on 29/08/2017 19:25 but at 19:21 It's suddenly looking at 2 days before.
//---------------------------
device-gas
Utility
19:25 | Gas Meter is 2.7 Qubic meter
device-OnOff
Lounge
19:25 | PIR is off
device-OnOff
Kitchen
19:24 | PIR is off
device-OnOff
Kitchen
19:23 | PIR is on
device-OnOff
Kitchen
19:23 | PIR is off
device-OnOff
Lounge
19:23 | PIR is off
device-OnOff
Kitchen
19:22 | PIR is on
device-OnOff
Lounge
19:22 | PIR is on
device-OnOff
Lounge
19:22 | PIR is off
device-OnOff
Lounge
19:21 | PIR is on
device-OnOff
Lounge ------ Missing 2 days of data here
27.8. - 19:05 | PIR is on
device-OnOff
Lounge
27.8. - 19:05 | PIR is off
device-OnOff
Lounge
27.8. - 19:05 | PIR is on
device-OnOff
Garden
27.8. - 19:03 | Conservatory PIR is off
30 minutes later. Still only see the last 2 mins of history. Then jumps back to 48 hours previous.
Lounge
19:55 | Light is 33%
device-OnOff
Passage
19:55 | Light bedroom is on
device-temperature
Garage
19:55 | Temperature is 21.1 °C
device-OnOff
Utility
19:55 | Shut/Open ALL Curtains is on
device-OnOff
Lounge
19:55 | Curtains - French Doors is on
device-OnOff
Bedroom2
19:55 | Curtains is on
device-OnOff
Kitchen
19:55 | Curtains is on
device-OnOff
Lounge
19:55 | Curtains - Patio is on
device-OnOff
Lounge
19:55 | Curtains Click twice TV is on
device-OnOff
Utility
19:55 | Daylight 202 is off
device-OnOff
Lounge
19:54 | PIR is off
device-OnOff
Kitchen
19:54 | PIR is off
device-OnOff
Lounge
19:54 | PIR is on
device-OnOff
Lounge
27.8. - 19:05 | PIR is on
device-OnOff
Lounge
27.8. - 19:05 | PIR is off
----------------------------------
03/09/2017 09:35 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16910 root 20 0 168108 75592 16780 S 11.7 8.0 309:17.90 z-way-server
at 13:15
-rw-r--r-- 1 root root 1053854 Sep 3 12:50 notifications-f37bd2f66651e7d46f6d38440f2bc5dd.json
-rw-r--r-- 1 root root 1053854 Sep 3 13:18 notifications-f37bd2f66651e7d46f6d38440f2bc5dd.json
-rw-r--r-- 1 root root 1053854 Sep 3 14:01 notifications-f37bd2f66651e7d46f6d38440f2bc5dd.json
----------------------------------------
device-OnOff
Lounge
12:54 | PIR is on
device-OnOff
Kitchen
12:54 | PIR is on
device-luminiscence
Bathroom
12:54 | Luminiscence is 37 Lux
device-humidity
Bathroom
12:54 | Humidity is 66 %
device-temperature
Bathroom
12:54 | Temperature is 20.2 °C
device-luminiscence
Kitchen
12:52 | Luminiscence is 136 Lux
device-temperature
Kitchen
12:52 | Temperature is 20.9 °C
device-OnOff
Kitchen
12:51 | PIR is off
device-OnOff
Kitchen
08:01 | PIR is off
device-OnOff
Lounge
08:01 | PIR is on
device-OnOff
Lounge
08:01 | PIR is off
device-OnOff
Kitchen
08:01 | PIR is on
device-OnOff
Lounge
08:00 | PIR is on
device-luminiscence
Bathroom
07:59 | Luminiscence is 13 Lux
@13:20
Lounge
13:20 | PIR is off
device-OnOff
Lounge
13:19 | PIR is on
device-OnOff
Lounge
13:19 | PIR is off
device-OnOff
Kitchen
13:19 | PIR is on
device-OnOff
Kitchen
13:19 | PIR is off
device-OnOff
Lounge
13:19 | PIR is on
device-OnOff
Kitchen
13:18 | PIR is on
device-OnOff
Kitchen
13:18 | PIR is off
device-OnOff
Lounge
13:18 | PIR is off
device-OnOff
Kitchen
08:01 | PIR is off
device-OnOff
Lounge
08:01 | PIR is on
device-OnOff
Lounge
08:01 | PIR is off
device-OnOff
Kitchen
08:01 | PIR is on
device-OnOff
Lounge
08:00 | PIR is on
device-luminiscence
Bathroom
07:59 | Luminiscence is 13 Lux