Error "A valid timezone that matches Mysql and the system"

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
sendil
Posts: 1
Joined: Mon Apr 19, 2021 1:57 am

Error "A valid timezone that matches Mysql and the system"

Post by sendil »

I get the same error upon installing Cacti v1.2.16 on both Ubuntu 20.04.02 LTS as well as Centos 8 Stream .

date.timezone Error "A valid timezone that matches Mysql and the system

Checked the date and time Configuration on both mysql, PHP and system and they are OK .

Is it a bug if not help me on this.

Regards,
Sendil kumar
Attachments
Screenshot from 2021-04-20 10-53-11.png
Screenshot from 2021-04-20 10-53-11.png (231.41 KiB) Viewed 15472 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Error "A valid timezone that matches Mysql and the system"

Post by netniV »

Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Error "A valid timezone that matches Mysql and the system"

Post by jackouille »

Hi,

I perform a new install of Cacti on Rocky 8 and I'm facing the same issue despite all values seems to be right:
MariaDB [(none)]> SELECT @@GLOBAL.time_zone, @@SESSION.time_zone;
+--------------------+---------------------+
| @@GLOBAL.time_zone | @@SESSION.time_zone |
+--------------------+---------------------+
| Europe/Zurich | Europe/Zurich |
+--------------------+---------------------+
1 row in set (0.000 sec)

MariaDB [(none)]> quit;
Bye
[root@cacti1 ~]# timedatectl
Local time: Tue 2022-07-19 22:30:25 CEST
Universal time: Tue 2022-07-19 20:30:25 UTC
RTC time: Tue 2022-07-19 20:30:25
Time zone: Europe/Zurich (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
[root@cacti1 ~]# grep ezone /etc/php.ini
; Defines the default timezone used by the date functions
; https://php.net/date.timezone
date.timezone = Europe/Zurich
;date.timezone = CET

PHP Recommendations
version 8.1.8 >= 5.4.0 Passed PHP 5.4.0 is the mimimum version
memory_limit 2048M >= 400M Passed A minimum of 400M memory limit
max_execution_time 60 >= 60 Passed A minimum of 60 m execution time
date.timezone >= Error A valid timezone that matches MySQL and the system

And of course server was rebooted, any hint ?
jackouille
Cacti User
Posts: 71
Joined: Thu Apr 26, 2012 7:41 am

Re: Error "A valid timezone that matches Mysql and the system"

Post by jackouille »

PHP version 8.1.8
MariaDB version 10.3.32.2
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Error "A valid timezone that matches Mysql and the system"

Post by TheWitness »

Don't poach others topics. Start a new one. Provide complete information. Versions etc.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest