Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore failure on Hetzner Objects Storage - S3 #1063

Open
psavva opened this issue Jan 28, 2025 · 0 comments
Open

Restore failure on Hetzner Objects Storage - S3 #1063

psavva opened this issue Jan 28, 2025 · 0 comments

Comments

@psavva
Copy link

psavva commented Jan 28, 2025

  • When trying to restore from Hetzner S3, I'm getting the following error:
{
  "level": "info",
  "ts": "2025-01-22T07:40:38.575441992Z",
  "logger": "barman-cloud-restore",
  "msg": "2025-01-22 07:40:38,573 [21] ERROR: Barman cloud restore exception: 10445368 read, but total bytes expected is 1994999143.",
  "pipe": "stderr",
  "logging_pod": "racefeed-dev-db-1-full-recovery"
}
{
  "level": "error",
  "ts": "2025-01-22T07:40:38.784650841Z",
  "msg": "Can't restore backup",
  "logging_pod": "racefeed-dev-db-1-full-recovery",
  "error": "General error (exit code 4)",
  "stacktrace": "github.com/cloudnative-pg/machinery/pkg/log.(*logger).Error\n\tpkg/mod/github.com/cloudnative-pg/[email protected]/pkg/log/log.go:125\ngithub.com/cloudnative-pg/cloudnative-pg/pkg/management/postgres.InitInfo.restoreDataDir\n\tpkg/management/postgres/restore.go:461\ngithub.com/cloudnative-pg/cloudnative-pg/pkg/management/postgres.InitInfo.Restore\n\tpkg/management/postgres/restore.go:297\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/instance/restore.restoreSubCommand\n\tinternal/cmd/manager/instance/restore/restore.go:75\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/instance/restore.(*restoreRunnable).Start\n\tinternal/cmd/manager/instance/restore/restore.go:59\nsigs.k8s.io/controller-runtime/pkg/manager.(*runnableGroup).reconcile.func1\n\tpkg/mod/sigs.k8s.io/[email protected]/pkg/manager/runnable_group.go:226"
}
{
  "level": "error",
  "ts": "2025-01-22T07:40:38.785313804Z",
  "msg": "Error while restoring a backup",
  "logging_pod": "racefeed-dev-db-1-full-recovery",
  "error": "General error (exit code 4)",
  "stacktrace": "github.com/cloudnative-pg/machinery/pkg/log.(*logger).Error\n\tpkg/mod/github.com/cloudnative-pg/[email protected]/pkg/log/log.go:125\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/instance/restore.restoreSubCommand\n\tinternal/cmd/manager/instance/restore/restore.go:76\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/instance/restore.(*restoreRunnable).Start\n\tinternal/cmd/manager/instance/restore/restore.go:59\nsigs.k8s.io/controller-runtime/pkg/manager.(*runnableGroup).reconcile.func1\n\tpkg/mod/sigs.k8s.io/[email protected]/pkg/manager/runnable_group.go:226"
}

Please see full history reported here we I gave this in CNPG using barman.

cloudnative-pg/cloudnative-pg#6645

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant