Timeout issue: Your question took too long

Typically this error is caused by a proxy or some other network configuration between Metabase and the database server. This thread is probably a good starting point: How to increase query timeout - Your question took too long