Hi
I am using encryption and below option to take backup and stream to cloud bucket directly
XTRABACKUP_OPTIONS="--backup --stream=xbstream --read-buffer-size=1G --parallel=4 --compress --compress-threads=4 --slave-info --no-lock --safe-slave-backup --extra-lsndir=${target_dir} --target-dir=${target_dir} ${extra_backup_option}"
When I trying to run backup, using below option , it is failing
/backup/xtrabackup_gcs/fullbackup.sh "db-server-XX" "--host=127.0.0.1 --encrypt=AES256 --encrypt-key-file=/backup/xtrabackup_gcs/keyfile --encrypt-=2"eads
It is failing with below error in log
2024-09-30T00:01:10.194649-07:00 2 [Note] [MY-011825] [Xtrabackup] Done: Compressing, encrypting and streaming ./percona/stock_log.ibd
encryption: unable to set libgcrypt cipher key - User defined source 1 : Invalid key length
Fatal error: gcry_cipher_close: already closed/invalid handle
2024-09-30T07:01:10Z UTC - mysqld got signal 6 ;
Most likely, you have hit a bug, but this error can also be caused by malfunctioning hardware.
BuildID[sha1]=
Thread pointer: 0x7fb1c80008c0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7fb1ef7fd8b0 thread_stack 0x100000
2024-09-30T00:01:10.201514-07:00 4 [Note] [MY-011825] [Xtrabackup] Done: Compressing, encrypting and streaming ./recover_data/orXX_XXX_XX.ibd
encryption: unable to set libgcrypt cipher key - User defined source 1 : Invalid key length
Fatal error: gcry_cipher_close: already closed/invalid handle
I used below to generate the keyfile, please suggest on further option to overcome
openssl rand -base64 32 | tr -d '\n' > /backup/xtrabackup_gcs/keyfile