Bug #17099
openrrd backend sometimes ends up dead
0%
Description
Sometimes after a flood of events, the updaterrd.sh script ends up dead, causing Monitoring graphs to stop updating. Also affects CE 2.9.x. Longer discussion at https://forum.netgate.com/topic/201165/status-monitoring-no-monitoring-data-logged-while-in-wan-failover/20
I created a patch: https://gist.github.com/luckman212/9685be13e67ad59b0225528bae99a389
The patch adds some more aggressive killing (uses KILL sig if TERM fails to stop the daemon, uses a small retry loop to acquire the lock if the initial one fails, and switches the lockf call away from an exec so the result code can be captured and used to retry if needed).
I've been running this patch for a couple of weeks with good success, and a handful of other users on the forums reported success as well. The patch currently has some extra debug logging in it, happy to provide an update with that removed that's more suitable for merging.
Also related:- https://redmine.pfsense.org/issues/16927
check_reload_status, which I have also created a PR for here: https://forum.netgate.com/topic/201294/submitting-a-pr-for-check_reload_status
No data to display