Unable to remove S3 datastore

ajdthomson

New Member
Dec 20, 2024
3
0
1
Hi, I was experimenting with S3 datastores on PBS 4.0.14. At the point I tried to remove by datastore from the webui it has gone into maintenance mode. I also attempted at the commandline:
Code:
proxmox-backup-manager datastore remove <name>

and I get an error:
Code:
TASK ERROR: failed to delete in-use marker: unexpected status code 404 Not Found

Guessing the 404 is because the s3 endpoint is no longer accessible but how can I get this cleaned up?

Thanks
 
Hi,
did you manually delete contents from the s3 bucket before this happened? The in-use-marker is expected to be present.

Are the contents already deleted from your s3 bucket? In that case you can just delete the datastore without the delete all data flag, (although you might have to clean up the cache folder manually via cli in that case).

Guessing the 404 is because the s3 endpoint is no longer accessible but how can I get this cleaned up?
why is the s3 endpoint no longer accessible? Did you self host the s3 object store?
 
Hi,
did you manually delete contents from the s3 bucket before this happened? The in-use-marker is expected to be present.
Yes - I somewhat enthusiastically deleted the s3 bucket to stem the PAYG fees.

In that case you can just delete the datastore without the delete all data flag, (although you might have to clean up the cache folder manually via cli in that case).
I tried that from the UI previously and didn't tick that box and it just went in to maintenance mode. Very happy to purge the cache dir but can't figure out how to get rid of the datastore definition itself.

thanks
 
Easiest is probably to set the datastore into maintenance mode offline and remove it from the config in /etc/proxmox-backup/datastore.cfg and also manually remove the cache folder then.

Please do open a bug report on bugzilla.proxmox.com for this however, thanks!
 
  • Like
Reactions: ajdthomson
Easiest is probably to set the datastore into maintenance mode offline and remove it from the config in /etc/proxmox-backup/datastore.cfg and also manually remove the cache folder then.

Please do open a bug report on bugzilla.proxmox.com for this however, thanks!
Thanks - confirmed an edit of datastore.cfg did the trick