Snapshot backup 504 gatway timeout error

Dear support,

I read the support forum regarding this before I create this ticket. Screenshot for the error message:

I disable cloudflare and increase the php(7.0) setting to:

max_input_vars = 5000

max_execution_time = 300

However, it did not solve the 504 gatway timeout problem.

Please help