<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[502+504 nginx + openvpn problem]]></title><description><![CDATA[<p dir="auto">Tirst off, i'm far from an expert and i know that there are numerous posts about about this.</p>
<p dir="auto">I've tried pretty much every fix i could find;<br />
Removed the openvpn widget<br />
Disabled https to connect only through http<br />
Connected to the console and ran 16+11 options<br />
Upgraded to 2.3.2<br />
Rebooted pfsense</p>
<p dir="auto">Problem is still there, trying to get to the webconsole takes forever. Sometimes i do get the page that i want and sometimes i get a gateway timeout.</p>
<p dir="auto">Here's how the pfsense is configured;</p>
<p dir="auto">Xen server with lan and vlan 835 for the wan. (ISP Orange in France)<br />
Fiber comes into the building to a converter to RJ45 which is in turn connected to the xenserver on the wan nic (vlan 835)<br />
Pfsense Wan connects through PPOe with dynamic address.<br />
Lan nic is connected to a switch where my computers are connected (DHCP)<br />
There's an openvpn tunnel from that office to the main office and both networks can talk to each other.</p>
<p dir="auto">Everything was working fine for over a week and all of a sudden we noticed that the interoffice vpn was down.</p>
<p dir="auto"><strong>Nginx.log</strong><br />
Sep 21 02:58:49 su-fwl-fr su-fwl-fr.360-innovations.fr nginx: 2016/09/21 02:58:49 [crit] 43787#100104: *514 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.185.31, server: , request: "GET /getstats.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "192.168.185.1", referrer: "http://192.168.185.1/"<br />
Sep 21 02:58:49 su-fwl-fr su-fwl-fr.360-innovations.fr nginx: 192.168.185.31 - - [21/Sep/2016:02:58:49 +0200] "GET /getstats.php HTTP/1.1" 502 568 "http://192.168.185.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36"<br />
Sep 21 02:58:49 su-fwl-fr su-fwl-fr.360-innovations.fr nginx: 2016/09/21 02:58:49 [crit] 43787#100104: *512 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.185.31, server: , request: "GET /getstats.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "192.168.185.1", referrer: "http://192.168.185.1/"<br />
Sep 21 02:58:49 su-fwl-fr su-fwl-fr.360-innovations.fr nginx: 192.168.185.31 - - [21/Sep/2016:02:58:49 +0200] "GET /getstats.php HTTP/1.1" 502 568 "http://192.168.185.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36"<br />
Sep 21 02:58:49 su-fwl-fr su-fwl-fr.360-innovations.fr nginx: 2016/09/21 02:58:49 [crit] 43787#100104: *513 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.185.31, server: , request: "GET /getstats.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "192.168.185.1", referrer: "http://192.168.185.1/"<br />
Sep 21 02:58:49 su-fwl-fr su-fwl-fr.360-innovations.fr nginx: 192.168.185.31 - - [21/Sep/2016:02:58:49 +0200] "GET /getstats.php HTTP/1.1" 502 568 "http://192.168.185.1/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36"</p>
<p dir="auto"><strong>Nginx-error.log</strong></p>
<p dir="auto">2016/09/21 03:55:45 [crit] 38750#100084: *162 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.185.31, server: , request: "GET /getstats.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "192.168.185.1", referrer: "http://192.168.185.1/"<br />
2016/09/21 03:55:45 [crit] 38750#100084: *164 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.185.31, server: , request: "GET /getstats.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "192.168.185.1", referrer: "http://192.168.185.1/"<br />
2016/09/21 03:55:45 [crit] 38750#100084: *154 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.185.31, server: , request: "GET /getstats.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "192.168.185.1", referrer: "http://192.168.185.1/"<br />
2016/09/21 03:55:45 [crit] 38750#100084: *156 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.185.31, server: , request: "GET /getstats.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "192.168.185.1", referrer: "http://192.168.185.1/"<br />
2016/09/21 03:55:45 [crit] 38750#100084: *158 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.185.31, server: , request: "GET /getstats.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "192.168.185.1", referrer: "http://192.168.185.1/"</p>
<p dir="auto"><strong>Openvpn.log</strong></p>
<p dir="auto">Sep 21 14:10:01 su-fwl-fr openvpn[19926]: MULTI: REAP range 144 -&gt; 160<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: MANAGEMENT: Client connected from /var/etc/openvpn/server2.sock<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: SCHEDULE: schedule_find_least NULL<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: PO_CTL rwflags=0x0001 ev=6 arg=0x00693720<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: PO_CTL rwflags=0x0001 ev=7 arg=0x00692584<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: PO_CTL rwflags=0x0002 ev=8 arg=0x00692588<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: I/O WAIT TR|Tw|SR|Sw [10/0]<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: PO_WAIT[2,0] fd=8 rev=0x00000004 rwflags=0x0002 arg=0x00692588<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]:  event_wait returned 1<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: I/O WAIT status=0x0080<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: SCHEDULE: schedule_find_least NULL<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: PO_CTL rwflags=0x0001 ev=6 arg=0x00693720<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: PO_CTL rwflags=0x0001 ev=7 arg=0x00692584<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: PO_CTL rwflags=0x0001 ev=8 arg=0x00692588<br />
Sep 21 14:10:01 su-fwl-fr openvpn[19926]: I/O WAIT TR|Tw|SR|Sw [10/0]</p>
<p dir="auto">Internet and lan access works fine, only Openvpn and the fact that the webgui is very flaky.</p>
]]></description><link>https://forum.netgate.com/topic/105677/502-504-nginx-openvpn-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 18:48:35 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/105677.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Sep 2016 12:32:38 GMT</pubDate><ttl>60</ttl></channel></rss>