Unforseen/Undiagnosable crash in Monitor v 1.0.3 #6

Closed
opened 2021-06-11 19:19:21 +00:00 by ZAdamMac · 5 comments
ZAdamMac commented 2021-06-11 19:19:21 +00:00 (Migrated from github.com)

Current version of monitor is unexpectedly crashing during normal operation with unknown cause.

Investigating ways to better log the monitor so that such crashes can be diagnosed (and, if possible, automatically restarted)

Current version of monitor is unexpectedly crashing during normal operation with unknown cause. Investigating ways to better log the monitor so that such crashes can be diagnosed (and, if possible, automatically restarted)
ZAdamMac commented 2021-06-11 19:23:40 +00:00 (Migrated from github.com)

Some additional information:

  • The crash is not immediate. The monitor can survive idling for an indeterminate period of time.
  • After such a time, the monitor crashes silently. When this happens the screen is not cleared.

To compensate in the short term we're running a heartbeat script independantly 1/hour with crontab that simply registers a "Heartbeat Check" message against the configured remote piminder_service instance. This script will both work to be a visual indicator of a crash (should see it 1/hour, after all) as well as show via the DB itself the times when the alert did not appear on the display screen.

Works as a short-term workaround but extra work is needed to determine the /why/ of these failures.

Some additional information: - The crash is not immediate. The monitor can survive idling for an indeterminate period of time. - After such a time, the monitor crashes silently. When this happens the screen is not cleared. To compensate in the short term we're running a heartbeat script independantly 1/hour with crontab that simply registers a "Heartbeat Check" message against the configured remote piminder_service instance. This script will both work to be a visual indicator of a crash (should see it 1/hour, after all) as well as show via the DB itself the times when the alert did not appear on the display screen. Works as a short-term workaround but extra work is needed to determine the /why/ of these failures.
ZAdamMac commented 2021-06-11 19:30:17 +00:00 (Migrated from github.com)

This is impacting the immediate usefulness of labmonitor in a highly negative way; will at least add the required debug functionality this weekend, targeted fix timeline TBD once some debug data is in hand.

This is impacting the immediate usefulness of labmonitor in a highly negative way; will at least add the required debug functionality this weekend, targeted fix timeline TBD once some debug data is in hand.
ZAdamMac commented 2021-06-12 01:12:18 +00:00 (Migrated from github.com)

Probably something not unlike this:
image

This happened during dynamic testing on the monitor so it's not clear if this is a result of the crash-on-refresh or me touching a button when I shouldn't, but either way it shouldn't have crashed.

Probably something not unlike this: ![image](https://user-images.githubusercontent.com/26860397/121760607-03db2a00-cb02-11eb-80f7-ca2312434001.png) This happened during dynamic testing on the monitor so it's not clear if this is a result of the crash-on-refresh or me touching a button when I shouldn't, but either way it shouldn't have crashed.
ZAdamMac commented 2021-06-12 01:21:57 +00:00 (Migrated from github.com)

It's unlikely based on the code that this is the sole cause of the unexpected crashes. That specific bug can only arise during the deletion or mark-as-read operations, which are user input dependant.

Still, it's an easy patch. Patched in commit 9a82d336dbca111920b098042037a3f7870d1d16 on my local.

It's unlikely based on the code that this is the sole cause of the unexpected crashes. That specific bug can only arise during the deletion or mark-as-read operations, which are user input dependant. Still, it's an easy patch. Patched in commit `9a82d336dbca111920b098042037a3f7870d1d16` on my local.
ZAdamMac commented 2021-06-13 10:14:19 +00:00 (Migrated from github.com)

Closing this. Solution is implemented in Piminder 1.0.5 and validated through overnight operation in production.

Closing this. Solution is implemented in Piminder 1.0.5 and validated through overnight operation in production.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zadammac/piminder#6
No description provided.