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

[Bug]: Custom S3 endpoint => bucket in host #1624

Closed
2 tasks done
asrenzo opened this issue May 20, 2024 · 2 comments
Closed
2 tasks done

[Bug]: Custom S3 endpoint => bucket in host #1624

asrenzo opened this issue May 20, 2024 · 2 comments
Labels
support request request for free support. Check out our support policy

Comments

@asrenzo
Copy link

asrenzo commented May 20, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

Hi,

I use a custom S3 cluster for my tests (a minio cluster with a canonical host aka storage.mydomain.com).
Every request issued by sftpgo fails to reach my Minio cluster because every request updates the host definition with the bucket I wrote in the storage définition of my user profile => https://bucketname.storage.mydomain.com/

Thus none of my requests can reach my minio cluster because bucketname.storage.mydomain.com is not defined in my DNS server.

Am I doing something wrong ?

Steps to reproduce

  1. Setup a local Minio cluster https://storage.mydomain.com
  2. Setup a new user with a S3 filesystem accound
  3. Bucket = bucketname
  4. Region = region-1
  5. Access Key = mykey
  6. Access Secret = mysecret
  7. Endpoint = https://storage.mydomain.com
  8. Use filezilla or sftp command to log in sftpgo with this account

=> Error : 2024-05-20T15:55:16.558 DBG error retrieving directory entries: operation error S3: ListObjectsV2, exceeded maximum number of attempts, 3, https response error StatusCode: 0, RequestID: , HostID: , request send failed, Get "https://bucketname.storage.mydomain.com/?delimiter=%2F&list-type=2&max-keys=5000&prefix=":

Expected behavior

Shouldn't we call https://storage.mydomain.com/ and not https://bucketnamestorage.mydomain.com/ ?

SFTPGo version

Latest Docker Alpine : SFTPGo 2.6.0 19e9857

Data provider

Mysql

Installation method

Community Docker image

Configuration

Only volumes path

Relevant log output

No response

What are you using SFTPGo for?

Private user, home usecase (home backup/VPS)

Additional info

No response

@asrenzo asrenzo added the bug Something isn't working label May 20, 2024
@drakkan drakkan added support request request for free support. Check out our support policy and removed bug Something isn't working labels May 20, 2024
@drakkan
Copy link
Owner

drakkan commented May 20, 2024

I think you are using path-style addressing on the MinIO side, please enable this checkbox

Schermata del 2024-05-20 19-17-39

@drakkan drakkan closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
@asrenzo
Copy link
Author

asrenzo commented May 20, 2024

This was the exact right answer to my question !
THX !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request request for free support. Check out our support policy
Projects
None yet
Development

No branches or pull requests

2 participants