Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

wal-restore fails with "Cannot create /var/tmp/walrestore directory: Read-only file system"

Aperta
#1,113 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker, go, kubernetes, postgresql

Direzione di ricerca

The issue is in the plugin-barman-cloud initContainer's WAL restore process. Look at the barman-cloud-wal-restore command's handling of the /var/tmp/walrestore directory. Check the container's filesystem permissions and mount points in the plugin's Kubernetes manifest or Docker configuration. Verify the restore_command setup in the PostgreSQL configuration. Success is when the directory can be created or an alternative writable location is used.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The plugin-barman-cloud native sidecar (initContainer: plugin-barman-cloud)
fails some WAL restore of an existing object with:

barman-cloud-wal-restore: ERROR: Cannot create /var/tmp/walrestore directory: Errno 30 Read-only file system: '/var/tmp/walrestore'
connectivity failure while executing barman-cloud-wal-restore, retrying: connectivity failure

PostgreSQL's restore_command therefore does not succeeds.

Environment
  • plugin-barman-cloud: v0.15.0 (stock manifest)
  • CNPG (operator + API): 1.30.0
  • Kubernetes: v1.37.0 on Kind (v0.33.0), single-node CI cluster
  • Object store: MinIO (S3-compatible), one bucket per CNPG cluster,
    referenced via ObjectStore + serverName
  • Topology: 3 single-instance CNPG replica clusters recovering purely
    through the plugin (no TCP streaming). No backup/schedule involved in
    the failure — this is steady-state WAL restore on a running replica.

Excerpt (one of 33 identical cycles; ...007 fails, the alternating
00000002.history request returns a clean "does not exist"):

{"msg":"Restoring WAL file","objectStore":"e2e-switchover-archiving-dc-a","serverName":"cluster-dc-a","walName":"000000010000000000000007"}
{"logger":"barman-cloud-wal-restore","msg":"... ERROR: Cannot create /var/tmp/walrestore directory: Errno 30 Read-only file system: '/var/tmp/walrestore'"}
{"msg":"WAL file not found in the recovery object store",...,"error":"connectivity failure while executing barman-cloud-wal-restore, retrying: connectivity failure"}
Lingua principale
Go
Stelle
192
Fork
75
Merge medio
1g 7h
PR unite (30g)
17

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudnative-pg/plugin-barman-cloud

Tutte le issue di cloudnative-pg/plugin-barman-cloud

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.