[collectd] Bug#779483: collectd: Fails to install if no FQDN domain name
tokkee at debian.org
Sun Mar 1 13:43:08 CET 2015
forwarded 779483 collectd at verplant.org
On Sun, Mar 01, 2015 at 11:05:28AM +0100, s3v wrote:
> attempting to install this package...
> # apt-get install collectd
> 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:
> 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,
> Process: 6127 ExecStart=/etc/init.d/collectd start (code=exited,
> mar 01 10:26:49 s3v3land collectd: 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: Starting statistics
> collection and monitoring daemon: collectd
> not starting, configuration error failed!
> mar 01 10:26:49 s3v3land systemd: collectd.service: control
> process exited, code=exited status=1
> mar 01 10:26:49 s3v3land systemd: Failed to start LSB: manage
> the statistics collection daemon.
> mar 01 10:26:49 s3v3land systemd: 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
Thanks for reporting this. By default, the Debian package configuration
uses 'FQDNLookup true' and I think it makes sense to abort if the lookup
fails. However, I think we can make that optional by allowing a third
value (besides "true" and "false") like "allow-fallback" or something
which I could then use in the default package configuration.
With this email, I forwarded the issue to the upstream mailing list for
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x2F1FFCC7 +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: Digital signature
More information about the collectd