- 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 the backup file size is more than 2Gb:
- Upload this backup file using the command-line instructions from this KB article.
If the backup file size is less than 2Gb:
Connect to the Plesk server via SSH.
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:
CONFIG_TEXT: client_max_body_size 2048m;
CONFIG_TEXT: fastcgi_read_timeout 1200
2.3. Save the changes and close the file.
3.1. Open the file in a text editor:
# vi /usr/local/psa/admin/conf/php.ini
3.2. Increase the
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.