How to debug?

58 views
Skip to first unread message

arnuschky

unread,
Jan 3, 2014, 11:55:55 AM1/3/14
to gevent-...@googlegroups.com
Hello,

we are facing the problem that many users report connection issues, but with out test browsers everything seems to work alright. What might be the causes of the connection problems, and how to debug them on production?

Cheers,
Arnuschky

Alexandre Bourget

unread,
Jan 3, 2014, 3:34:27 PM1/3/14
to gevent-...@googlegroups.com
What problems exactly ?

Alexandre


--
You received this message because you are subscribed to the Google Groups "gevent-socketio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevent-socket...@googlegroups.com.
To post to this group, send email to gevent-...@googlegroups.com.
Visit this group at http://groups.google.com/group/gevent-socketio.
For more options, visit https://groups.google.com/groups/opt_out.

Arnuschky

unread,
Jan 4, 2014, 3:33:10 AM1/4/14
to gevent-...@googlegroups.com

Users claim that they cannot connect. Unfortunately, I have only the
user agent strings (and some other info we get automatically from their
browsers).

So in a way my problem is exactly your question: what is actually the
problem? Can I somehow see from the server side that a connection fails?
Alternatively, I could post some info from the user's browser to the
server when that happens - but how to match the server logs and the user's?

Arnuschky

On 03/01/14 21:34, Alexandre Bourget wrote:
> What problems exactly ?
>
> Alexandre
>
>
> On Fri, Jan 3, 2014 at 11:55 AM, arnuschky <arnu...@xylon.de
> <mailto:arnu...@xylon.de>> wrote:
>
> Hello,
>
> we are facing the problem that many users report connection issues,
> but with out test browsers everything seems to work alright. What
> might be the causes of the connection problems, and how to debug
> them on production?
>
> Cheers,
> Arnuschky
>
> --
> You received this message because you are subscribed to the Google
> Groups "gevent-socketio" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to gevent-socket...@googlegroups.com
> <mailto:gevent-socketio%2Bunsu...@googlegroups.com>.
> To post to this group, send email to
> gevent-...@googlegroups.com
> <mailto:gevent-...@googlegroups.com>.

Carlos Aguilar

unread,
Jan 29, 2014, 6:32:49 PM1/29/14
to gevent-...@googlegroups.com

Hello,

I want help to debug too.

I am receiving many times this error:

Traceback (most recent call last):

  File "/home/ubuntu/carlos/venv/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 508, in handle_one_response

    self.run_application()

  File "/home/ubuntu/carlos/venv/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 495, in run_application

    self.process_result()

  File "/home/ubuntu/carlos/venv/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 490, in process_result

    self.socket.sendall('0\r\n\r\n')

  File "/home/ubuntu/carlos/venv/local/lib/python2.7/site-packages/gevent/socket.py", line 458, in sendall

    data_sent += self.send(_get_memory(data, data_sent), flags)

  File "/home/ubuntu/carlos/venv/local/lib/python2.7/site-packages/gevent/socket.py", line 435, in send

    return sock.send(data, flags)

error: [Errno 32] Broken pipe

{u'CSRF_COOKIE': u'xxxxxx',

 u'CSRF_COOKIE_USED': True,

 'GATEWAY_INTERFACE': 'CGI/1.1',

 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',

 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',

 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',

 'HTTP_CONNECTION': 'upgrade',

 'HTTP_COOKIE': 'sessionid=xxxxxxx; csrftoken=xxxxxxx',

 'HTTP_HOST': 'dev.socialdashboard.com',

 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36',

 'HTTP_X_FORWARDED_FOR': 'xx.xx.xx.xx',

 'HTTP_X_NGINX_PROXY': 'true',

 'HTTP_X_REAL_IP': 'xx.xx.xx.xx',

 'PATH_INFO': u'/',

 'QUERY_STRING': '',

 'REMOTE_ADDR': '127.0.0.1',

 'REMOTE_PORT': '50420',

 'REQUEST_METHOD': 'GET',

 'SCRIPT_NAME': u'',

 'SERVER_NAME': 'ip.compute.internal',

 'SERVER_PORT': '8000',

 'SERVER_PROTOCOL': 'HTTP/1.1',

 'SERVER_SOFTWARE': 'gevent/1.0 Python/2.7',

 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fac9658a270>,

 'wsgi.input': <gevent.pywsgi.Input object at 0x4613e50>,

 'wsgi.multiprocess': False,

 'wsgi.multithread': False,

 'wsgi.run_once': False,

 'wsgi.url_scheme': 'http',

 'wsgi.version': (1, 0)} failed with error


What can cause errors like this and how can I debug??


Best Regards

Alexandre Bourget

unread,
Jan 30, 2014, 11:45:11 AM1/30/14
to gevent-...@googlegroups.com
It seems the websocket was just closed, that's what a broken pipe error is.

So I guess you should expect websockets to suddenly close from time to time, but the server should handle that more properly.

I think we'd need to have handling of that type of error, and close the socket and wind down the Namespace, trigger the "disconnected" events, etc..

Unfortunately, I don't have time to do this right now.

Alexandre


--
Reply all
Reply to author
Forward
0 new messages