SignatureDoesNotMatch error with Lightsail S3

I’m self hosting baserow 1.27.2 on an Ubuntu lightsail instance using the all-in-one docker image with an attached Lightsail S3 bucket. Everything seems to be working as it should, except all my images are broken. I can upload images and I’ve confirmed they get added to the bucket, but when I try to view or download them I encounter a SignatureDoesNotMatch error: “The request signature we calculated does not match the signature you provided. Check your key and signing method.” I have double checked the bucket name, keys, etc. They are all correct and there doesn’t seem to be any problem with writing files to the bucket, just retrieving files.

My docker-compose.yml:

version: “3.4”
services:
baserow:
container_name: baserow
image: baserow/baserow:1.27.2
environment:
BASEROW_PUBLIC_URL: ‘’
EMAIL_SMTP: 1
EMAIL_SMTP_HOST: ‘’
EMAIL_SMTP_PORT: 465
EMAIL_SMTP_USE_SSL: 1
EMAIL_SMTP_USER: ‘’
EMAIL_SMTP_PASSWORD: ‘’
FROM_EMAIL: ‘’
AWS_ACCESS_KEY_ID: ‘’
AWS_SECRET_ACCESS_KEY: ‘’
AWS_STORAGE_BUCKET_NAME: ‘’
AWS_S3_REGION_NAME: ‘’
AWS_S3_ENDPOINT_URL: ‘’
DOWNLOAD_FILE_VIA_XHR: 1
DATABASE_USER: postgres
DATABASE_PASSWORD:
DATABASE_NAME:
DATABASE_HOST:
DATABASE_PORT: 5432
BASEROW_TRIGGER_SYNC_TEMPLATES_AFTER_MIGRATION: 0

ports:
  - "80:80"
  - "443:443"
volumes:
  - baserow_data:/baserow/data

volumes:
baserow_data:

Has anyone had success using a lightsail s3? Should I just go back to trying to make a normal s3 bucket work? Would very much appreciate if anyone could point me in the right direction!

Hey @ddtrent, I don’t have experience with Lightsail S3, but if it’s compatible with normal S3, then it should work as expected. Could it be that you need to make your S3 bucket public? By default, Baserow doesn’t use signed file URLs unless configured to.

I was able to resolve the issue by adding: AWS_QUERYSTRING_AUTH: 0 to my environment variables.