[Debian-l10n-devel] Bug#896884: l10n-rrd cron job fail with "Function update_pdp_prep, case DST_GAUGE - Cannot convert '' to float"

Laura Arjona Reina larjona at debian.org
Wed Dec 4 08:56:51 GMT 2019


Hi all

I think this is solved with this commit:

https://salsa.debian.org/l10n-team/dl10n/commit/a7af20a1819c4adc5fdc5612254cdf50f1518a87

diff --git a/dl10n-rrd/manpages-rrd.pl b/dl10n-rrd/manpages-rrd.pl
index
5fdd56ca47818734015a29dd51fdb200359183f2..dadfb64ae0f5bc294a1064ce80b6b2a763bacfff
100755
--- a/dl10n-rrd/manpages-rrd.pl
+++ b/dl10n-rrd/manpages-rrd.pl
@@ -101,6 +101,13 @@ foreach $lang (sort keys %langs) {
         $date = strftime "%s", localtime;
         $date = (int($date / $step)+1)*$step
     }
+
+    if ($total{$lang} eq '') {
+        $total{$lang} = "U";
+    }
+    if ($total_translated_only{$lang} eq '') {
+        $total_translated_only{$lang} = "U";
+    }
     system "rrdtool update man/$lang.rrd $date:".
                                          $total{$lang}.":".
                                          $total_translated_only{$lang};


Kind regards,


El 25/4/18 a las 13:39, Laura Arjona Reina escribió:
> 
> Hello
> The daily cron jobs that create the data and graphs in i18n.debian.org currently
> fail with these errors:
> 
> /srv/i18n.debian.org/etc/cron.d//90l10n-rrd:
> ERROR: man/ar.rrd: Function update_pdp_prep, case DST_GAUGE - Cannot convert ''
> to float
> ERROR: man/be.rrd: Function update_pdp_prep, case DST_GAUGE - Cannot convert ''
> to float
> 
> (a lot of more errors with different language files).
> 
> I've searched for the error but couldn't find enough info to try to solve it by
> myself, I'm not familiarised with rrdtool.
> 
> I've tried to manually run the task in tye.debian.org and got these errors mixed
> with other type of error, mentioned in #896678 "illegal attempt to update using
> time X when last update time is X (minimum one second step)", so I guess this
> kind of error will be recurrent every day too.
> 
> Cheers
> 

-- 
Laura Arjona Reina
https://wiki.debian.org/LauraArjona



More information about the Debian-l10n-devel mailing list