Skip to content

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

Description

@leonardoce

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"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions