Symptoms
-
The following error message is shown in Plesk when:
-
uploading a large backup file via Backup Manager
-
importing a large database dump
504 Gateway Time-out
-
-
The following error message is logged in
/var/log/sw-cp-server/error_log
:[error] 25312#0: *59 client intended to send too large body: 1200002689 bytes
Cause
Upload size limit which is set up in Plesk configuration has been exceeded by the operation.
Resolution
-
Connect to the Plesk server via SSH.
-
Open the file
/etc/sw-cp-server/config
in a text editor. In this example we use the vi editor:# vi /etc/sw-cp-server/config
-
Increase the value of client_max_body_size to the size of the uploaded file:
client_max_body_size 4096m;
-
Save the changes and close the file.
-
Restart the Plesk services:
# service sw-cp-server restart && service sw-engine restart
- Retry the failed operation.