- Plesk for Linux
Uploading a backup file via the Backup Manager times out.
In the logfile
/var/log/sw-cp-server/error_logthe following error message appears:
CONFIG_TEXT: [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/"
CONFIG_TEXT: [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"
The maximum size of an uploaded backup file is limited to 2Gb.
The maximum allowed upload size is less than a backup file size.
If a backup file size is larger than 2Gb:
- Upload this backup file using the command-line interface instructions from this KB article.
If a backup file size is lower than 2Gb:
Connect to a Plesk server via SSH.
Open the file
/etc/sw-cp-server/configin any text editor and increase the value of
CONFIG_TEXT: client_max_body_size 2048m;
Save the changes and close the file.
Restart the "sw-cp-server" service:
# service sw-cp-server restart
NOTE: If after applying changes the same error appears, proceed with workaround from this article.
- Upload the backup file again.