Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#1,113 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, go, kubernetes, postgresql
Lĩnh vực
backend, cloud, databases, devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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"}
Ngôn ngữ chính
Go
Star
198
Fork
81
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudnative-pg/plugin-barman-cloud

Tất cả issue của cloudnative-pg/plugin-barman-cloud

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.