URGENT needed - Nginx + FastCGIwrap = 502 error
Andrew Hutchings
ahutchings at nginx.com
Sun Oct 11 06:45:50 UTC 2015
Hi Kasino,
Two things to check here:
1. are the NGINX workers running as the same user/group as the socket?
2. if this is a RHEL/CentOS/Fedora box (unlikely given the www-data
user): is there anything in the SELinux audit log to indicate that it
blocked this?
Kind Regards
Andrew
On 10/10/15 23:41, Kasino Strasse wrote:
> Hello,
>
> I am using Nginx to configure nagios setup.
>
> Nginx configured correctly and I am able to serve pages. But I get error
> from error_log as follows:
>
> 2015/10/11 00:34:49 [crit] 18092#0: *9 connect() to
> unix:/var/run/fcgiwrap.socket failed (13: Permission denied) while
> connecting to upstream, client: 192.168.0.1, server: nagios.example.com
> <http://nagios.example.com>, request: "GET
> /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail HTTP/1.1",
> upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host:
> "nagios.example.com <http://nagios.example.com>", referrer:
> "http://nagios.example.com/side.php"
>
>
> sudo service fcgiwrap status
>
> * Checking status of FastCGI wrapper fcgiwrap
> [ OK ]
>
> sudo netstat -anp | grep cgi
>
> unix 2 [ ACC ] STREAM LISTENING 2188667357
> 16645/f*cgi*wrap /var/run/f*cgi*wrap.socket
>
>
> ls -ltr /var/run/fcgiwrap.socket
>
> srwxr-xr-x 1 www-data www-data 0 Oct 11 00:19 */var/run/fcgiwrap.socket*
>
> *
> *
>
> *Please suggest and fix this error ?*
>
> *
> *
>
> *Best regards, Kasino.*
>
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
--
Andrew Hutchings (LinuxJedi)
Senior Developer Advocate, Nginx Inc.
More information about the nginx
mailing list