Hi,
I have restored and bootstrapped the first node for my Percona XtraDB Cluster (8.0). However as I try to add the second node to the cluster I get the following error:
..Waiting for SST streaming to complete!
2023-04-15T17:36:03.153832+03:00 0 [Note] [MY-000000] [Galera] (d6fa3e5e-8c53, 'ssl://0.0.0.0:4567') turning message relay requesting off
2023-04-15T17:36:12.942347+03:00 0 [ERROR] [MY-000000] [WSREP-SST] ******************* FATAL ERROR **********************
2023-04-15T17:36:12.942382+03:00 0 [ERROR] [MY-000000] [WSREP-SST] xtrabackup_checkpoints missing. xtrabackup/SST failed on DONOR. Check DONOR log
2023-04-15T17:36:12.942401+03:00 0 [ERROR] [MY-000000] [WSREP-SST] Line 2417
2023-04-15T17:36:12.942434+03:00 0 [ERROR] [MY-000000] [WSREP-SST] ******************************************************
2023-04-15T17:36:12.942534+03:00 0 [ERROR] [MY-000000] [WSREP-SST] Cleanup after exit with status:2
2023-04-15T17:36:12.956064+03:00 0 [Warning] [MY-000000] [Galera] 0.0 (crdltstpdb11): State transfer to 1.0 (crdltstpdb21) failed: -22 (Invalid argument)
2023-04-15T17:36:12.956085+03:00 0 [ERROR] [MY-000000] [Galera] gcs/src/gcs_group.cpp:gcs_group_handle_join_msg():1216: Will never receive state. Need to abort.
2023-04-15T17:36:12.956106+03:00 0 [Note] [MY-000000] [Galera] gcomm: terminating thread
2023-04-15T17:36:12.956124+03:00 0 [Note] [MY-000000] [Galera] gcomm: joining thread
2023-04-15T17:36:12.956215+03:00 0 [Note] [MY-000000] [Galera] gcomm: closing backend
2023-04-15T17:36:13.225295+03:00 0 [ERROR] [MY-000000] [WSREP] Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '10.29.128.11' --datadir '/var/lib/mysql/' --basedir '/usr/' --plugindir '/usr/lib64/mysql/plugin/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --parent '15285' --mysqld-version '8.0.31-23.2' '' : 2 (No such file or directory)
2023-04-15T17:36:13.225492+03:00 0 [ERROR] [MY-000000] [WSREP] Failed to read uuid:seqno from joiner script.
2023-04-15T17:36:13.225510+03:00 0 [ERROR] [MY-000000] [WSREP] SST script aborted with error 2 (No such file or directory)
2023-04-15T17:36:13.225577+03:00 3 [Note] [MY-000000] [Galera] Processing SST received
on the donor node I can see the following error:
2023-04-15T17:36:12.931827+03:00 0 [Note] [MY-011825] [Xtrabackup] recognized server arguments: --open_files_limit=2000000 --log_bin=crdltstpdb11-bin --log-bin-index=crdltstpdb11-bin.index --defaults_group=mysqld
2023-04-15T17:36:12.932049+03:00 0 [Note] [MY-011825] [Xtrabackup] recognized client arguments: --target-dir=/var/backup/mysql/xtrabackup/ --xtrabackup-plugin-dir=/usr/lib64/xtrabackup/plugin/ --parallel=4 --compress --compress-threads=4 --check-privileges=1 --galera-info=1 --user=backup --password=* --host=127.0.0.1 --ssl-ca=/etc/mysql/certificates/client-cert.pem --ssl-cert=/etc/mysql/certificates/client-cert.pem --ssl-key=/etc/mysql/certificates/client-key.pem --port=3306 --no-version-check=1 --parallel=4 --user=mysql.pxc.sst.user --password=* --socket=/var/lib/mysql/mysql.sock --lock-ddl=1 --backup=1 --galera-info=1 --transition-key=* --stream=xbstream --xtrabackup-plugin-dir=/usr/bin/pxc_extra/pxb-8.0/lib/plugin --target-dir=/tmp/pxc_sst_51A1/donor_xb_aXzI
/usr/bin/pxc_extra/pxb-8.0/bin/xtrabackup version 8.0.32-26 based on MySQL server 8.0.32 Linux (x86_64) (revision id: 34cf2908)
2023-04-15T17:36:12.932080+03:00 0 [Note] [MY-011825] [Xtrabackup] Connecting to MySQL server host: 127.0.0.1, user: mysql.pxc.sst.user, password: set, port: 3306, socket: /var/lib/mysql/mysql.sock
2023-04-15T17:36:12.937894+03:00 0 [ERROR] [MY-011825] [Xtrabackup] Failed to connect to MySQL server: Access denied for user 'mysql.pxc.sst.user'@'127.0.0.1' (using password: YES)
my wsrep settings:
wsrep_provider=/usr/lib64/galera4/libgalera_smm.so
wsrep_provider_options="socket.ssl=yes;socket.ssl_ca=/etc/mysql/certificates/server-cert.pem;socket.ssl_cert=/etc/mysql/certificates/server-cert.pem;socket.ssl_key=/etc/mysql/certificates/server-key.pem;socket.ssl_cipher=ECDHE-RSA-AES256-GCM-SHA384;base_dir=/var/lib/mysql"
wsrep_cluster_name=crdltstpdb
wsrep_cluster_address=gcomm://10.29.128.10:4567,10.29.128.11:4567
wsrep_node_name=crdltstpdb11
wsrep_node_address=10.29.128.10
wsrep_sst_method=xtrabackup-v2
wsrep_applier_threads=8
wsrep_log_conflicts
worth noting is that I was using the same cluster config before I took the XtraBackup (which I am now restoring) and the cluster was running fine and in sync. Note that I have recently upgraded this cluster from 5.7 → 8.0 so some settings might be out of date for the new cluster version