Metabase 504 Timeout Error

If I’m performing quite heavy question in Metabase I recieved 504 Timeout Error.

Metabase deployed by AWS Beanstalk. Version - 0.36.3.
Request is going by this path:
App Front-End (Nginx) -> AWS ALB -> Metabase EC2 Nginx -> Metabase Docker container.

I checked proxy_read_timeout everywhere (except Metabase docker container) but 504 is still appearing.

What am I missing?

Hi @aliaksandr.karmyzau
How long does it take for you to see the error?
You would need to check the logs of all the levels to figure out which one is closing the connection.
See this thread too: Metabase timeout configuration