Symptoms
-
Unable to download or access huge backup file (more than 20 GB or with multiple incremental backups) in Tools & Settings > Backup Manager > Backup > Download, one of the following errors is shown:
504 Gateway Time-out
This operation is taking too long. Check the results in a few minutes.
Cause
Insufficient timeout limits set for Plesk.
Resolution
-
Connect to the server via SSH
-
Open
/etc/sw-cp-server/config
file using a text editor -
Adjust timeout limits for FastCGI to the following:
fastcgi_read_timeout 1200
fastcgi_send_timeout 1200 -
Open
/usr/local/psa/admin/conf/php.ini
file using a text editor -
Adjust timeout limits for PHP:
max_execution_time = 1200
-
Restart
sw-engine
andsw-cp-server
services:# service sw-engine restart
# service sw-cp-server restart
If the issue still persists increase timeout limits even greater.
Alternatively, it is possible to download the backup directly from the server via CLI bypassing Plesk interface.