Articles in this section

Unable to upload a large backup file or a database dump in Plesk: client intended to send too large body

Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • The following error message is shown in Plesk when:

    • uploading a large backup file via Backup Manager

    • importing a large database dump

      PLESK_INFO: 504 Gateway Time-out

  • The following error message is logged in /var/log/sw-cp-server/error_log:

    CONFIG_TEXT: [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

  1. Connect to the Plesk server via SSH.

  2. 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

  3. Increase the value of client_max_body_size to the size of the uploaded file:

    CONFIG_TEXT: client_max_body_size 4096m;

  4. Save the changes and close the file.

  5. Restart the Plesk services:

    # service sw-cp-server restart && service sw-engine restart

  6. Retry the failed operation.
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.