Applicable to:
- Plesk for Linux
Symptoms
-
A website or its preview is unavailable in Plesk
502 Bad Gateway
-
The following entries are logged to the domain/system logs:
/var/log/nginx/error.log
,/var/www/vhosts/example.com/logs/proxy_error_log
[error] 14790#0: *188 upstream sent too big header while reading response header from upstream, client: 203.0.113.2, server: example.com
[error] 707#0: *2016153 FastCGI sent in stderr: "PHP message: Error checking in buffer: The buffer you checked in was not checked out" while reading upstream, client: 203.0.113.2, server: example.com
[error] 4966#0: *39052 proxy_buffer_size x is not enough for cache key, it should be increased to at least xx, client: 203.0.113.2, server: example.com
-
The same happens on WHMCS with Plesk when navigating to Clients > John Doe > Invoices
Cause
The proxy server can't process the request because the configured buffer size is too small.
Resolution
Increase the buffer size for either the affected domains or all domains on the server.
Note: If the example values below are not enough, increase them
-
Log in to Plesk
-
Go to Domains > example.com > Apache & nginx
-
Scroll down to Additional nginx directives and enter these settings:
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
proxy_buffers 8 16k;
proxy_buffer_size 32k; - Press OK
Comments
0 comments
Please sign in to leave a comment.