Hello Guys,
I've set Zabbix HA with 2 nodes and MySQL InnoDB Cluster with the Router in the same servers with Zabbix-Server.
From "Zabbix Server/MySQL Router" I can connect to the dababase from the shell using mysql client both directly or using the Router "127.0.0.1:6446"
#################
root@zabserver2:~# mysql -uadmin -p -h127.0.0.1 -P 6446
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 50024
Server version: 8.0.32-cluster MySQL Cluster Community Server - GPL
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+-------------------------------+
| Database |
+-------------------------------+
| information_schema |
| mysql |
| mysql_innodb_cluster_metadata |
| performance_schema |
| sys |
| zabbix |
+-------------------------------+
6 rows in set (0.00 sec)
mysql>
###################
Zabbix connect to the database if I use any of the MySQL Servers node IP directly not complaining about RSA key, but if I set the MySQL Router "127.0.0.1" and port "6446" in zabbix_server.conf then I get the error bellow when I try to start Zabbix-Server:
7243:20230315:153333.460 Starting Zabbix Server. Zabbix 6.4.0 (revision 5b2736b6027).
7243:20230315:153333.460 ****** Enabled features ******
7243:20230315:153333.460 SNMP monitoring: YES
7243:20230315:153333.460 IPMI monitoring: YES
7243:20230315:153333.460 Web monitoring: YES
7243:20230315:153333.460 VMware monitoring: YES
7243:20230315:153333.460 SMTP authentication: YES
7243:20230315:153333.460 ODBC: YES
7243:20230315:153333.460 SSH support: YES
7243:20230315:153333.460 IPv6 support: YES
7243:20230315:153333.460 TLS support: YES
7243:20230315:153333.460 using configuration file: /etc/zabbix/zabbix_server.conf
7243:20230315:153333.463 [Z3001] connection to database 'zabbix' failed: [2061] Couldn't read RSA public key from server
7243:20230315:153333.463 Cannot connect to the database. Exiting...ā
Any Idea on how can I fix this?
Thank you!ā
I've set Zabbix HA with 2 nodes and MySQL InnoDB Cluster with the Router in the same servers with Zabbix-Server.
From "Zabbix Server/MySQL Router" I can connect to the dababase from the shell using mysql client both directly or using the Router "127.0.0.1:6446"
#################
root@zabserver2:~# mysql -uadmin -p -h127.0.0.1 -P 6446
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 50024
Server version: 8.0.32-cluster MySQL Cluster Community Server - GPL
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+-------------------------------+
| Database |
+-------------------------------+
| information_schema |
| mysql |
| mysql_innodb_cluster_metadata |
| performance_schema |
| sys |
| zabbix |
+-------------------------------+
6 rows in set (0.00 sec)
mysql>
###################
Zabbix connect to the database if I use any of the MySQL Servers node IP directly not complaining about RSA key, but if I set the MySQL Router "127.0.0.1" and port "6446" in zabbix_server.conf then I get the error bellow when I try to start Zabbix-Server:
7243:20230315:153333.460 Starting Zabbix Server. Zabbix 6.4.0 (revision 5b2736b6027).
7243:20230315:153333.460 ****** Enabled features ******
7243:20230315:153333.460 SNMP monitoring: YES
7243:20230315:153333.460 IPMI monitoring: YES
7243:20230315:153333.460 Web monitoring: YES
7243:20230315:153333.460 VMware monitoring: YES
7243:20230315:153333.460 SMTP authentication: YES
7243:20230315:153333.460 ODBC: YES
7243:20230315:153333.460 SSH support: YES
7243:20230315:153333.460 IPv6 support: YES
7243:20230315:153333.460 TLS support: YES
7243:20230315:153333.460 using configuration file: /etc/zabbix/zabbix_server.conf
7243:20230315:153333.463 [Z3001] connection to database 'zabbix' failed: [2061] Couldn't read RSA public key from server
7243:20230315:153333.463 Cannot connect to the database. Exiting...ā
Any Idea on how can I fix this?
Thank you!ā
Comment