Closed aujasm1 closed 5 months ago
Hi,
Seems that barman-cloud-backup
is waiting for pg_backup_stop
to complete on the pg server... If the call to the function pg_backup_stop
isn't complete, the backup process is stuck and is unable to complete the multipart upload, and this is why you are not seeing artefacts on Azure.
It is difficult on our side to diagnose why pg_backup_stop
is stuck or is so slow to complete.
You said you already performed some backups before getting to this situation, did you change anything in the server configuration?
Actually I think I may have changed the archive_command between backups such that it used barman-cloud-wal-backup instead of rsync. If there was a problem with wal shipping would that stop a full backup from being taken? Is there any way of checking if pg_backup_stop is running/needs to run still and what it might be waiting for?
I fixed the problem with my archive_command - the barman-cloud-wal-backup URL was missing the container. After fixing this the WALs all shipped to Azure and PG caught up. Best of all, it seems to have now enabled the barman-cloud-backup to complete also. Thanks heaps for your quick reply.
I was about to suggest checking if archive_command
was failing, as is usually a common cause for pg_backup_stop
failure to complete... but i see that you got it yourself 😄
Happy we got this sorted! Closing this
Hi Folks, I'm running:
Ubuntu 20.04 + barman-cli-cloud 3.10 + pg 13 and attempting to backup a relatively small <200mb DB to Azure Blob storage. I've successfully run 2 backups already with the same command but I can't seem to get any more to run successfully. Full disclosure......I used pgbench to inject data (to generate WALs) between backup 2 and 3 - so the DB grew a little, but not much really. Here's the command I've been running:
barman-cloud-backup -vv --immediate-checkpoint --cloud-provider=azure-blob-storage https://debackupsdevauseast.blob.core.windows.net/devops1 devops1
The debug output reveals: ManagedIdentityCredential.get_token succeeded Starting backup '20240415T115850'- Uploading 'devops1/base/20240415T115850/data.tar', part '1' (worker 0) It then appears to successfully process requests to upload files and folders via parts 2 through 80 where it then fails consistently at part 81 (which I'm starting to think is the end of the backup?).
Finally, it hangs.....with the tail of debug output looking like: