I can bootstrap the first node and that is functioning as it should. However, for some reason I cannot get nodes 2 and 3 to start. Here is the contents of the mysqld.cnf file on Ubuntu 22.04.1 LTS (Jammy):
[client]
socket=/var/run/mysqld/mysqld.sock
[mysqld]
server-id=2
datadir=/var/lib/mysql
socket=/var/run/mysqld/mysqld.sock
log-error=/var/log/mysql/error.log
pid-file=/var/run/mysqld/mysqld.pid
binlog_expire_logs_seconds=604800
wsrep_provider=/usr/lib/galera4/libgalera_smm.so
wsrep_cluster_address=gcomm://192.168.56.250,192.168.56.251,192.168.56.249
binlog_format=ROW
wsrep_slave_threads=8
wsrep_log_conflicts
innodb_autoinc_lock_mode=2
wsrep_node_address=192.168.56.250
wsrep_cluster_name=nextcloud
wsrep_node_name=nextcloud2
pxc_strict_mode=ENFORCING
wsrep_sst_method=xtrabackup-v2
Obviously node 3 has itâs IP Address and hostname with the correct cluster name.
Here is the output of systemctl status mysql.service:
mysql.service - Percona XtraDB Cluster
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-12-30 16:33:40 UTC; 13min ago
Process: 5356 ExecStartPre=/usr/bin/mysql-systemd start-pre (code=exited, status=0/SUCCESS)
Process: 5393 ExecStartPre=/usr/bin/mysql-systemd check-grastate (code=exited, status=0/SUCCESS)
Process: 5422 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 5424 ExecStartPre=/bin/sh -c VAR=bash /usr/bin/mysql-systemd galera-recovery
; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
Process: 5514 ExecStart=/usr/sbin/mysqld $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
Process: 5517 ExecStopPost=/usr/bin/mysql-systemd stop-post (code=exited, status=0/SUCCESS)
Main PID: 5514 (code=exited, status=1/FAILURE)
Status: âServer shutdown completeâ
CPU: 1.098s
Dec 30 16:33:03 nextcloud2 systemd[1]: Starting Percona XtraDB ClusterâŠ
Dec 30 16:33:40 nextcloud2 systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Dec 30 16:33:40 nextcloud2 mysql-systemd[5517]: WARNING: mysql pid file /var/run/mysqld/mysqld.pid empty or not readable
Dec 30 16:33:40 nextcloud2 mysql-systemd[5517]: WARNING: mysql may be already dead
Dec 30 16:33:40 nextcloud2 systemd[1]: mysql.service: Failed with result âexit-codeâ.
Dec 30 16:33:40 nextcloud2 systemd[1]: Failed to start Percona XtraDB Cluster.
Dec 30 16:33:40 nextcloud2 systemd[1]: mysql.service: Consumed 1.098s CPU time.
If there is any more information required then please let me know.
I have tried many different options including re-installing and rebuilding 3 x new VMs but I keep getting the same issue where the bootstrap node works correctly but nodes 2 and 3 will not even start.
Any help appreciated.
Many thanks