Package: collectd
Version: 5.4.1-6
Severity: wishlist
Hi,
attempting to install this package...
# apt-get install collectd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
collectd-core libdbi1 librrd4
Suggested packages:
collectd-dev librrds-perl libconfig-general-perl apcupsd bind9
hddtemp ipvsadm lm-sensors mbmon
memcached nginx nut openvpn olsrd pdns-server postgresql time-daemon
Recommended packages:
libesmtp6 liblvm2app2.2 libmodbus5 libopenipmi0 liboping0
libowcapi-2.9-8 libpcap0.8 libperl5.20
libpq5 libprotobuf-c1 librabbitmq1 libsnmp30 libtokyotyrant3
libupsclient4 libvirt0
default-jre-headless rrdtool
The following NEW packages will be installed:
collectd collectd-core libdbi1 librrd4
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1119 kB of archives.
After this operation, 3941 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.it.debian.org/debian/ jessie/main collectd-core
amd64 5.4.1-6 [777 kB]
Get:2 http://ftp.it.debian.org/debian/ jessie/main libdbi1 amd64
0.9.0-4 [32.3 kB]
Get:3 http://ftp.it.debian.org/debian/ jessie/main librrd4 amd64
1.4.8-1.2 [223 kB]
Get:4 http://ftp.it.debian.org/debian/ jessie/main collectd amd64
5.4.1-6 [86.7 kB]
Fetched 1119 kB in 2s (490 kB/s)
Preconfiguring packages ...
Selecting previously unselected package collectd-core.
(Reading database ... 146134 files and directories currently installed.)
Preparing to unpack .../collectd-core_5.4.1-6_amd64.deb ...
Unpacking collectd-core (5.4.1-6) ...
Selecting previously unselected package libdbi1:amd64.
Preparing to unpack .../libdbi1_0.9.0-4_amd64.deb ...
Unpacking libdbi1:amd64 (0.9.0-4) ...
Selecting previously unselected package librrd4.
Preparing to unpack .../librrd4_1.4.8-1.2_amd64.deb ...
Unpacking librrd4 (1.4.8-1.2) ...
Selecting previously unselected package collectd.
Preparing to unpack .../collectd_5.4.1-6_amd64.deb ...
Unpacking collectd (5.4.1-6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up collectd-core (5.4.1-6) ...
Setting up libdbi1:amd64 (0.9.0-4) ...
Setting up librrd4 (1.4.8-1.2) ...
Setting up collectd (5.4.1-6) ...
Job for collectd.service failed. See 'systemctl status
collectd.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript collectd, action "restart" failed.
dpkg: error processing package collectd (--configure):
subprocess installed post-installation script returned error exit
status 1
Processing triggers for libc-bin (2.19-15) ...
Errors were encountered while processing:
collectd
E: Sub-process /usr/bin/dpkg returned an error code (1)
# systemctl -l status collectd.service
● collectd.service - LSB: manage the statistics collection daemon
Loaded: loaded (/etc/init.d/collectd)
Active: failed (Result: exit-code) since dom 2015-03-01 10:26:49
CET; 2min 13s ago
Process: 6119 ExecStop=/etc/init.d/collectd stop (code=exited,
status=0/SUCCESS)
Process: 6127 ExecStart=/etc/init.d/collectd start (code=exited,
status=1/FAILURE)
mar 01 10:26:49 s3v3land collectd[6130]: Looking up "s3v3land"
failed. You have set the "FQDNLookup" option,
but I cannot resolve my hostname to a fully qualified domain name.
Please fix the network configuration.
mar 01 10:26:49 s3v3land collectd[6127]: Starting statistics
collection and monitoring daemon: collectd
not starting, configuration error failed!
mar 01 10:26:49 s3v3land systemd[1]: collectd.service: control
process exited, code=exited status=1
mar 01 10:26:49 s3v3land systemd[1]: Failed to start LSB: manage
the statistics collection daemon.
mar 01 10:26:49 s3v3land systemd[1]: Unit collectd.service entered
failed state.
The error occurs if /etc/hosts hasn't FQDN domain name:
127.0.0.1 localhost
192.168.1.3 s3v3land.FOO
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
After removing "FOO" from /etc/hosts file, the problem disappears and
package installation ends fine.
Can you provide some warnings regarding incorrect syntax in "etc/hosts"
but, despite that, allowing a normal installation of the package?
Thanks for reading and for your job.
-- System Information:
Debian Release: 8.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages collectd depends on:
ii collectd-core 5.4.1-6
ii libc6 2.19-15
ii librrd41.4.8-1.2
Versions of pac