plakar
plakar copied to clipboard
S3 Integration does not work with rustfs
Describe the bug Plakar does not works with rustfs.
plakar store show nas
nas:
access_key: '********'
location: s3://xxxxx:30292/yyyyy
secret_access_key: '********'
$ plakar at @nas backup test.txt
plakar: failed to open the repository at s3://xxxxx:30292/yyyyy: error reading object: At least one of the pre-conditions you specified did not hold.
To specify an alternative repository, please use "plakar at <location> <command>".
$ plakar at @nas ls
plakar: failed to open the repository at s3://xxxxx:30292/yyyyy: error reading object: At least one of the pre-conditions you specified did not hold.
To specify an alternative repository, please use "plakar at <location> <command>".
The repository is properly initialized as I can see the plakar config inside the bucket and when I try to initialize it again it says it's already initialized as expected.
$ plakar at @nas create
repository passphrase:
repository passphrase (confirm):
plakar: bucket already initialized
To Reproduce Steps to reproduce the behavior:
- Install rustfs, create a bucket and an access key
- Configure the store
plakar store add nas s3://xxxxx:30292/yyyyy access_key=...... secret_access_key=...... - Init the repository
plakar at @nas create - Try to backup
plakar at @nas backup test.txtor list filesplakar at @nas ls
Expected behavior Plakar commands should works.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS, OS Version and architecture: NixOS 25.11, amd64
- Plakar Version : plakar/v1.0.6 (binary from release)
- S3 Integration : [email protected] (self build)
Additional context N/A
Hello,
Thanks for the report. I confirm there is a problem on our side.
To reproduce easily locally:
- Start rustfs
docker run --rm -ti -p 8888:9000 -p 8889:9001 rustfs/rustfs:latest
- Configure plakar:
plakar store add rustfs s3://localhost:8888/mybucket access_key=rustfsadmin secret_access_key=rustfsadmin use_tls=false passphrase=xxx
- Create the store and backup:
$ plakar at @rustfs create
$ plakar at @rustfs backup /etc
plakar: failed to open the repository at s3://localhost:8888/mybucket: error reading object: At least one of the pre-conditions you specified did not hold.
To specify an alternative repository, please use "plakar at <location> <command>".