Nginx Helper 502 error

I get a 502 error when I purge the cache through the nginx helper plugin

usually 502 is thrown when nginx is not able to connect to phpfpm/gateway process. Is it happening reqpeatedly or happened only once? Is the server load is high?

Have a look into log for more information so that we can pin the exact issue. tail -f /var/log/nginx/sitename.error.log

Hey @antopjoseph found this in my error log

*1007139 upstream sent too big header while reading response header from upstream

edit /etc/nginx/conf.d/fastcgi.conf & increase following values.

fastcgi_buffers 16 16k; 
fastcgi_buffer_size 32k;

to

BIGGER values. :slight_smile:

current nginx configuration unable to handle the header send by the php-fpm.

Hey, thanks for your reply. How do I calculate the correct values?