GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

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

Open pva2007 opened 6 months ago

pva2007 commented 6 months ago

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.
dziudek commented 6 months ago

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

pva2007 commented 6 months ago

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

dziudek commented 6 months ago

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

pva2007 commented 6 months ago

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

dziudek commented 6 months ago

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

pva2007 commented 6 months ago

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.