Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Cannot open File Manager: "502 bad gateway"  (Read 2685 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
Cannot open File Manager: "502 bad gateway"
« on: December 07, 2013, 02:39:57 pm »

APPLIES TO:Parallels Plesk Panel 11.5 for Linux

Symptoms

I try to browse my domain using File Manager, but Nginx shows the following error:

502 bad gateway

I find the following error in the /var/log/sw-cp-server/error_log:

[error] 22141#0: *5765 upstream sent too big header while reading response header from upstream, client: 10.30.87.27, server: , request: "GET /smb/file-manager/list?currentDir=/%2Fhttpdocs HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "example.com:8443", referrer: "https://example.com:8443/smb/web/view"

Cause

The issue is caused by the existence of a large number of files in the directory that you tried to open.

Resolution

    Back up the original configuration file:

    # cp -p /etc/sw-cp-server/config /etc/sw-cp-server/config.backup.`date +%F`

    Increase the FastCGI buffer size to resolve the issue as below:

    # cat /etc/sw-cp-server/config|grep 'fastcgi_buffer'
    fastcgi_buffers 128 2048k;
    fastcgi_buffer_size 2048k;