plakar icon indicating copy to clipboard operation
plakar copied to clipboard

S3 Integration does not work with rustfs

Open M0NsTeRRR opened this issue 1 month ago • 1 comments

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:

  1. Install rustfs, create a bucket and an access key
  2. Configure the store plakar store add nas s3://xxxxx:30292/yyyyy access_key=...... secret_access_key=......
  3. Init the repository plakar at @nas create
  4. Try to backup plakar at @nas backup test.txt or list files plakar 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

M0NsTeRRR avatar Dec 06 '25 12:12 M0NsTeRRR

Hello,

Thanks for the report. I confirm there is a problem on our side.

To reproduce easily locally:

  1. Start rustfs
docker run --rm -ti -p 8888:9000 -p 8889:9001 rustfs/rustfs:latest
  1. Configure plakar:
plakar store add rustfs s3://localhost:8888/mybucket access_key=rustfsadmin secret_access_key=rustfsadmin use_tls=false passphrase=xxx
  1. 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>".

brmzkw avatar Dec 08 '25 10:12 brmzkw