Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539262 - app-admin/collectd - rrdtool plugin: rrd_update_r ([...]/tcpconns-4190-local/tcp _connections-FIN_WAIT1.rrd) failed: [...]/tcpconns-4190-local/tcp_connections-FIN_WAIT1.rrd: conversion of '0,000000' to float not complete: tail ',000000'
Summary: app-admin/collectd - rrdtool plugin: rrd_update_r ([...]/tcpconns-4190-local/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Johan Bergström
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-07 18:47 UTC by Marcin Mirosław
Modified: 2015-10-07 06:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2015-02-07 18:47:27 UTC
I think this problem isn't related to any version of collectd.
Ok, after start using collectd I noticed flood of messages as below in syslog:
2015-02-07T15:30:16.525280+01:00 jowisz collectd[8109]: rrdtool plugin: rrd_update_r (jowisz.mejor.pl/tcpconns-4190-local/tcp
_connections-FIN_WAIT1.rrd) failed: jowisz.mejor.pl/tcpconns-4190-local/tcp_connections-FIN_WAIT1.rrd: conversion of '0,00000
0' to float not complete: tail ',000000'
2015-02-07T15:30:16.525487+01:00 jowisz collectd[8109]: rrdtool plugin: rrd_update_r (jowisz.mejor.pl/tcpconns-4190-local/tcp
_connections-FIN_WAIT2.rrd) failed: jowisz.mejor.pl/tcpconns-4190-local/tcp_connections-FIN_WAIT2.rrd: conversion of '0,00000
0' to float not complete: tail ',000000'
2015-02-07T15:30:16.525685+01:00 jowisz collectd[8109]: rrdtool plugin: rrd_update_r (jowisz.mejor.pl/tcpconns-4190-local/tcp
_connections-TIME_WAIT.rrd) failed: jowisz.mejor.pl/tcpconns-4190-local/tcp_connections-TIME_WAIT.rrd: conversion of '0,00000
0' to float not complete: tail ',000000'

I've found that the problem was due to enviroment variable LC_NUMERIC wasn't equal to "C". I've added " --env LC_NUMERIC=C " to parameters of start-stop-daemon and problem didn't occur again.
I think it would be good to add this to init script in tree.

Reproducible: Always
Comment 1 Marcin Mirosław 2015-02-07 18:49:04 UTC
emerge --info:

Portage 2.2.14 (python 3.3.5-final-0, hardened/linux/amd64/no-multilib, gcc-4.8.3, glibc-2.19-r1, 3.17.7-hardened-r1[42/4996]
=================================================================
System uname: Linux-3.17.7-hardened-r1-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_v2_@_2.60GHz-with-gentoo-2.2
KiB Mem:     1018616 total,     48760 free
KiB Swap:     819196 total,    483208 free
Timestamp of tree: Sat, 07 Feb 2015 16:30:01 +0000
ld GNU gold (Gentoo 2.24 p1.4 2.24) 1.11
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r4
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.9
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
Installed sets: @nagios-plugins, @sheepdog
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"                                                                                           [13/4996]
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7 -mtune=native         -fno-unwind-tables -fno-asynchronous-unwind-tables -fuse-linker-plugin
-s        -fexpensive-optimizations -fgraphite-identity -floop-interchange         -ftree-loop-linear -floop-block -floop-str
ip-mine -fira-loop-pressure        -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apach
e2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc
/terminfo"
CXXFLAGS="-O2 -pipe -march=corei7 -mtune=native         -fno-unwind-tables -fno-asynchronous-unwind-tables -fuse-linker-plugi
n -s        -fexpensive-optimizations -fgraphite-identity -floop-interchange         -ftree-loop-linear -floop-block -floop-s
trip-mine -fira-loop-pressure        -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache cgroup collision-protect compressdebug config-protect-if-modified distlocks ebuil
d-locks fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmer
ge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delet
e --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="acl aio amd64 apache2 bash-completion bzip2 caps cli cracklib crypt cxx dri hardened iconv idn ipv6 justify libav mmx mo
dules ncurses nls nptl openmp pax_kernel pcre profile readline seccomp session smp sse sse2 ssl threads unicode urandom vhost
s vim-syntax xattr xtpax zlib" ABI_X86="64" APACHE2_MODULES="alias auth_basic authn_alias authn_anon auth_digest authn_dbm au
thn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cgi dav dav_fs dav
_lock dir env expires ext_filter filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif st
atus unique_id usertrack vhost_alias" APACHE2_MPMS="itk" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita ka
rbon braindump author" COLLECTD_PLUGINS="apache aggregation bind cgroups conntrack contextswitch cpu curl curl_json df disk d
ns entropy ethstat exec filecount hddtemp interface iptables irq libvirt lvm match_regex mysql netlink load memory network ng
inx notify_email ntpd openvpn ping postgresql processes protocols rrdtool snmp statsd swap syslog tail tcpconns unixsock upti
me vmem" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4 sse4.1 ssse3" ELIBC="glibc" KERNEL="linux" LIBREOFFICE_EXTENSIONS="pres
enter-console presenter-minimizer" LINGUAS="en" NGINX_MODULES_HTTP="access browser charset gzip map limit_zone proxy rewrite
spdy stub_status gzip_static" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHO
N_TARGETS="python2_7 python3_3" USERLAND="GNU" XTABLES_ADDONS="fuzzy geoip lscan psd sysrq tarpit"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMP
RESS_FLAGS, SYNC, USE_PYTHON
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-08 06:54:16 UTC
Please post your `emerge -vpq app-admin/collectd net-analyzer/rrdtool' output in a comment.
Comment 3 Marcin Mirosław 2015-02-08 13:49:51 UTC
Here you are:
[ebuild   R   ] net-analyzer/rrdtool-1.4.8-r1  USE="graph perl -dbi -doc -lua -python -rrdcgi -ruby -static-libs -tcl -tcpd" PYTHON_TARGETS="python2_7"
[ebuild   R   ] app-admin/collectd-5.4.1-r1  USE="-contrib -debug -perl (-selinux) -static-libs" COLLECTD_PLUGINS="aggregation apache bind cgroups conntrack contextswitch cpu curl curl_json df disk dns entropy ethstat exec filecount hddtemp interface iptables irq libvirt load lvm match_regex memory mysql netlink network nginx notify_email ntpd openvpn ping postgresql processes protocols rrdtool snmp statsd swap syslog tail tcpconns unixsock uptime vmem -apcups -ascent -battery -cpufreq -csv -curl_xml -dbi -email -fscache -gmond -ipmi -java -logfile -madwifi -match_empty_counter -match_hashed -match_timediff -match_value -mbmon -md -memcachec -memcached -multimeter -nfs -notify_desktop -numa -nut -olsrd -onewire -oracle -perl -powerdns -python -routeros -rrdcached -sensors -serial -table -target_notification -target_replace -target_scale -target_set -teamspeak2 -ted -thermal -threshold -tokyotyrant -users -uuid -varnish -vserver -wireless -write_graphite -write_http -write_mongodb" PYTHON_TARGETS="python2_7"

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Comment 4 Marcin Mirosław 2015-09-24 14:56:59 UTC
Fix is trivial, what is the reason of keeping this bug open?
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2015-09-26 15:49:52 UTC
Suggest:

diff --git a/app-admin/collectd/files/collectd.initd b/app-admin/collectd/files/collectd.initd
index 4f48a11..608a902 100644
--- a/app-admin/collectd/files/collectd.initd
+++ b/app-admin/collectd/files/collectd.initd
@@ -46,7 +46,7 @@ start() {
        [ -d /var/run/collectd ] || mkdir /var/run/collectd && chown collectd:collectd /var/run/collectd
 
        ebegin "Starting collectd"
-       start-stop-daemon --start --user "${COLLECTD_USER}:collectd" \
+       start-stop-daemon --start --user "${COLLECTD_USER}:collectd" --env LC_NUMERIC=C \
                --nicelevel "${COLLECTD_NICELVL}" --exec /usr/sbin/collectd -- \
                        -P "${COLLECTD_PIDFILE}" -C "${COLLECTD_CFGFILE}"
        eend $? "Failed to start collectd"
@@ -54,7 +54,7 @@ start() {
 
 stop() {
        ebegin "Stopping collectd"
-       start-stop-daemon --stop \
+       start-stop-daemon --stop --env LC_NUMERIC=C \
                --pidfile "${COLLECTD_PIDFILE}"
        eend $? "Failed to stop collectd"
 }
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2015-10-04 08:24:12 UTC
commit 11ee51482ad3c58c58da2be036bc6ee6440c43e4
Author: Ian Delaney <idella4@gentoo.org>
Date:   Sun Oct 4 16:22:32 2015 +0800

    app-admin/collectd: set required env var in file collectd.initd
    
    fix thanks to Marcin Mirosław sourced from the gentoo bug.
    
    Gentoo bug: #539262
Comment 7 Marcin Mirosław 2015-10-05 08:29:53 UTC
It works correctly, thanks!