View Single Post
  #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