Groups
Groups
Sign in
Groups
Groups
linux.debian.bugs.dist
Conversations
About
Send feedback
Help
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
Bug#1039475: icingaweb2 backend is not configured correctly
212 views
Skip to first unread message
Guido Berhoerster
unread,
Jun 26, 2023, 8:10:04 AM
6/26/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Package: debian-edu-config
Version: 2.12.32
After logging into icingaweb2 after a fresh installation of the main server,
the following PHP exception can be found in the logs:
Icinga\Exception\ConfigurationError in /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php:178 with message: No backend has been configured
#0 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php(76): Icinga\Module\Monitoring\Backend\MonitoringBackend::loadConfig()
#1 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Controller.php(32): Icinga\Module\Monitoring\Backend\MonitoringBackend::instance()
#2 /usr/share/php/Icinga/Web/Controller/ModuleActionController.php(28): Icinga\Module\Monitoring\Controller->moduleInit()
#3 /usr/share/php/Icinga/Web/Controller/ActionController.php(169): Icinga\Web\Controller\ModuleActionController->prepareInit()
#4 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(59): Icinga\Web\Controller\ActionController->__construct()
#5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#6 /usr/share/php/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch()
#7 /usr/share/php/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#8 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#9 {main}
However a backend has been configured by edu-icinga-setup in
/etc/icingaweb2/modules/monitoring/backends.ini:
[icinga]
type = "ido"
resource = "icinga_ido"
The resource referred to is also defined in /etc/icingaweb2/resources.ini:
…
[icinga_ido]
type = "db"
db = "mysql"
host = "localhost"
port = ""
dbname = "icingadb"
username = "icinga2"
password = "v64nhbe27dfBjR3T"
charset = ""
use_ssl = "0"
--
Guido Berhoerster
Guido Berhoerster
unread,
Jun 26, 2023, 8:50:04 AM
6/26/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
The documentation no longer mentions "config_backend" in the global
configuration (see
https://icinga.com/docs/icinga-web/2.11/doc/03-Configuration/#global-configuration
)
and the changelog mentions that "user preferences" are now stored in the
DB (see
https://icinga.com/docs/icinga-web/latest/doc/80-Upgrading/#upgrading-to-icinga-web-211x
)
though from the tracking bug it is not immediately clear what goes into
the ini files and what is stored in the DB (see
https://github.com/Icinga/icingaweb2/issues/3770
).
Debugging
Icinga\Module\Monitoring\Backend\MonitoringBackend:loadConfig() confirms
that the backends ($backends) configuration is actually empty, i.e. that
no backends are defined in the configuration (see
https://github.com/Icinga/icingaweb2/blob/v2.11.4/modules/monitoring/library/Monitoring/Backend/MonitoringBackend.php#L160
for context).
--
Guido Berhoerster
Guido Berhoerster
unread,
Jun 28, 2023, 5:00:05 AM
6/28/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Even after creating a database for icingaweb and recreating the
configuration using the setup module I am getting the same error.
Related support forum post:
https://community.icinga.com/t/no-backend-has-been-configured-after-initial-setup/12245
--
Guido Berhoerster
0 new messages