Cannot backup to SeaweedFS objectstore
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
研究方向
首先針對 SeaweedFS 重現 ObjectStore 和 Cluster 設定,然後檢查 WAL Archive request 中回報的 barman-cloud-wal-archive 失敗。完成標準是 WAL 封存能夠成功上傳至設定的目的地,且不會出現 exit status 4 錯誤。
由索引模型根據 Issue 內容生成。
描述
When creating ObjectStore CR that points to SeaweedFS s3 objectstore it starts uploading the wal archives, makes a .upload directory, but then I got the error:
{"level":"error","ts":"2025-12-16T10:46:23.075022375Z","msg":"Error while handling GRPC request","logging_pod":"postgresql-1","info":{"Server":{"Client":{"Client":{}},"InstanceName":"postgresql-1","SpoolDirectory":"/controller/wal-restore-spool","PGDataPath":"/var/lib/postgresql/data/pgdata","PGWALPath":"/var/lib/postgresql/data/pgdata/pg_wal"},"FullMethod":"/cnpgi.wal.v1.WAL/Archive"},"error":"unexpected failure invoking barman-cloud-wal-archive: exit status 4","stacktrace":"github.com/cloudnative-pg/machinery/pkg/log.(*logger).Error\n\t/go/pkg/mod/github.com/cloudnative-pg/[email protected]/pkg/log/log.go:125\ngithub.com/cloudnative-pg/cnpg-i-machinery/pkg/pluginhelper/http.(*Server).Start.logFailedRequestsUnaryServerInterceptor.func2\n\t/go/pkg/mod/github.com/cloudnative-pg/[email protected]/pkg/pluginhelper/http/grpc.go:53\ngoogle.golang.org/grpc.NewServer.chainUnaryServerInterceptors.chainUnaryInterceptors.func1\n\t/go/pkg/mod/google.golang.org/[email protected]/server.go:1234\ngithub.com/cloudnative-pg/cnpg-i/pkg/wal._WAL_Archive_Handler\n\t/go/pkg/mod/github.com/cloudnative-pg/[email protected]/pkg/wal/wal_grpc.pb.go:196\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/[email protected]/server.go:1431\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/[email protected]/server.go:1842\ngoogle.golang.org/grpc.(*Server).serveStreams.func2.1\n\t/go/pkg/mod/google.golang.org/[email protected]/server.go:1061"}
However, with awscli I can reach the bucket and can upload objects
Objectstore definition
`
apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
name: azure-backup-store
namespace: postgres
spec:
Base configuration for Barman Cloud to connect to Azure
configuration:
destinationPath: "s3://backups"
endpointURL: "http://seaweedfs-s3.seaweedfs.svc.cluster.local:8333"
s3Credentials:
accessKeyId:
name: aws-creds
key: ACCESS_KEY_ID
secretAccessKey:
name: aws-creds
key: ACCESS_SECRET_KEY
wal:
compression: gzip
data:
jobs: 2
`
Cluster definition:
`
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: postgresql
namespace: postgres
spec:
instances: 1
storage:
size: 2Gi
plugins:
- name: barman-cloud.cloudnative-pg.io
isWALArchiver: true
parameters:
barmanObjectName: azure-backup-store
serverName: postgresql
bootstrap:
initdb:
database: authentik
owner: authentik
secret:
name: authentik-secret
enableSuperuserAccess: true
superuserSecret:
name: pgsuperuser
`
I also tried other options, and all of them worked except for the Barman Cloud Plugin, which drops an error.
- 主要語言
- Go
- 星號
- 205
- 分支
- 87
- 平均合併
- 1 天 18 小時
- 30 天內合併 PR
- 36
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
cloudnative-pg/plugin-barman-cloud 的其他 Issue
-
docs: troubleshooting does not cover "cannot proceed with the backup as the cluster has no backup section"可能已有人在做 @fjvbn2003 於 17 天前認領。 未關閉
難度 1/5 1-3 小時 新手友好度 85/100
cloudnative-pg/plugin-barman-cloud#1165 ·
維護者通常 1 天內回覆
-
Wrong `ObjectStore` key logged when the backup object store can't be retrieved in the instance sidecar可能已有人在做 @BoxBoxJason 於 20 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
cloudnative-pg/plugin-barman-cloud#1142 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
cloudnative-pg/plugin-barman-cloud#1117 · 1 個 reaction ·
維護者通常 1 天內回覆
-
data.compression rejects zstd although barman-cloud-backup supports it可能已有人在做 @dgsardina 於 12 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 86/100
cloudnative-pg/plugin-barman-cloud#1104 · 4 個 reaction ·
維護者通常 1 天內回覆
-
Add RBAC aggregation labels to ObjectStore editor/viewer ClusterRoles可能已有人在做 @stefanpeknik 於 46 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 82/100
cloudnative-pg/plugin-barman-cloud#1102 ·
維護者通常 1 天內回覆
查看 cloudnative-pg/plugin-barman-cloud 的全部 Issue
相似的 Issue
-
date_time, url_encode, html_escape, to_unix_time, contains_all and contains_any panic when called without arguments可能已有人在做 @antcybersec 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
projectdiscovery/dsl#372 ·
維護者通常 1 天內回覆
-
blocked-needs-validation
難度 2/5 1-3 小時 新手友好度 62/100
projectcapsule/capsule#2265 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
JuliusBrussee/caveman#1449 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 72/100
維護者通常 1 天內回覆
-
bot-found bug priority: P3
難度 2/5 1-3 小時 新手友好度 72/100
madenvel/KalinkaPlayer#498 ·