Deprecated page after fresh install on Ubuntu 22.04

Hello,

I followed an installation guide on : https://linuxhostsupport.com/blog/how-to-install-icinga-2-on-ubuntu/ to install incinga on ubuntu 22.04, everything went smooth until i get to the “sudo icingacli setup token create” step and i try to go to the next step YourServerIPaddress/icingaweb2/setup and i get this dump of a text:

Deprecated: Return type of Icinga\Application\Libraries::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Libraries.php on line 20

Deprecated: Return type of Icinga\Application\Config::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 125

Deprecated: Return type of Icinga\Application\Config::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 145

Deprecated: Return type of Icinga\Application\Config::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 175

Deprecated: Return type of Icinga\Application\Config::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 165

Deprecated: Return type of Icinga\Application\Config::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 155

Deprecated: Return type of Icinga\Application\Config::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Application/Config.php on line 135

Deprecated: Return type of Icinga\Web\Session\SessionNamespace::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Web/Session/SessionNamespace.php on line 35

Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 91

Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetExists($priorityOrHelperName) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 102

Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetGet($priorityOrHelperName) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 117

Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetSet($priority, $helper) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 137

Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetUnset($priorityOrHelperName) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 173

Deprecated: Return type of Zend_Controller_Action_HelperBroker_PriorityStack::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 198

Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 317

Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 261

Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 273

Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 284

Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 296

Deprecated: Return type of Zend_View_Helper_Placeholder_Container_Standalone::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/View/Helper/Placeholder/Container/Standalone.php on line 307

Deprecated: Return type of Zend_Paginator::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Paginator.php on line 513

Deprecated: Return type of Zend_Paginator::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/library/vendor/Zend/Paginator.php on line 815

Deprecated: Return type of Icinga\Authentication\AuthChain::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Icinga/Authentication/AuthChain.php on line 200

Fatal error: Uncaught ErrorException: Uncaught Zend_Controller_Response_Exception: Cannot send headers; headers already sent in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php, line 30 in /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php:321 Stack trace: #0 /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders() #1 /usr/share/php/Icinga/Web/Response.php(361): Zend_Controller_Response_Abstract->setHeader() #2 /usr/share/php/Icinga/Web/Response.php(407): Icinga\Web\Response->prepare() #3 /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php(762): Icinga\Web\Response->sendHeaders() #4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(975): Zend_Controller_Response_Abstract->sendResponse() #5 /usr/share/php/Icinga/Application/Web.php(304): Zend_Controller_Front->dispatch() #6 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #7 /usr/share/icingaweb2/public/index.php(4): require_once(‘…’) #8 {main} thrown in /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php:321 Stack trace: #0 [internal function]: Icinga\Application\Web->Icinga\Application{closure}() #1 {main} Next Zend_Controller_Exception: Uncaught Zend_Controller_Response_Exception: Cannot send headers; headers already sent in /usr/share/icingaweb2/library/vendor/Zend/Controller/Action/HelperBroker/PriorityStack.php, line 30 in /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php:321 Stack trace: #0 /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders() #1 /usr/share/php/Icinga/Web/Response.php(361): Zend_Controller_Response_Abstract->setHeader() #2 /usr/share/php/Icinga/Web/Response.php(407): Icinga\Web\Response->prepare() #3 /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php(762): Icinga\Web\Response->sendHeaders() #4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(975): Zend_Controller_Response_Abstract->sendResponse() #5 /usr/share/php/Icinga/Application/Web.php(304): Zend_Controller_Front->dispatch() #6 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch() #7 /usr/share/icingaweb2/public/index.php(4): require_once(‘…’) #8 {main} thrown#0 [internal function]: Icinga\Application\Web->Icinga\Application{closure}() #1 {main} in /usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php:259 Stack trace: #0 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(906): Zend_Controller_Plugin_Broker->routeShutdown() #1 /usr/share/php/Icinga/Application/Web.php(471): Zend_Controller_Front->dispatch() #2 [internal function]: Icinga\Application\Web->Icinga\Application{closure}() #3 {main} thrown in /usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php on line 259

Then i discover a new installation guide , an official one here: Ubuntu - Icinga 2

and i cant get past this step: “sudo apt install icingadb-redis” it says it doesnt exist.

Its been a couple of days of trial and error and looking up solutions nothing worked so far.

Installation Info:

  • The Icinga 2 network monitoring daemon (version: r2.13.2-1)

  • System information:
    Platform: Ubuntu
    Platform version: 22.04.3 LTS (Jammy Jellyfish)
    Kernel: Linux
    Kernel version: 6.5.0-15-generic
    Architecture: x86_64

  • Disabled features: command compatlog debuglog elasticsearch gelf graphite icingadb influxdb influxdb2 livestatus opentsdb perfdata statusdata syslog

  • Enabled features: api checker ido-mysql mainlog notification

  • Config Validation:
    [2024-02-01 19:05:04 ] information/cli: Icinga application loader (version: r2.13.2-1)
    [2024-02-01 19:05:04 ] information/cli: Loading configuration file(s).
    [2024-02-01 19:05:04 ] information/ConfigItem: Committing config item(s).
    [2024-02-01 19:05:04 ] information/ApiListener: My API identity:
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 13 Notifications.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 IcingaApplication.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 2 HostGroups.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 Host.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 Downtime.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 FileLogger.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 CheckerComponent.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 2 NotificationCommands.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 ApiListener.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 3 Zones.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 Endpoint.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 ApiUser.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 244 CheckCommands.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 NotificationComponent.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 UserGroup.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 User.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 3 TimePeriods.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 3 ServiceGroups.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 1 ScheduledDowntime.
    [2024-02-01 19:05:04 ] information/ConfigItem: Instantiated 12 Services.
    [2024-02-01 19:05:04 ] information/ScriptGlobal: Dumping variables to file ‘/var/cache/icinga2/icinga2.vars’
    [2024-02-01 19:05:04 ] information/cli: Finished validating the configuration file(s).

Any help with completing this installation is appreciated.

what’s your version of icingaweb2?