-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unknown Host Exception - Internal 500 Backend Error with MinIO S3 #2036
Comments
About the region, this is a bug and it will be landed in the next minor release (today or monday) (PR here) About the unknown host, I don't know, maybe the inside the docker environment the container is unable to resolve the domain you using for the s3 backend uri... |
I see, guess I'll wait. After googling a bit, I found this spinnaker/spinnaker#4431 (comment) (the link mentioned hal having access path parameter) Does penpot have an access path parameter that I can configure? So that it becomes |
As I have posted in the previous issue, I locally use this config: export AWS_ACCESS_KEY_ID=penpot-devenv
export AWS_SECRET_ACCESS_KEY=penpot-devenv
export PENPOT_ASSETS_STORAGE_BACKEND=assets-s3
export PENPOT_STORAGE_ASSETS_S3_ENDPOINT=http://minio:9000
export PENPOT_STORAGE_ASSETS_S3_BUCKET=penpot
# This setting will not be necessary on the next minor release (1.14.1 I guess).
export PENPOT_STORAGE_ASSETS_S3_REGION=eu-central-1 For testing penpot with minio on local devenv, and I have configured nothing for serving under different domain, so I'm pretty sure that path is used for specify the bucket. |
Might not be necessary with the pending minor release, but FWIW as a workaround I named my Minio region as Good to know I can set it back to what it was with this next release though. |
@JustMitah I believe the port is required when using Minio since it runs the S3 service on port 9000. You could try proxying it to a standard web port, but I was only able to get the URI to resolve by specifying the port number in addition to the protocol and hostname. |
The 1.14.1 is released (already on dockerhub) with the region validation fix, now you can omit it or set whatever value you need. |
Lets say that the link/storage we want to use is minio.company.name, I created a minio-test.company.name on another server...and it works just fine, so no port or region need to be specified..... |
Hello @niwinz I have a question : |
While I still don't know why penpot will work correctly with one instance and not with another, I fixed my problem, thanks for all the help again. If anyone run into a similar issue working with public urls, add the following environment variable to Minio : "MINIO_DOMAIN=your_minio_reverse_proxy_domain_name" and then add to your reverse proxy the following domain "yourbucket.domain.name" this will make your bucket finally accessible to penpot as it doesn't seem the use the traditional path style. |
I didn't want to open a new issue seeing as this is still open, but I didn't know if it was showing up.
Is it normal that penpot throws an error when I try to change region to eu-east-1?
It works with eu-central-1 but when I upload an image in penpot it throws an exception :
From this previous log it's this line that bother me a bit :
Caused by: software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: my-bucket-name.my.domain.name
I tested with Filestash S3 so I know that my bucket is accessible with the aws key/ID and endpoint I provided.
Any ideas?
The text was updated successfully, but these errors were encountered: