Metabase Javascript and CSS not loading on Cloudflare SSl

521 error is coming up. Screenshot is attached. I'm using docker and postgres. Cloudflare is flexible SSL

Hi @alinoudev
Are you using Rocket Loader or proxy (whatever it’s called) or similar things? Then disable that.
EDIT: Have you looked at the Cloudflare troubleshooting guides?
https://community.cloudflare.com/t/community-tip-fixing-error-521-web-server-is-down/42461
https://support.cloudflare.com/hc/en-us/articles/200171916-Error-521-Web-server-is-down

Rocket loader was even causing issue for simple http so I already turned it off, this issue seems bit different

Yes, I'm checking cloudflare docs, here is my docker commands
docker container stop metabase
docker container rm metabase
docker container run -d -p 80:3000 --restart unless-stopped
-e "MB_DB_TYPE=postgres"
-e "MB_DB_DBNAME="
-e "MB_DB_PORT=5432"
-e "MB_DB_USER="
-e "MB_DB_PASS="
-e "MB_DB_HOST="
--name metabase metabase/metabase
AWS security config

@alinoudev
Do you see anything in the Metabase log given you an indication that it’s actually hitting the container at all?
What’s the configuration of the “Site URL” in Admin > Settings > General?

Thanks very much for your help issue got fixed it was mistake in my cloudflare page rules. Thanks very much!

1 Like