Hey awesome community,
I am facing a strange issue with xtrabackup and xbcloud while trying to backup my DB to GCS. It is worth noting that this worked fine for several months until some days ago. Using this command:
xtrabackup --backup --stream=xbstream --compress \
--compress-threads=5 --extra-lsndir=/tmp \
--target-dir=/tmp --parallel=5 \
| xbcloud put --storage=google \
--google-endpoint='storage.googleapis.com' \
--google-access-key=GOOGLEACCESSKEY \
--google-secret-key=GOOGLESECRETKEY \
--google-bucket=BUCKETNAME \
--parallel=5 TEST/$HOSTNAME-full-backup
The command above exits after a while, with HTTP/2 error messages like:
210224 22:10:19 xbcloud: Failed to upload object. Error: Error in the HTTP2 framing layer
xtrabackup: Error writing file 'UNOPENED' (Errcode: 32 - Broken pipe)
xb_stream_write_data() failed.
compress: write to the destination stream failed.
xtrabackup: Error writing file 'UNOPENED' (Errcode: 32 - Broken pipe)
[17] xtrabackup: Error: xtrabackup_copy_datafile() failed.
[17] xtrabackup: Error: failed to copy datafile.
- xtrabackup version
xtrabackup version 2.4.20 based on MySQL server 5.7.26 Linux (x86_64) (revision id: c8b4056)
From troubleshooting up to now I believe the issue is somewhere between xbcloud and GCS, but I’m not sure what else to inspect. Does anybody have a clue what’s happening here?
UPDATE: Apparently in my case it’s a bug with GCS, I tried the same exact command with the S3 endpoint and it seems to have uploaded successfully.