Opened 9 years ago
Closed 9 years ago
#4 closed defect (fixed)
Exception updating rrd database with invalid time
| Reported by: | joachim | Owned by: | joachim |
|---|---|---|---|
| Priority: | blocker | Milestone: | 0.5.0 (Feature Freeze) |
| Component: | Device Daemon | Version: | Unstable |
| Keywords: | Cc: |
Description
Probably this error is caused by resetting the system time by chrony, during a running log session. In this situation it is possible, that gnuboat tries to add a rrd entry to an already existing time slot (which was added before the time reset).
The produced log is
Aug 25 09:17:26 gnu.boat gnuboat[620]: Failed to connect to n2kd server at 127.0.0.1:2597: [Errno 111] Connection refused Aug 25 09:17:26 gnu.boat gnuboat[620]: Traceback (most recent call last): Aug 25 09:17:26 gnu.boat gnuboat[620]: File "/usr/bin/gnuboat", line 223, in <module> Aug 25 09:17:26 gnu.boat gnuboat[620]: main(sys.argv[1:]) Aug 25 09:17:26 gnu.boat gnuboat[620]: File "/usr/bin/gnuboat", line 194, in main Aug 25 09:17:26 gnu.boat gnuboat[620]: latitude, longitude, speedThroughWater, speedOverGround, courseOverGround, waterDepth, waterTemperature, gpsFix)) Aug 25 09:17:27 gnu.boat gnuboat[620]: File "/usr/lib/python2.7/dist-packages/gnuboat/daemon/rrdhandler.py", line 54, in rrd_update Aug 25 09:17:27 gnu.boat gnuboat[620]: rrdtool.update(rrdfile, value_string) Aug 25 09:17:27 gnu.boat gnuboat[620]: rrdtool.error: /var/lib/gnuboat/gnuboat.rrd: illegal attempt to update using time 1503652646 when last update time is 1503654343 (minimum one second step)
Note:
See TracTickets
for help on using tickets.

see [193006a776755af6e2b111fa0a2a2515e590c40f]