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
=====