teable icon indicating copy to clipboard operation
teable copied to clipboard

Files do not upload to s3-compatible storage

Open simon-innovamaxx opened this issue 1 year ago • 7 comments

Describe the bug Files do not upload to s3-compatible storage: Tested plattforms: digitalocean, hetzner, cloudflare r2

<Code>SignatureDoesNotMatch</Code> <Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.

To Reproduce Steps to reproduce the behavior:

Environment variables: BACKEND_STORAGE_PUBLIC_BUCKET= BACKEND_STORAGE_PRIVATE_BUCKET= BACKEND_STORAGE_PROVIDER="s3" BACKEND_STORAGE_S3_REGION="fra1" BACKEND_STORAGE_S3_ENDPOINT="https://fra1.digitaloceanspaces.com" BACKEND_STORAGE_S3_ACCESS_KEY= BACKEND_STORAGE_S3_SECRET_KEY=

What works: After deployment, some files are uploaded to the public bucket.

When uploading attachments there is a "network error" message and this console message: Access to XMLHttpRequest at 'https://xxx.fra1.digitaloceanspaces.com/table/BUuxSrV3jfw9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO00JDUMUZ89EJG2HG4D%2F20250316%2Ffra1%2Fs3%2Faws4_request&X-Amz-Date=20250316T023040Z&X-Amz-Expires=518400&X-Amz-Signature=9378b1c6780dc28da8e462c0ded473ea0f53bf60900e545e74a64848db597b02&X-Amz-SignedHeaders=content-length%3Bhost&x-id=PutObject' from origin 'https://xxx.up.railway.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Expected behavior File upload to private bucket

Screenshots If applicable, add screenshots to help explain your problem.

Platform (Please tell us which deployment version you are using) docker

Additional context coolify template

simon-innovamaxx avatar Mar 16 '25 02:03 simon-innovamaxx

i have the same problem with coolify, the hetzner privat storage is not working because of cors

Syiana avatar Apr 18 '25 20:04 Syiana

This is a CORS (Cross-Origin Resource Sharing) configuration issue that needs to be set up on your storage bucket.

boris-w avatar Apr 30 '25 08:04 boris-w

This is a CORS (Cross-Origin Resource Sharing) configuration issue that needs to be set up on your storage bucket.

Other applications hosted with Coolify are working fine with Hetzner Object Storage, but Teable specifically isn’t. So I’m not sure if it’s a CORS misconfiguration on the bucket or something related to how Teable (or its integration via Coolify) handles the requests. It seems like the issue might be more specific than just the CORS setup.

Syiana avatar Apr 30 '25 09:04 Syiana

It is clear that the implementation or lack of documentation is the problem.

simon-innovamaxx avatar Apr 30 '25 10:04 simon-innovamaxx

any luck on resolving this issue with DO Spaces? Ty

jellologic avatar May 08 '25 20:05 jellologic

Hi. I'm also using Hetzner, and although it works fine (no CORS related problem) with several other projects, when trying to use it with Teable, I end up with SignatureDoesNotMatch errors and I'm unable to upload anything.

XMLHttpRequest cannot load https://MY-PRIVATE-BUCKET.nbg1.your-objectstorage.com/table/3ZkFsssfgzsZ?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=39LH8N0GK9QUUCE700FB%2F20250831%2Feu-central%2Fs3%2Faws4_request&X-Amz-Date=20250831T133503Z&X-Amz-Expires=518400&X-Amz-Signature=e3f47035e5b404f2c07f0bd77d1ee229484ffe687d578411d804ba35314ed423&X-Amz-SignedHeaders=content-length%3Bhost&x-id=PutObject due to access control checks.

So, I just want to add my "me too" to this problem. Thanks.

D1reW0lf avatar Aug 31 '25 13:08 D1reW0lf

Network error when used with cloudflare r2, any help?

chillpilllike avatar Nov 19 '25 06:11 chillpilllike