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

forgetting snapshots on S3 show success even if failed #133

Open
deajan opened this issue Feb 21, 2025 · 1 comment
Open

forgetting snapshots on S3 show success even if failed #133

deajan opened this issue Feb 21, 2025 · 1 comment
Labels

Comments

@deajan
Copy link
Contributor

deajan commented Feb 21, 2025

Must see whether restic sends exit code 0 or if npbackup misses something here

Logs

/usr/local/bin/npbackup-cli/npbackup-cli -c /opt/cube/npbackup-cube.conf --housekeeping
2025-02-21 18:36:36,652 :: INFO :: npbackup 3.0.0-rc15-linux-cli-x64-public-3.12-c 2025021701 - Copyright (C) 2022-2025 NetInvent running as root
2025-02-21 18:36:36,673 :: INFO :: Loaded config F33F59E5 in /opt/cube/npbackup-cube.conf
2025-02-21 18:36:36,677 :: INFO :: No extra information for repos default found
2025-02-21 18:36:36,683 :: INFO :: Running housekeeping
2025-02-21 18:36:36,683 :: INFO :: Unlocking repo default
2025-02-21 18:36:38,212 :: INFO :: Repo successfully unlocked
2025-02-21 18:36:38,213 :: INFO :: Runner took 1.529702 seconds for unlock
2025-02-21 18:36:38,236 :: INFO :: Metrics pushed successfully.
2025-02-21 18:36:38,237 :: INFO :: Running metadata consistency check of repository default
using temporary cache in /tmp/restic-check-cache-2955330614
create exclusive lock for repository
load indexes
check all packs
check snapshots, trees and blobs
[0:26] 100.00%  113 / 113 snapshots
no errors were found
2025-02-21 18:37:18,533 :: INFO :: Repo checked successfully
2025-02-21 18:37:18,533 :: INFO :: Runner took 40.296659 seconds for check
2025-02-21 18:37:18,578 :: INFO :: Metrics pushed successfully.
2025-02-21 18:37:18,579 :: INFO :: Forgetting snapshots using retention policy: {'keep-last': 3, 'keep-within-hourly': '72h', 'keep-within-daily': '30d', 'keep-within-weekly': '28d', 'keep-within-monthly': '12m', 'keep-within-yearly': '3y'}
Applying Policy: keep 3 latest snapshots, hourly snapshots within 72h, daily snapshots within 30d, weekly snapshots within 28d, monthly snapshots within 12m, yearly snapshots within 3y
snapshots for (host [hyper01i.pyres.local], paths [/opt/cube/opnsense01p.pyres.local.xml, /var/lib/libvirt/images/opnsense01p.pyres.local-disk0.qcow2]):
keep 33 snapshots:
[...]
[...]
1 snapshots

Remove(<snapshot/b76de46d70>) failed: client.RemoveObject: Access Denied.
Remove(<snapshot/b76de46d70>) failed: client.RemoveObject: Access Denied.
Remove(<snapshot/f869ad71fb>) failed: client.RemoveObject: Access Denied.
Remove(<snapshot/f869ad71fb>) failed: client.RemoveObject: Access Denied.
Remove(<snapshot/52554a9757>) failed: client.RemoveObject: Access Denied.
unable to remove snapshot/b76de46d70e50af8d8b57f4e93172abbbfd64b56827022c80bff0e80dd3b405d from the repository
unable to remove snapshot/f869ad71fb22d80ab1135fc2feefab9fa25fe529be1912af7e26e7f8dfeb9d99 from the repository
unable to remove snapshot/52554a9757dc05e6cc7f1f860c7fb7c2900aac6f1e6a35f753c9011996ac409f from the repository
Remove(<snapshot/c28a8f8d3d>) failed: client.RemoveObject: Access Denied.
unable to remove snapshot/c28a8f8d3d2d97675f3e8f4bac3d1da06f4a43fbdad9f383d08810c6a589f1a2 from the repository
Remove(<snapshot/d47f98a002>) failed: client.RemoveObject: Access Denied.
unable to remove snapshot/d47f98a0028bb06790a1f37e97e1b15f89e557de3c2e023d517367456e9376e4 from the repository
[...]
Remove(<snapshot/6fc5dc3f53>) failed: client.RemoveObject: Access Denied.
unable to remove snapshot/6fc5dc3f53dd6a713fbed209ffa282bf9140c7778685179a0036942d88504aef from the repository
[0:00] 100.00%  78 / 78 files deleted
2025-02-21 18:37:20,367 :: INFO :: Successfully applied retention policy

@deajan deajan added bug Something isn't working waiting and removed bug Something isn't working labels Feb 21, 2025
@deajan
Copy link
Contributor Author

deajan commented Feb 21, 2025

Confirmed not to be a npbackup bug, see restic/restic#5254

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

No branches or pull requests

1 participant