Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 4th February 2011, 12:57
RoboBunny RoboBunny is offline
Junior Member
 
Join Date: Feb 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation Ubuntu 10.10 SpamSnake .. 502 Bad Gateway

Hi

I followed Rocky's
http://www.howtoforge.com/the-perfec...ick-meerkat-p3

Now when I try to go to the webpage i get 502 Bad Gateway.

http://192.168.1.252:8080/accounts/login/?next=/

Not displaying BARUWA website I did check....
http://www.howtoforge.com/forums/showthread.php?t=50330
it did not help..

tail -f /var/log/nginx/error.log
**
2011/02/04 13:34:21 [error] 25272#0: *1 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.252, server: mail.mysite.co.za, request: "GET /accounts/login/?next=/ HTTP/1.1", upstream: "uwsgi://unix:///var/run/uwsgi/uwsgi-python2.6/baruwa/baruwa.sock:", host: "mail.mysite.co.za:8080"

2011/02/04 13:46:26 [error] 25272#0: *4 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.252, server: mail.mysite.co.za, request: "GET /accounts/login/?next=/ HTTP/1.1", upstream: "uwsgi://unix:///var/run/uwsgi/uwsgi-python2.6/baruwa/baruwa.sock:", host: "192.168.1.252:8080"

2011/02/04 13:46:26 [error] 25272#0: *4 open() "/usr/share/pyshared/baruwa/favicon.ico" failed (2: No such file or directory), client: 192.168.1.252, server: mail.mysite.co.za, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.252:8080"

2011/02/04 13:46:29 [error] 25272#0: *4 open() "/usr/share/pyshared/baruwa/favicon.ico" failed (2: No such file or directory), client: 192.168.1.252, server: mail.mysite.co.za, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.252:8080"

2011/02/04 13:49:24 [error] 25272#0: *7 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.252, server: mail.mysite.co.za, request: "GET /accounts/login/?next=/ HTTP/1.1", upstream: "uwsgi://unix:///var/run/uwsgi/uwsgi-python2.6/baruwa/baruwa.sock:", host: "192.168.1.252:8080"
**

tail -f /var/log/nginx/access.log

**
92.168.1.252 - - [04/Feb/2011:13:46:26 +0200] "GET / HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
192.168.1.252 - - [04/Feb/2011:13:46:26 +0200] "GET /accounts/login/?next=/ HTTP/1.1" 502 172 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
192.168.1.252 - - [04/Feb/2011:13:46:26 +0200] "GET /favicon.ico HTTP/1.1" 404 142 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
192.168.1.252 - - [04/Feb/2011:13:46:29 +0200] "GET /favicon.ico HTTP/1.1" 404 142 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
192.168.1.252 - - [04/Feb/2011:13:49:24 +0200] "GET / HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
192.168.1.252 - - [04/Feb/2011:13:49:24 +0200] "GET /accounts/login/?next=/ HTTP/1.1" 502 172 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
**

tail -f /var/log/nginx/localhost.access.log

**
::1 - - [04/Feb/2011:10:06:20 +0200] "GET / HTTP/1.1" 403 143 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
::1 - - [04/Feb/2011:10:08:23 +0200] "GET / HTTP/1.1" 403 143 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
::1 - - [04/Feb/2011:13:22:59 +0200] "GET /accounts/login/?next=/ HTTP/1.1" 404 143 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
::1 - - [04/Feb/2011:13:34:08 +0200] "GET /accounts/login/?next=/ HTTP/1.1" 404 143 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
::1 - - [04/Feb/2011:13:34:12 +0200] "GET / HTTP/1.1" 403 143 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10"
**

I got the following that is why I'm running on port 8080:
root@mail:/usr/src# /etc/init.d/uwsgi-python2.6 restart && /etc/init.d/nginx restart
* Restarting WSGI server(s) uwsgi-python2.6 [ OK ]
Restarting nginx: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
nginx.

I did double check for same problem form other people but no luck.

Please if anyone can help I would greatly appreciate it

RoboBunny
Reply With Quote
Sponsored Links
 

Bookmarks

Tags
502 bad gateway, nginx baruwa, ubuntu 10.10 spamsnake

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 14:51
Connection timed out on intermail outgoing mails gouravgarg Server Operation 6 5th March 2010 20:31
MailScanner trouble with DBD-MYSQL sergio.arnaldo Server Operation 11 26th August 2009 18:08
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 13:49
SpamSnake SpamAssassin not working? getrav HOWTO-Related Questions 5 23rd June 2008 23:02


All times are GMT +2. The time now is 10:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.