NGINX 502 Bad Gateway Error

2,384 views
Skip to first unread message

bbbluvr360

unread,
May 14, 2012, 5:37:48 PM5/14/12
to BigBlueButton-Setup
Hi, When I attempt to access my Wordpress site, I keep NGINX Bad
Gateway errors. I looked in the NGINX error logs and there were no
entries, so after I performed some more research, I found out that
this could be a php-fpm issue, so I looked in the log and sure enough
when I went to my php5-fpm.log file, I saw this:

[14-May-2012 16:39:46] ERROR: unable to bind listening socket for
address '127.0.0.1:9000': Address already in use (98)
[14-May-2012 16:39:46] ERROR: FPM initialization failed

Any quick fix ideas on this one? Just standard BBB install w/ Ubuntu
10.04 and upgrade to BBB .8

bbbluvr360

unread,
May 18, 2012, 12:20:37 PM5/18/12
to BigBlueButton-Setup
Any idea on this one?

Fred Dixon

unread,
May 18, 2012, 12:35:50 PM5/18/12
to bigbluebu...@googlegroups.com
Hi there,

The BigBlueButton server does not have any support for PHP.  We recommend you run BigBlueButton on a separate, dedicated server so as not to have conflicting settings between a web application and BigBlueButton (especially with nginx).  

Have you modified the BigBlueButton server to run php-fpm?  If so, we (the core developers) recommend you seek out the php-fpn resources on the web.  We haven't tried to setup PHP on a BigBlueButton server (nor do we recommend it).


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton




--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To post to this group, send email to bigbluebu...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-s...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bigbluebutton-setup?hl=en.






solca

unread,
May 18, 2012, 12:50:20 PM5/18/12
to bigbluebu...@googlegroups.com
Hi, One option is that you could install PHP + MySQL + Apache, but Apache running on a different port to 80, 8086 and 8080. 

So, you could run apache on port 8888 and so would not conflict with Nginx.

I have done that configuration with joomla and work ok, I assume that with wordpress would be the same.

Regards,

Solon.

bbbluvr360

unread,
May 18, 2012, 1:43:55 PM5/18/12
to BigBlueButton-Setup
Yes, but it was working just fine yesterday. I just attempted to
activate a theme and now I am receiving these errors. It's really
weird. Once I reboot my server, they go away, but when I try to login
again, I will begin to get the 502s again.

HostBBB.com

unread,
May 19, 2012, 8:28:11 AM5/19/12
to BigBlueButton-Setup
sounds like the php-cgi that answers on port 9000 is going out to
lunch, not sure how to debug that.

stephen

AJ Jhaveri

unread,
May 21, 2012, 10:44:55 AM5/21/12
to bigbluebu...@googlegroups.com
Yes I reinstalled php-fpm, tried connecting with unix sockets, and

I also checked to see if i had spawn-fcgi and i hadn't installed it on the server prior to installing PHP-FPM, so that wasn't causing issues. So I changed the port from 9000 to 9010 in the php-fpm config file located at /etc/php5/fpm/pool.d/www.conf as well as within the nginx vhost config file for the domain in question and that error went away, but now I am able to access my site initially, but when I try to access a second page from the website on this domain, I will get another 502 Bad Gateway error. Within the PHP5-FPM.log file, I am now getting the following:

[21-May-2012 07:52:33] WARNING: [pool www] child 16809 exited on signal 11 (SIGSEGV) after 49349.162513 seconds from start
[21-May-2012 07:52:33] NOTICE: [pool www] child 5787 started
[21-May-2012 07:52:39] WARNING: [pool www] child 16810 exited on signal 11 (SIGSEGV) after 49355.027816 seconds from start
[21-May-2012 07:52:39] NOTICE: [pool www] child 5788 started


Here is the printout from 5/18 once I changed  the port:

[18-May-2012 17:48:20] NOTICE: [pool www] child 4004 started
[18-May-2012 18:00:59] NOTICE: Finishing ...
[18-May-2012 18:00:59] NOTICE: exiting, bye-bye!
[18-May-2012 18:01:34] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful

[18-May-2012 18:01:34] NOTICE: fpm is running, pid 4444
[18-May-2012 18:01:34] NOTICE: ready to handle connections
[18-May-2012 18:01:51] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful

