[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rrdtool: 64-bit time_t transition requires a dump/restore of existing files



clone 1104695 -1
reassign -1 release-notes
severity -1 normal
thanks

I found this from https://blog.trueelena.org/blog/2025/08/17-rrdtool_and_trixie/index.html which also has instructions what to do.

Paul

On Sun, 4 May 2025 18:33:23 +0000 Marc Ballarin <marc.ballarin@gmx.de> wrote:
Package: rrdtool
Version: 1.7.2-4.2+b5
Severity: minor

Dear Maintainer,

* What led up to the situation?
Upgrading a 32-Bit ARM system from Bookworm to Trixie
* What was the outcome of this action?
RRD files created in Bookworm are not readable in Trixie:
$ rrdtool info test.rrd
ERROR: 'test.rrd' is too small (should be 2986716 bytes)
* What outcome did you expect instead?
$ rrdtool info test.rrd
filename = "test.rrd"
...

This is somewhat expected behaviour, since RRD files are platform
dependent, but it might still be surprising to users.

IMHO, this behaviour, as well as the workaround, should be mentioned in
the release notes.

Workaround:
1. Stop writers and dump RRD to XML *before* upgrading:
$ rrdtool dump test.rrd > test.xml
2. Restore RRD from XML *after* upgrading:
$ rrdtool restore -f test.xml test.rrd

Regards,
Marc


-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: armhf (armv7l)

Kernel: Linux 6.12.22-armmp (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rrdtool depends on:
ii libc6 2.41-7
ii libglib2.0-0t64 2.84.1-1
ii librrd8t64 1.7.2-4.2+b5

rrdtool recommends no packages.

Versions of packages rrdtool suggests:
ii librrds-perl 1.7.2-4.2+b5

-- no debconf information



Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Reply to: