Symptoms
-
Uploading a backup file via the Backup Manager or importing database dump in PHPmyAdmin times out.
-
In the logfile
/var/log/sw-cp-server/error_log
the following error message appears:[error] 25312#0: *59 client intended to send too large body: 1200002689 bytes, client: 203.0.113.2, server: , request: "POST /plesk/server/backup/local-repository/upload/ HTTP/1.1", host: "203.0.113.2:8443", referrer: "https://203.0.113.2:8443/plesk/server/backup/local-repository/upload/"
[error] 11445#0: *36 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 203.0.113.2, server: , request: "POST /admin/backup/copy-to-server/?dumpId=backup_1812061555_1812100010.tar&type=foreign-ftp HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "203.0.113.2:8443", referrer: "https://203.0.113.2:8443/admin/backup/copy-to-server/?dumpId=backup_1812061555_1812100010.tar&type=foreign-ftp"
Cause
The maximum size of an uploaded backup file is limited to 2Gb.
OR
The maximum allowed upload size is less than backup file size.
Resolution
Upload this backup file using the command-line instructions from the article  How to upload a Plesk xml.tar/xml.zip backup file to the Backup Manager.
Alternatively, increase web server limits:
Click on a section to expand
For Linux
-
Connect to the Plesk server via SSH.
Note: If direct SSH access to the server is not possible, contact server administrator for further assistance.
-
Modify theÂ
/etc/sw-cp-server/config
 file:2.1. Open the file in a text editor. In this example we use the vi editor:
# vi /etc/sw-cp-server/config
2.2. Increase the value of:
-
client_max_body_size
to 2048m:client_max_body_size 2048m;
-
fastcgi_read_timeout
andfastcgi_send_timeout
to 1200:CONFIG_TEXT: fastcgi_read_timeout 1200
fastcgi_send_timeout 1200
2.3. Save the changes and close the file.
-
-
Modify theÂ
/usr/local/psa/admin/conf/php.ini
file:3.1. Open the file in a text editor:
# vi /usr/local/psa/admin/conf/php.ini
3.2. Increase theÂ
max_execution_time
 value:# max_execution_time
3.3. Save the changes and close the file.
-
Restart the Plesk services:
# service sw-cp-server restart
#Â service sw-engine restart - Upload the backup file again.
Click on a section to expand
For Windows
-
Connect to the server via RDP.
Note: If direct RDP access to the server is not possible, contact server administrator for further assistance.
-
Edit theÂ
%plesk_dir%adminconfphp.ini
 file and increase theÂmax_execution_time
 value. -
Open the command prompt and run the commands one by one:
C:> net stop “Plesk PopPass Service”
net stop “Plesk Management Service”
net start “Plesk Management Service” - Upload the backup file again.