Closed unfazed2049 closed 3 months ago
i am sorry, i miss the error infomation.
url: http://localhost:8000/storage/v1/object/test/archive.png
method: POST
{
"statusCode": "500",
"code": "S3Error",
"error": "Could not load credentials from any providers",
"message": "CredentialsProviderError"
}
Hi @unfazed2049
The environment variables that you need to set are:
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
These will grant permission to your Minio server. You can take a look here: https://github.com/supabase/storage/blob/master/docker-compose.yml#L28-L34
To clarify, these credentials prefixed with S3_PROTOCOL
are controlling Storage's own S3 protocol.
In this case the below envs, will set specific credentials for the client to use via the S3 protocol.
S3_PROTOCOL_ACCESS_KEY_ID
S3_PROTOCOL_ACCESS_KEY_SECRET
If you need any more help just drop a message, but I'm pretty sure that setting the right envs will fix the issue.
Hi @unfazed2049
The environment variables that you need to set are:
AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY=
These will grant permission to your Minio server. You can take a look here: https://github.com/supabase/storage/blob/master/docker-compose.yml#L28-L34
To clarify, these credentials prefixed with
S3_PROTOCOL
are controlling Storage's own S3 protocol. In this case the below envs, will set specific credentials for the client to use via the S3 protocol.S3_PROTOCOL_ACCESS_KEY_ID S3_PROTOCOL_ACCESS_KEY_SECRET
Thanks for your reply! i didn't know aws-sdk read then env variable, so i make a mistake. BTW, Hope you have a great time!
Bug report
Describe the bug
I am using MinIO as the backend storage service for S3, and I have correctly configured the environment variables such as STORAGE_BACKEND, STORAGE_S3_ENDPOINT, S3_PROTOCOL_ACCESS_KEY_ID, and S3_PROTOCOL_ACCESS_KEY_SECRET. However, when I attempt to upload a file on Studio, an exceptional error occurs.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
Normal file upload.
Screenshots
System information
Additional context