I am on Arch Linux with the following packages:
- icinga-php-library 0.13.1-1
- icinga-php-thirdparty 0.12.0-1 # Updated to 0.12.1 since, did not change anything
- icinga2 2.14.0-1
- icingaweb2 2.12.1-1
- icingaweb2-module-director 1.11.0-2
- icingaweb2-module-incubator 0.20.0-2
- PHP 8.1.26 for web and 8.2.13 for CLI
- postgresql 16.1-3
Currently, if I load my main icingaweb page, even the login page complains about incubator unable to connect to icinga.
“Incubator module is still waiting for icinga”
Second giveaway something is wrong is About page being broken completely:
Please check if a db instance exists at all
#0 /usr/share/webapps/icingaweb2/library/Icinga/Application/ProvidedHook/DbMigration.php(21): Icinga\Application\ProvidedHook\DbMigration->getWebDb()
#1 /usr/share/webapps/icingaweb2/library/Icinga/Application/Hook/DbMigrationHook.php(293): Icinga\Application\ProvidedHook\DbMigration->getDb()
#2 /usr/share/webapps/icingaweb2/library/Icinga/Application/Hook/DbMigrationHook.php(172): Icinga\Application\Hook\DbMigrationHook->load()
#3 /usr/share/webapps/icingaweb2/library/Icinga/Application/MigrationManager.php(306): Icinga\Application\Hook\DbMigrationHook->getMigrations()
#4 /usr/share/webapps/icingaweb2/library/Icinga/Application/MigrationManager.php(56): Icinga\Application\MigrationManager->load()
#5 /usr/share/webapps/icingaweb2/library/Icinga/Application/MigrationManager.php(106): Icinga\Application\MigrationManager->getPendingMigrations()
#6 /usr/share/webapps/icingaweb2/library/Icinga/Application/MigrationManager.php(69): Icinga\Application\MigrationManager->count()
#7 /usr/share/webapps/icingaweb2/application/views/scripts/about/index.phtml(99): Icinga\Application\MigrationManager->hasPendingMigrations()
#8 /usr/share/webapps/icingaweb2/library/Icinga/Web/View.php(235): include(String)
#9 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/View/Abstract.php(886): Icinga\Web\View->_run()
#10 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action/Helper/ViewRenderer.php(910): Zend_View_Abstract->render()
#11 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action/Helper/ViewRenderer.php(931): Zend_Controller_Action_Helper_ViewRenderer->renderScript()
#12 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action/Helper/ViewRenderer.php(970): Zend_Controller_Action_Helper_ViewRenderer->render()
#13 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#14 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#15 /usr/share/webapps/icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#16 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch()
#17 /usr/share/webapps/icingaweb2/library/Icinga/Application/Web.php(294): Zend_Controller_Front->dispatch()
#18 /usr/share/webapps/icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#19 /usr/share/webapps/icingaweb2/public/index.php(4): require_once(String)
#20 {main}
Dashboard also does not load correctly, dashlet titles load but their contents are empty, clicking on the titles shows the services correctly however.
Director shows no pending migrations:
[0] # icingacli director migration run --verbose
[0] #
Clicking through director/icinga2/icingaweb2(+icingaweb2 user DB backend) resources I have configured all Validates.
Validation Log
Connection to icingaweb2 as icingaweb2 on localhost:5432 successful
PostgreSQL 16.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 13.2.1 20230801, 64-bit
1 active users
Databases are all there on PSQL side:
postgres=# \l
List of databases
Name | Owner | Encoding | Locale Provider | Collate | Ctype | ICU Locale | ICU Rules | Access privileges
------------+------------+----------+-----------------+-------------+-------------+------------+-----------+-----------------------
director | postgres | UTF8 | libc | en_GB.UTF-8 | en_GB.UTF-8 | | | =Tc/postgres +
| | | | | | | | postgres=CTc/postgres+
| | | | | | | | director=CTc/postgres
icinga | icinga | UTF8 | libc | en_GB.UTF-8 | en_GB.UTF-8 | | |
icingaweb2 | icingaweb2 | UTF8 | libc | en_GB.UTF-8 | en_GB.UTF-8 | | |
postgres | postgres | UTF8 | libc | en_GB.UTF-8 | en_GB.UTF-8 | | |
template0 | postgres | UTF8 | libc | en_GB.UTF-8 | en_GB.UTF-8 | | | =c/postgres +
| | | | | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | libc | en_GB.UTF-8 | en_GB.UTF-8 | | | postgres=CTc/postgres+
| | | | | | | | =c/postgres
(6 rows)
resources.ini
[icingaweb2]
type = "db"
db = "pgsql"
host = "localhost"
port = "5432"
dbname = "icingaweb2"
username = "icingaweb2"
password = "<password>"
[icinga2]
type = "db"
db = "pgsql"
host = "localhost"
port = "5432"
dbname = "icinga"
username = "icinga"
password = "<password>"
[director]
type = "db"
db = "pgsql"
host = "localhost"
port = "5432"
dbname = "director"
username = "director"
password = "<password>"
charset = "utf8"
This setup has worked previously, but at some indeterminate point broke(I do not open the page often and the Notifications worked fine, so it went unnoticed).