Fixing the "Upstream Timeout" Error in Plesk
Introduction
This article explains how to fix the "Upstream Timeout" error in Plesk. This error occurs when a script takes longer than 60 seconds to run and therefore fails.
Prerequisites
-
Access to the Plesk Control Panel
\
Solution
To resolve the “Upstream Timeout” error, you need access to the Plesk Control Panel. You can log in via the Customer Center. Instructions on how to do this can also be found in our Help Center article Logging In to the Plesk Control Panel
After logging in, please select your domain under “Websites & Domains” and click on the “Hosting and DNS” tab.
In the selection window that appears, please select “Apache and nginx”
Now please scroll all the way to the bottom. There you will find the “Additional nginx Instructions” input field. Here, you must configure the following settings to increase the timeout from 60 seconds to 180 seconds:
proxy_read_timeout 180s;
fastcgi_read_timeout 180s; After making these changes, you can save them by clicking “Apply.”
You can now try running the script again and will see that the error message no longer appears.