webplatform / annotation-service

Hypothes.is’ container project to customize for notes.webplatform.org
1 stars 0 forks source link

When I login, h dies #15

Closed renoirb closed 10 years ago

renoirb commented 10 years ago

After changing /wpd/callback to /callback (commit 215750b59db1ef27cb6652106dcd6db3384049c7) and adjusting oauth keys in configuration.

When I login, or logoff, it dies.

2014-10-06 15:01:23,071 [25857] [INFO] Worker reloading: /srv/webplatform/notes-server/notes_server/__init__.py modified
2014-10-06 15:01:30,975 [25852] [INFO] Handling signal: term
2014-10-06 15:01:53,102 [25857] [WARNING] Worker graceful timeout (pid:25857)
2014-10-06 15:01:54,104 [25857] [ERROR] Error handling request
Traceback (most recent call last):
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gunicorn/workers/async.py", line 44, in handle
    req = six.next(parser)
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gunicorn/http/parser.py", line 40, in __next__
    self.mesg = self.mesg_class(self.cfg, self.unreader, self.req_count)
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gunicorn/http/message.py", line 151, in __init__
    super(Request, self).__init__(cfg, unreader)
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gunicorn/http/message.py", line 51, in __init__
    unused = self.parse(self.unreader)
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gunicorn/http/message.py", line 163, in parse
    self.get_data(unreader, buf, stop=True)
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gunicorn/http/message.py", line 154, in get_data
    data = unreader.read()
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gunicorn/http/unreader.py", line 38, in read
    d = self.chunk()
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gunicorn/http/unreader.py", line 65, in chunk
    return self.sock.recv(self.mxchunk)
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gevent/socket.py", line 392, in recv
    self._wait(self._read_event)
  File "/srv/webplatform/notes-server/local/lib/python2.7/site-packages/gevent/socket.py", line 292, in _wait
    assert watcher.callback is None, 'This socket is already used by another greenlet: %r' % (watcher.callback, )
AssertionError: This socket is already used by another greenlet: <bound method Waiter.switch of <gevent.hub.Waiter object at 0x7f1fba1e0410>>

Ran ./bootstrap but doesn´t change anything.

To reproduce

You have to override your local computer hosts file to pint to the latest deployment of h.

cat /etc/hosts | grep notes
208.113.157.144  notes.webplatform.org
tilgovi commented 10 years ago

I can't reproduce. I think you're not giving the full picture.

Also, I do not understand your hosts hack. That points notes.webplatform.org to that IP address. But what you need is for the domain to point to the local machine if you're testing locally. Or are you testing this on that server?

Finally, are you testing through nginx? How are you invoking notes-server?

Also, stop saying "latest deployment of h". This is not h. This is notes-server.

renoirb commented 10 years ago

Ok, sorry for the naming confusion.

The VM at IP 208.113.157.144 is a VM running on our OpenStack cluster. That’s the VM on which I’m testing deployment of notes-server and it runs w/ NGINX. I do NOT have a local environment (yet), my local computer has a hosts entry pointing to it.

tilgovi commented 10 years ago

I don't think we're seeing this anymore, but re-open if I'm incorrect.