Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504972 - net-analyzer/icinga-web-1.10.0-r1 uses wrong conf directory
Summary: net-analyzer/icinga-web-1.10.0-r1 uses wrong conf directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-18 14:56 UTC by Marcin Mirosław
Modified: 2017-12-03 03:51 UTC (History)
0 users

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 2014-03-18 14:56:04 UTC
It looks icinga-web looks for incorrect directory for configuration files. It should look for files in /etc/icinga-web/ but instead icinga-web pick up files from /usr/share/icinga/icinga-web/app/config/. (At least it's true for file databases.xml, which is first configuration place I've started to edit).
Error message for vanilla installation:
 PDO Connection Error: SQLSTATE[08006] [7] FATAL: password authentication failed for user "icinga_web"
Stacktrace:
#0 /usr/share/icinga/icinga-web/lib/doctrine/lib/Doctrine/Connection.php(1009): Doctrine_Connection->connect()
#1 /usr/share/icinga/icinga-web/lib/doctrine/lib/Doctrine/Query/Abstract.php(976): Doctrine_Connection->execute('SELECT n.sessio...', Array)
#2 /usr/share/icinga/icinga-web/lib/doctrine/lib/Doctrine/Query/Abstract.php(1026): Doctrine_Query_Abstract->_execute(Array)
#3 /usr/share/icinga/icinga-web/app/modules/AppKit/lib/storage/AppKitDoctrineSessionStorage.class.php(133): Doctrine_Query_Abstract->execute()
#4 [internal function]: AppKitDoctrineSessionStorage->sessionRead('v95613qnvn1qd63...')
#5 /usr/share/icinga/icinga-web/lib/agavi/src/storage/AgaviSessionStorage.class.php(132): session_start()
#6 /usr/share/icinga/icinga-web/app/cache/config/factories.xml_production_web_a6b5b15be66b68ea25bb7a314d4c8ff13c944590.php(76): AgaviSessionStorage->startup()
#7 /usr/share/icinga/icinga-web/app/cache/config/compile.xml_production__ae9d9606fd8f55d65b5eb6e28c55423a9d7782e8.php(384): include('/usr/share/icin...')
#8 /usr/share/icinga/icinga-web/app/cache/config/compile.xml_production__ae9d9606fd8f55d65b5eb6e28c55423a9d7782e8.php(3549): AgaviContext->initialize()
#9 /usr/share/icinga/icinga-web/app/cache/config/compile.xml_production__ae9d9606fd8f55d65b5eb6e28c55423a9d7782e8.php(370): AppKitAgaviContext->initialize()
#10 /usr/share/icinga/icinga-web/pub/index.php(49): AgaviContext::getInstance('web')
#11 {main}

Error message after I did
# pwd
/usr/share/icinga/icinga-web/app/config
# mv databases.xml databases.xml.block 

-> 500 internal server error!

=== Error ===
Uncaught exception AgaviUnreadableException thrown!

=== Message ===
Configuration file "/usr/share/icinga/icinga-web/app/config/databases.xml" does not exist or is unreadable.

=== Stacktrace ===
#0 /usr/share/icinga/icinga-web/lib/agavi/src/database/AgaviDatabaseManager.class.php(142): AgaviConfigCache::checkConfig('/usr/share/icin...')
#1 /usr/share/icinga/icinga-web/app/cache/config/factories.xml_production_web_a6b5b15be66b68ea25bb7a314d4c8ff13c944590.php(52): AgaviDatabaseManager->initialize(Object(AppKitAgaviContext), Array)
#2 /usr/share/icinga/icinga-web/app/cache/config/compile.xml_production__ae9d9606fd8f55d65b5eb6e28c55423a9d7782e8.php(384): include('/usr/share/icin...')
#3 /usr/share/icinga/icinga-web/app/cache/config/compile.xml_production__ae9d9606fd8f55d65b5eb6e28c55423a9d7782e8.php(3549): AgaviContext->initialize()
#4 /usr/share/icinga/icinga-web/app/cache/config/compile.xml_production__ae9d9606fd8f55d65b5eb6e28c55423a9d7782e8.php(370): AppKitAgaviContext->initialize()
#5 /usr/share/icinga/icinga-web/pub/index.php(49): AgaviContext::getInstance('web')
#6 {main}


Error message doesn't change if I configure/delete file /etc/icinga-web/databases.xml
Comment 1 Marcin Mirosław 2014-03-18 14:57:50 UTC
# emerge --info                                                                                                                                [28/4858]
FEATURES variable contains unknown value(s): Xfail-clean, Xkeepwork, Xprofile, Xsplitdebug, Xtest, Yunknown-features-filter, profile-use
Portage 2.2.8-r1 (hardened/linux/amd64, gcc-4.7.3, glibc-2.17, 3.13.5-hardened x86_64)
=================================================================
System uname: Linux-3.13.5-hardened-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.2
KiB Mem:      762084 total,     22892 free
KiB Swap:     979928 total,    754096 free
Timestamp of tree: Tue, 18 Mar 2014 08:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo ultrabug
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fexpensive-optimizations -flto         -fgraphite-identity -floop-interchange -ftree-loop-linear -floop-block -floop-strip-mine -fira-loop-
pressure         -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-vectorize         -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-un
wind-tables -fuse-linker-plugin         --param l2-cache-size=128 --param l1-cache-size=16 --param l1-cache-line-size=32 -pipe -Wdisabled-optimization -Wstack-protect
or"
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/apache2-php5.3/ext-active/ /etc/php/apache2-ph
p5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /
etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fexpensive-optimizations -flto         -fgraphite-identity -floop-interchange -ftree-loop-linear -floop-block -floop-strip-mine -fira-loo
p-pressure         -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-vectorize         -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-
unwind-tables -fuse-linker-plugin         --param l2-cache-size=128 --param l1-cache-size=16 --param l1-cache-line-size=32 -pipe -Wdisabled-optimization -Wstack-prote
ctor"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="Xfail-clean Xkeepwork Xprofile Xsplitdebug Xtest Yunknown-features-filter assume-digests binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs profile-use protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mneisen.org/"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -march=native -O2 -fexpensive-optimizations -flto         -fgraphite-identity -floop-interchange -ftree-loop-linear -floop-block -floop-strip-mine -fira-loop-pressure         -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-vectorize         -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables -fuse-linker-plugin         --param l2-cache-size=128 --param l1-cache-size=16 --param l1-cache-line-size=32 -pipe -Wdisabled-optimization -Wstack-protector"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O --inplace"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/ultrabug"
USE="acpi amd64 apache2 bash-completion caps hardened idn iproute2 ipv6 mmap mmx mmxext modules multilib nls openmp openssl smp sse sse2 sse3 sse4 sse4a ssse3 syslog threads threadsafe unicode urandom vhosts vim-syntax xtpax" ABI_X86="64" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon auth_digest authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dir env expires ext_filter filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif status unique_id usertrack vhost_alias" APACHE2_MPMS="prefork" CURL_SSL="openssl" ELIBC="glibc" KERNEL="linux" LINGUAS="en" NGINX_MODULES_HTTP="access browser charset gzip map limit_zone proxy rewrite stub_status gzip_static fancyindex" PHP_TARGETS="php5-5" PYTHON_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_COMPRESS_FLAGS, SYNC, USE_PYTHON
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-12-03 03:51:56 UTC
I'm passing `--with-conf-dir=/etc/icinga-web` now (and for a while).  So closing, thanks.