[Pkg-nagios-devel] Bug#912599: icinga2-common: incinga2-common fails to install cleanly (hidden dep on icinga2)
Lee Garrett
debian at rocketjump.eu
Thu Nov 1 17:41:19 GMT 2018
Package: icinga2-common
Version: 2.6.0-2
Severity: serious
Justification: Policy 3.5
Dear maintainer,
installing icinga2-common on a system that does not have icinga2 installed fails
as follows:
--->8------>8------>8------>8------>8------>8------>8------>8------>8------>8---
# apt install icinga2-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
icinga2-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/93.6 kB of archives.
After this operation, 401 kB of additional disk space will be used.
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously unselected package icinga2-common.
(Reading database ... 533789 files and directories currently installed.)
Preparing to unpack .../icinga2-common_2.6.0-2_all.deb ...
Unpacking icinga2-common (2.6.0-2) ...
Setting up icinga2-common (2.6.0-2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/icinga2.service →
/lib/systemd/system/icinga2.service.
Job for icinga2.service failed because the control process exited with error
code.
See "systemctl status icinga2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript icinga2, action "start" failed.
● icinga2.service - Icinga host/service/network monitoring system
Loaded: loaded (/lib/systemd/system/icinga2.service; enabled; vendor preset:
enabled)
Active: failed (Result: exit-code) since Thu 2018-11-01 18:37:29 CET; 7ms ago
Process: 4157 ExecStartPre=/usr/lib/icinga2/prepare-dirs
/usr/lib/icinga2/icinga2 (code=exited, status=6)
CPU: 1ms
Nov 01 18:37:29 saito systemd[1]: Starting Icinga host/service/network
monitoring system...
Nov 01 18:37:29 saito prepare-dirs[4157]: /usr/lib/icinga2/prepare-dirs: 1:
/usr/lib/icinga2/prepare-dirs: /usr/sbin/icinga2: not found
Nov 01 18:37:29 saito prepare-dirs[4157]: Could not fetch RunAsUser variable.
Error ''. Exiting.
Nov 01 18:37:29 saito systemd[1]: icinga2.service: Control process exited,
code=exited status=6
Nov 01 18:37:29 saito systemd[1]: Failed to start Icinga host/service/network
monitoring system.
Nov 01 18:37:29 saito systemd[1]: icinga2.service: Unit entered failed state.
Nov 01 18:37:29 saito systemd[1]: icinga2.service: Failed with result
'exit-code'.
dpkg: error processing package icinga2-common (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (232-25+deb9u4) ...
Errors were encountered while processing:
icinga2-common
====== How can you help? (doc: https://wiki.debian.org/how-can-i-help ) ======
----- Show old opportunities as well as new ones: how-can-i-help --old -----
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
--->8------>8------>8------>8------>8------>8------>8------>8------>8------>8---
Installing icinga2 directly, which pulls in icinga2-common, makes the
installation go through cleanly.
Besides the policy violation it makes it hard to install icinga2 with the chef
cookbook at https://supermarket.chef.io/cookbooks/icinga2, as it installs every
package after each other (with a version number restriction).
Regards,
Lee
-- System Information:
Debian Release: 9.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages icinga2-common depends on:
ii adduser 3.115
ii init-system-helpers 1.48
ii lsb-base 9.20161125
ii lsb-release 9.20161125
Versions of packages icinga2-common recommends:
ii logrotate 3.11.0-0.1
icinga2-common suggests no packages.
-- Configuration Files:
/etc/icinga2/conf.d/app.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/app.conf'
/etc/icinga2/conf.d/apt.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/apt.conf'
/etc/icinga2/conf.d/commands.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/commands.conf'
/etc/icinga2/conf.d/downtimes.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/downtimes.conf'
/etc/icinga2/conf.d/groups.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/groups.conf'
/etc/icinga2/conf.d/hosts.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/hosts.conf'
/etc/icinga2/conf.d/notifications.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/notifications.conf'
/etc/icinga2/conf.d/satellite.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/satellite.conf'
/etc/icinga2/conf.d/services.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/services.conf'
/etc/icinga2/conf.d/templates.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/templates.conf'
/etc/icinga2/conf.d/timeperiods.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/timeperiods.conf'
/etc/icinga2/conf.d/users.conf [Errno 13] Permission denied: '/etc/icinga2/conf.d/users.conf'
/etc/icinga2/constants.conf [Errno 13] Permission denied: '/etc/icinga2/constants.conf'
/etc/icinga2/features-available/api.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/api.conf'
/etc/icinga2/features-available/checker.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/checker.conf'
/etc/icinga2/features-available/command.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/command.conf'
/etc/icinga2/features-available/compatlog.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/compatlog.conf'
/etc/icinga2/features-available/debuglog.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/debuglog.conf'
/etc/icinga2/features-available/gelf.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/gelf.conf'
/etc/icinga2/features-available/graphite.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/graphite.conf'
/etc/icinga2/features-available/influxdb.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/influxdb.conf'
/etc/icinga2/features-available/livestatus.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/livestatus.conf'
/etc/icinga2/features-available/mainlog.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/mainlog.conf'
/etc/icinga2/features-available/notification.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/notification.conf'
/etc/icinga2/features-available/opentsdb.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/opentsdb.conf'
/etc/icinga2/features-available/perfdata.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/perfdata.conf'
/etc/icinga2/features-available/statusdata.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/statusdata.conf'
/etc/icinga2/features-available/syslog.conf [Errno 13] Permission denied: '/etc/icinga2/features-available/syslog.conf'
/etc/icinga2/icinga2.conf [Errno 13] Permission denied: '/etc/icinga2/icinga2.conf'
/etc/icinga2/init.conf [Errno 13] Permission denied: '/etc/icinga2/init.conf'
/etc/icinga2/repository.d/README [Errno 13] Permission denied: '/etc/icinga2/repository.d/README'
/etc/icinga2/scripts/mail-host-notification.sh [Errno 13] Permission denied: '/etc/icinga2/scripts/mail-host-notification.sh'
/etc/icinga2/scripts/mail-service-notification.sh [Errno 13] Permission denied: '/etc/icinga2/scripts/mail-service-notification.sh'
/etc/icinga2/zones.conf [Errno 13] Permission denied: '/etc/icinga2/zones.conf'
/etc/icinga2/zones.d/README [Errno 13] Permission denied: '/etc/icinga2/zones.d/README'
-- no debconf information
More information about the Pkg-nagios-devel
mailing list