Fix upstream timeout error in Plesk

Foreword

This article explains how to fix the "Upstream Timeout" error in Plesk. The reason for this error is that a script takes longer than 60 seconds and therefore fails.


Prerequisites

  • Access to the Plesk Control Panel

    \



Remedy

To fix the "Upstream Timeout" error, you need access to the Plesk Control Panel. You can log in via the customer center. You can also find instructions on how to do this in our help center article Logging into 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 now appears, please select "Apache and nginx"


Now scroll down to the bottom. There you will find the input window "Additional nginx instructions". The following settings must be made here to increase the timeout from 60 seconds to 180 seconds:

proxy_read_timeout 180s;
fastcgi_read_timeout 180s;


After the adjustment, you can save the adjustments by clicking on "Apply".

You can now try to start the script again and you will see that the error message no longer appears.