Postgres archive_command has no timeout; a hung wal-push stops WAL archiving
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 55/100
Piste de recherche
Find the onebox-wal-g wrapper in the repo's backup directory and wrap the wal-push call with timeout. Then read the Go sources for ob backup status and ob doctor to add reporting of last_archived_time age and .ready backlog. Done when stalled uploads fail fast and the CLI shows archive lag.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem
The Postgres archive_command Onebox installs (/opt/onebox/backup/onebox-wal-g wal-push %p) has no time limit. When one upload stalls, archiving stops for good: Postgres waits on that command and retries the same segment, and WAL accumulates in pg_wal until the disk fills. The off-site recovery point falls behind for the whole stall, so the backup's 5-minute target is silently missed.
What happened
Goal production, 2026-10-24. A catalog refresh wrote WAL faster than the archiver uploaded it to Hetzner object storage (hel1), and pg_wal grew to 37 GB with about 2,250 segments marked .ready. While that backlog drained, wal-g wal-push hung twice:
- at 23:07 UTC on
000000020000005B000000DF, for 7 minutes; - at 23:47 UTC on
000000020000006200000067, for more than 6 minutes; - in each case
pg_stat_archiver.last_archived_timestopped advancing whilefailed_countstayed 0, and thewal-gprocess produced no further log output; - killing the
wal-gprocess let the archiver retry the segment, and uploads resumed straight away.
Postgres shares the host disk with the application, so an unnoticed hang ends with the database unable to write. Because failed_count stays 0, a check on archive failures does not catch it.
Proposal
- Bound each
wal-pushin the wrapper, for example withtimeoutor wal-g's own upload timeout, so a stalled upload fails and Postgres retries it. - Have
ob backup statusandob doctorreport archive lag: the age oflast_archived_timeand the.readybacklog, not only failures.
Related
ob plan also refuses a live release whose onebox.snapshot.yml is still onebox.run/v1alpha1 ("snapshot unusable: schema_identity_unsupported"). That blocks the first deploy after a project moves to v1alpha2. Goal worked around it by editing the snapshot's apiVersion line on the host. The 2026-10-04 decision record says the two schemas differ only by identity when there is no execution block, so loading such a snapshot as v1alpha2 would remove the need for that edit.
- Langage dominant
- Go
- Étoiles
- 4
- Forks
- 0
- Merge moyen
- 36 min
- PR mergées (30 j)
- 13
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de labstack/onebox
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de labstack/onebox
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
tomasz-tomczyk/crit#1159 ·
Les mainteneurs répondent en général sous 1 jour
-
SelectOneHealthyInstance panics when instance weights are fractional (e.g. 0.5)Peut-être pris @Ajax-1 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
nacos-group/nacos-sdk-go#929 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
google/osv-scanner#3270 ·
Les mainteneurs répondent en général sous 1 jour
-
Batch JSON validation reports the wrong input indexPeut-être pris @Dazhou-del l’a pris aujourd’hui. Ouvertetype/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
gin-gonic/gin#4928 · 1 commentaire ·
Les mainteneurs répondent en général sous 6 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour