New in Icinga2 and with problem

Hey, guys.
this is the first time i have tried to install ICINGA2 and i followed all the steps in the link below, everything worked fine in the web2 part settings, but when i went to the login page i got a fatal error message (log below)
Can anyone help me?

website I followed: https://linoxide.com/how-to-install-icinga2-on-ubuntu/

Message:
Fatal error : Uncaught ErrorException: date_default_timezone_get(): Invalid date.timezone value ‘Africa/Kolkata’, we selected the timezone ‘UTC’ for now. in /usr/share/php/Icinga/Data/Db/DbConnection.php:307 Stack trace: #0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application{closure}() #1 /usr/share/php/Icinga/Data/Db/DbConnection.php(307): date_default_timezone_get() #2 /usr/share/php/Icinga/Data/Db/DbConnection.php(217): Icinga\Data\Db\DbConnection->defaultTimezoneOffset() #3 /usr/share/php/Icinga/Data/Db/DbConnection.php(78): Icinga\Data\Db\DbConnection->connect() #4 /usr/share/php/Icinga/Data/ResourceFactory.php(103): Icinga\Data\Db\DbConnection->__construct() #5 /usr/share/php/Icinga/Authentication/User/UserBackend.php(231): Icinga\Data\ResourceFactory::createResource() #6 /usr/share/php/Icinga/Authentication/AuthChain.php(246): Icinga\Authentication\User\UserBackend::create() #7 /usr/share/php/Icinga/Authentication/Auth.php(242): Icinga\Authentication\AuthChain->valid() #8 /usr/share/php/Icinga/Authentication/Auth.php(94): Icinga\Authentication\Auth->authExternal() #9 /usr/share/php/Icinga/Application/Web.php(337): Icinga\Authentication\Auth->isAuthenticated() #10 /usr/share/php/Icinga/Application/Web.php(103): Icinga\Application\Web->setupUser() #11 /usr/share/php/Icinga/Application/ApplicationBootstrap.php(416): Icinga\Application\Web->bootstrap() #12 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\ApplicationBootstrap::start() #13 /usr/share/icingaweb2/public/index.php(4): require_once(’…’) #14 {main} thrown in /usr/share/php/Icinga/Data/Db/DbConnection.php on line 307

=============

root@root:/home/secops# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.1-1)

Copyright (c) 2012-2021 Icinga GmbH
License GPLv2+: GNU GPL version 2 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
Platform: Ubuntu
Platform version: 20.04.3 LTS (Focal Fossa)
Kernel: Linux
Kernel version: 5.4.0-42-generic
Architecture: x86_64

Build information:
Compiler: GNU 9.3.0
Build host: runner-hh8q3bz2-project-508-concurrent-0
OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020

Application information:

General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2

Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var

Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid

======

root@root:/home/secops# php --version
PHP 8.0.12 (cli) (built: Oct 22 2021 12:34:48) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.12, Copyright (c) Zend Technologies
with Zend OPcache v8.0.12, Copyright (c), by Zend Technologies

====

root@root:/home/secops# uname -a
Linux root 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

=====

Is that the timezone you want or did you just copy it from that guide? My CentOS system shows Kolkata under Asia, not Africa. PHP has it under Asia as well.

i just copied (lol), but I inset a comment (:wink: on this line under the /etc/php/8.0/apache2/php.ini

Try “grep -r Africa /usr/share/zoneinfo/” and identify a city which is in the
correct timezone for your location, and use that name instead of
“Africa/Kolkata”.

You can only select from cities in the list - you can’t just put in the city
you are in or nearest to, and hope that the system knows where that is :slight_smile:

Antony.

I already chenged to America/Manaus.
I have to do something more?

===

root@root:/home/secops# more /etc/php/8.0/apache2/php.ini
[PHP]

date.timezone = America/Manaus
cgi.fix_pathinfo=0
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP’s initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP’s behavior.

; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:

Thank you guys!
Solded the problem…
i change the NTP on my ubuntu and the same ntp as php.ini and reloaded all the services.

You guys rockes!!!

BUT… unfortunately, into the dashboard / system / health we have this message:

Icinga by monitoring is UNKNOWN(S)
icinga is currently not up or running

Hello there and welcome to the community forum!
We always love to see posts formatted according to the formatting guidelines which can help you make your posts more readable, which in turn will make it easier for others to answer :slight_smile:

And if you find an answer to your issue, mark an answer as the solution, to resolve your topic.