mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-04-25 05:35:57 +03:00
[GH-ISSUE #165] Backups to Hetzner S3 fail with 504 Timeout and hang indefinitely (blocking Autovacuum) #134
Labels
No labels
bug
confirmed next step
duplicate
enhancement
help wanted
in progress
in progress
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pgbackweb#134
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maltesa on GitHub (Dec 28, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/165
Describe the bug
I am using
pgbackwebto back up a PostgreSQL 15 database to Hetzner S3 Object Storage. The backup process fails during the upload phase with504 Gateway Timeoutand400 Bad Requesterrors.The db connection is not closed after these errors. It remains active, holding an open transaction slot on the PostgreSQL database. This prevented our Postgres Autovacuum from cleaning up dead tuples until we restarted pgbackweb manually.
To Reproduce
nbg1, Endpoint:https://nbg1.your-objectstorage.com).pg_stat_activityon the database; theCOPY ... TO stdoutquery remains active indefinitely (we observed one running for 17 days).Expected behavior
If the S3 upload fails,
pgbackwebshould:This bugfix/issue-91-idle-connections seems like a fix for the connection issue. However, recently still all our backups fail with the logs below.
Logs
@coderabbitai[bot] commented on GitHub (Dec 28, 2025):
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Similar Issues
Possible Duplicates
Related Issues
👤 Suggested Assignees
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!