Applicable to:
- Plesk Obsidian for Linux
Symptoms
-
Unable to download a big backup (about 10gb) in Tools & Settings > Backup Manager by clicking on the download button
-
After a while the browser displays the following error:
CONFIG_TEXT: Network Error
-
The following timeout is configured in
/etc/sw-engine/pool.d/plesk.conf
:# grep request_terminate_timeout /etc/sw-engine/pool.d/plesk.conf
request_terminate_timeout = 600s -
The following error is shown in
/var/log/sw-cp-server/error_log
when accessing Tools & Settings > Backup Manager:CONFIG_TEXT: recv() failed (104: Connection reset by peer) while reading response header from upstream, client: IP, server: , request: "GET /smb/backup/list/domainId/IDNUMBER HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "example.com:8443"
Cause
Product issue:
-
#PPP-44962 "Downloading a large backup file (10 GB or more) from Plesk no longer fails with the the “Network Error” message shown in a browser."
Fixed in:- Plesk Obsidian 18 February 2020 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
-
As a workaround, connect to the server via SSH.
-
Edit /etc/sw-engine/pool.d/plesk.conf by addint the following directive:
CONFIG_TEXT: request_terminate_timeout = 1200s
-
Increase the timeout value in Plesk php.ini file by executing the below command.
# sed -i '/max_execution_time/c\max_execution_time = 1200' /usr/local/psa/admin/conf/php.ini
-
Restart Plesk services:
# service sw-engine restart && service sw-cp-server restart
Note: These change may be overwritten during Plesk update. In case it is required to download big backup files on a regular basis, use this step to make the changes persistent:
Replace the following line in /etc/cron.daily/50plesk-daily
:
For Debian/Ubuntu:
CONFIG_TEXT: /usr/local/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1
With:
CONFIG_TEXT: /usr/local/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1 && sed -i '/request_terminate_timeout/c\request_terminate_timeout = 1200s' /etc/sw-engine/pool.d/plesk.conf && sed -i '/max_execution_time/c\max_execution_time = 1200' /usr/local/psa/admin/conf/php.ini
For CentOS:
CONFIG_TEXT: /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1
With:
CONFIG_TEXT: /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1 && sed -i '/request_terminate_timeout/c\request_terminate_timeout = 1200s' /etc/sw-engine/pool.d/plesk.conf && sed -i '/max_execution_time/c\max_execution_time = 1200' /usr/local/psa/admin/conf/php.ini
Comments
4 comments
ETA on when this will fixed? Obsidian has updated 4 times since this was posted, but the issue persists.
Hi @Donnie Weaver,
The bug is expected to be fixed in Plesk Obsidian but there is still no exact ETA.
I am experiencing a similar error in Obsidian 18.0.29 but there is NO request_terminate_timeout setting in /etc/sw-engine/pool.d/plesk.conf
I've already raised the timeouts values from 600 to 1200 according to this other Article https://support.plesk.com/hc/en-us/articles/115001203674-Unable-to-download-huge-backup-file-in-Plesk-interface-504-Gateway-Time-out
and there is space in the /tmp partition on the server
but downloading backups still fails after 1 to 3 GB
# grep "timeout" /etc/sw-cp-server/config | grep "fastcgi"
fastcgi_read_timeout 1200;
fastcgi_send_timeout 1200;
]# grep "max_execution_time" /usr/local/psa/admin/conf/php.ini
max_execution_time = 1200
Any ideas?
Fran
Hi Fran Le Bouleix!
The issue that you are experiencing requires additional investigation. Please contact support.
Please sign in to leave a comment.