Publii icon indicating copy to clipboard operation
Publii copied to clipboard

[Bug]: compatible S3 Storage cannot be configured as "wrong-region"

Open pva2007 opened this issue 1 year ago • 6 comments

Operating system

MacOS 13.6.3

Publii version

0.44.1

Post editor

None

Bug description

Trying to add custom S3 provider but failing connection with image

I've tried multiple access keys, but non worked. Region Setting is correct as it works e.g. from bookstack Application and others.

Steps to reproduce

  1. go to server
  2. select S3 Storage
  3. fill form for custom S3 image
  4. save settings
  5. click on test connection and getting above error

Relevant log output

Unknown in Publii creates any logs here. Nothing was found.

pva2007 avatar Dec 15 '23 09:12 pva2007

Hi,

Could you check if on Publii v.0.43.1 the same problem occurs? You can find it under "Previous version": https://getpublii.com/download/

Then we will know if it is a common problem with AWS SDK or it was introduced with AWS SDK v3

dziudek avatar Dec 15 '23 16:12 dziudek

Ive tested it with previous version 0.43.1 and it' working. Seems to be some changes in the SDK as you well guessed.

pva2007 avatar Dec 15 '23 19:12 pva2007

Thank you for your feedback - which service are you using as your S3-compatible storage?

dziudek avatar Dec 15 '23 19:12 dziudek

Currently I'm using min.io but will evaluate to use garagehq.

pva2007 avatar Dec 15 '23 19:12 pva2007

It seems to be an issue with minio: https://github.com/minio/minio/discussions/14709 - they not properly handle URLs generated via AWS SDK v3. But we cannot revert to AWS SDK v2 as it is supported only to the end of this year.

As I see - the temporary solution is to use port 80 instead of 9000 for S3 service

dziudek avatar Dec 15 '23 20:12 dziudek

Hmm ... not a Solution, and a topic which needs to be solved by minio. Thx for the feedback. Will checkout by Time how Garage will work.

pva2007 avatar Dec 17 '23 18:12 pva2007