Symptoms
-
The following error message is shown in Plesk when:
-
downloading/uploading/opening a large backup file in Backup Manager
-
importing/exporting a large database dump
504 Gateway Time-out
-
-
When archiving (zipping) a large amount of data, the operation fails with:
external error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Internal error: SyntaxError: Unexpected token < in JSON at position 0
-
The following error message is logged in
/var/log/sw-cp-server/error_log
:[error] 37325#0: *273172 upstream timed out (110: Connection timed out) while reading response header from upstream
Cause
Timeout limit which is set up in Plesk configuration has been exceeded by the operation.
Resolution
-
Connect to the Plesk server via SSH.
-
Modify the file
/etc/sw-cp-server/config
: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:
fastcgi_read_timeout
andfastcgi_send_timeout
to 1200:fastcgi_read_timeout 1200;
fastcgi_send_timeout 1200;2.3. Save the changes and close the file.
-
Modify the file
/usr/local/psa/admin/conf/php.ini
: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 1200
3.3. Save the changes and close the file.
-
Restart the Plesk services:
# service sw-cp-server restart && service sw-engine restart
- Retry the failed operation.