[18-May-2012 18:02:08] NOTICE: Finishing ...
[18-May-2012 18:02:08] NOTICE: exiting, bye-bye!
[18-May-2012 18:02:08] NOTICE: fpm is running, pid 4570
[18-May-2012 18:02:08] NOTICE: ready to handle connections
[18-May-2012 18:02:30] WARNING: [pool www] child 4573 exited on signal 11 (SIGSEGV) after 22.129308 seconds from start
[18-May-2012 18:02:30] NOTICE: [pool www] child 4586 started
[18-May-2012 18:30:11] WARNING: [pool www] child 4574 exited on signal 11 (SIGSEGV) after 1682.447326 seconds from start
[18-May-2012 18:30:11] NOTICE: [pool www] child 5377 started
[19-May-2012 09:04:01] WARNING: [pool www] child 4571 exited on signal 11 (SIGSEGV) after 54113.280291 seconds from start
[19-May-2012 09:04:01] NOTICE: [pool www] child 27883 started
[19-May-2012 09:04:08] WARNING: [pool www] child 4572 exited on signal 11 (SIGSEGV) after 54119.822590 seconds from start
[19-May-2012 09:04:08] NOTICE: [pool www] child 27885 started
[19-May-2012 10:19:44] WARNING: [pool www] child 4586 exited on signal 11 (SIGSEGV) after 58633.507627 seconds from start
[19-May-2012 10:19:44] NOTICE: [pool www] child 29815 started
[19-May-2012 11:48:06] WARNING: [pool www] child 5377 exited on signal 11 (SIGSEGV) after 62275.096890 seconds from start
[19-May-2012 11:48:06] NOTICE: [pool www] child 32053 started
[19-May-2012 13:43:16] WARNING: [pool www] child 27883 exited on signal 11 (SIGSEGV) after 16754.978360 seconds from start
[19-May-2012 13:43:16] NOTICE: [pool www] child 3180 started
[19-May-2012 13:43:40] WARNING: [pool www] child 27885 exited on signal 11 (SIGSEGV) after 16771.654705 seconds from start
[19-May-2012 13:43:40] NOTICE: [pool www] child 3192 started
[19-May-2012 13:44:25] WARNING: [pool www] child 29815 exited on signal 11 (SIGSEGV) after 12281.697058 seconds from start
[19-May-2012 13:44:25] NOTICE: [pool www] child 3207 started
[19-May-2012 14:23:27] WARNING: [pool www] child 32053 exited on signal 11 (SIGSEGV) after 9320.962094 seconds from start
[19-May-2012 14:23:27] NOTICE: [pool www] child 4196 started
[19-May-2012 14:31:20] WARNING: [pool www] child 3180 exited on signal 11 (SIGSEGV) after 2883.407748 seconds from start
[19-May-2012 14:31:20] NOTICE: [pool www] child 4394 started
[19-May-2012 20:53:38] WARNING: [pool www] child 3192 exited on signal 11 (SIGSEGV) after 25798.110180 seconds from start
[19-May-2012 20:53:38] NOTICE: [pool www] child 14760 started
[20-May-2012 08:47:23] WARNING: [pool www] child 3207 exited on signal 11 (SIGSEGV) after 68577.087504 seconds from start
[20-May-2012 08:47:23] NOTICE: [pool www] child 2348 started
[20-May-2012 08:47:28] WARNING: [pool www] child 4196 exited on signal 11 (SIGSEGV) after 66241.170473 seconds from start
[20-May-2012 08:47:28] NOTICE: [pool www] child 2350 started
[20-May-2012 18:10:04] WARNING: [pool www] child 4394 exited on signal 11 (SIGSEGV) after 99523.833721 seconds from start
[20-May-2012 18:10:04] NOTICE: [pool www] child 16809 started
[20-May-2012 18:10:04] WARNING: [pool www] child 14760 exited on signal 11 (SIGSEGV) after 76586.162022 seconds from start
[20-May-2012 18:10:04] NOTICE: [pool www] child 16810 started
[20-May-2012 19:36:49] WARNING: [pool www] child 2348 exited on signal 11 (SIGSEGV) after 38966.594138 seconds from start
[20-May-2012 19:36:49] NOTICE: [pool www] child 19002 started
[21-May-2012 01:20:53] WARNING: [pool www] child 2350 exited on signal 11 (SIGSEGV) after 59605.517916 seconds from start
[21-May-2012 01:20:53] NOTICE: [pool www] child 27823 started
[21-May-2012 07:52:33] WARNING: [pool www] child 16809 exited on signal 11 (SIGSEGV) after 49349.162513 seconds from start
[21-May-2012 07:52:33] NOTICE: [pool www] child 5787 started
[21-May-2012 07:52:39] WARNING: [pool www] child 16810 exited on signal 11 (SIGSEGV) after 49355.027816 seconds from start
[21-May-2012 07:52:39] NOTICE: [pool www] child 5788 started

Any ideas, now that it is not a port issue?

Reply all
Reply to author
Forward
0 new messages