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
Regression: STORAGE_<LOCATION>_REGION should default to 'us-east-1' for s3 driver #17141
Comments
Linear: ENG-484 |
What env vars did you configure? Does endpoint exist? Are you connecting to S3 or a S3 compatible service? |
The following vars are set: STORAGE_LOCATIONS: r2
STORAGE_R2_DRIVER: s3
STORAGE_R2_REGION: auto
STORAGE_R2_BUCKET: ${DIRECTUS_R2_BUCKET}
STORAGE_R2_ENDPOINT: ${DIRECTUS_R2_ENDPOINT}
STORAGE_R2_KEY: ${DIRECTUS_R2_KEY}
STORAGE_R2_SECRET: ${DIRECTUS_R2_SECRET} As you might guess from the first one I am using R2 in S3 compat mode (I use BUCKET for convenience). |
@helge000 It looks like it might be something R2 relies on only, as I haven't been able to find any documentation or reference to Maybe Cloudflare requires the region flag to be configured, and for some mysterious way that was preconfigured automatically in |
Right, I found the errormsg about the That said, I have several Directus instances running with R2 baked storage the same. Only the one I spun up yesterday (v9.22.4) needed the region to be set - all others are working flawless without (the most recent being v9.20.4). I can test this further on Monday if there is any point in doing so. |
@helge000 We upgraded from the older |
I'm also not entirely sure if it's the AWS SDK throwing that error, or Cloudflare. I'm not able to get that error message on minio or S3 usage for example 🤔 |
@rijkvanzanten , I did a little digging and I think this is an upstream issue in The agreed upon workaround seems to be to set the region default to
I can confirm |
Ahh that makes sense. Thanks for investigating that @helge000! |
On a fresh look now, I don't think defaulting to |
Describe the Bug
When running Directus with a connected object store for files connections fails with error when
STORAGE_<LOCATION>_REGION
is unset.This is a regression since this parameter was not required in the past (def. Directus 9.20.4)
To Reproduce
Location unset
s3
STORAGE_<LOCATION>_REGION
Location set to any value except
auto
s3
STORAGE_<LOCATION>_REGION
tofoo
Errors Shown
STORAGE__REGION unset
STORAGE__REGION set to foo
What version of Directus are you using?
9.22.4
What version of Node.js are you using?
official docker image
What database are you using?
Pg 12
What browser are you using?
n/a
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered: