Configuring Cloudflare R2 with S3 for Twenty CRM - Credentials Issue

Hello, I’m trying to configure S3 storage with Cloudflare R2 for Twenty CRM, but I keep running into issues. I’ve already gone through the documentation, but nothing seems to work. Has anyone else encountered a similar problem? Here’s my current .env setup in Docker Compose: my env docker compose:
STORAGE_TYPE=s3
STORAGE_S3_REGION=WEUR
STORAGE_S3_NAME=twenty
STORAGE_S3_ENDPOINT=https://d...e.eu.r2.cloudflarestorage.com
STORAGE_S3_ACCESS_KEY_ID=9...4
STORAGE_S3_SECRET_ACCESS_KEY=b...c
STORAGE_TYPE=s3
STORAGE_S3_REGION=WEUR
STORAGE_S3_NAME=twenty
STORAGE_S3_ENDPOINT=https://d...e.eu.r2.cloudflarestorage.com
STORAGE_S3_ACCESS_KEY_ID=9...4
STORAGE_S3_SECRET_ACCESS_KEY=b...c
Error log :
path: undefined,
locations: undefined,
extensions: {
code: 'INTERNAL_SERVER_ERROR',
response: 'Could not load credentials from any providers'
}
path: undefined,
locations: undefined,
extensions: {
code: 'INTERNAL_SERVER_ERROR',
response: 'Could not load credentials from any providers'
}
If anyone has successfully set up Cloudflare R2 with Twenty CRM or can point me in the right direction, I’d really appreciate your help. Thank you! 🙏
1 Reply
!InkArium
!InkAriumOP4w ago
Oh, I just realized my mistake! 😅 The docker-compose.yml provided by Twenty CRM didn’t include the variables for the S3 credentials. I simply needed to add these two lines to make it work:
STORAGE_S3_ACCESS_KEY_ID: ${STORAGE_S3_ACCESS_KEY_ID}
STORAGE_S3_SECRET_ACCESS_KEY: ${STORAGE_S3_SECRET_ACCESS_KEY}
STORAGE_S3_ACCESS_KEY_ID: ${STORAGE_S3_ACCESS_KEY_ID}
STORAGE_S3_SECRET_ACCESS_KEY: ${STORAGE_S3_SECRET_ACCESS_KEY}
Now everything is working perfectly. Kudos to myself for catching that!
Want results from more Discord servers?
Add your server