I’m using the latest python SDK (1.2) with gevent and I’m getting timeout errors on simple get operations. The cluster has 3 couchbase nodes hosted on Amazon and the client runs locally on one of them. When the client is restarted the errors no longer appear.
The exception I get is:
Traceback (most recent call last):
File "/home/cep/cep/wamp/cra.py", line 67, in rpc_call
result = self.procedures.call(uri, args)
File "/usr/lib/python2.7/site-packages/geventwebsocket/protocols/wamp.py", line 62, in call
return proc[1](*args)
File "/home/cep/cep/users.py", line 180, in linkFacebookByAccessToken
user = User(response['email'])
File "/home/cep/cep/couchbasekit/document.py", line 55, in __init__
if self._fetch_data(get_lock) is False:
File "/home/cep/cep/couchbasekit/document.py", line 172, in _fetch_data
result = self.bucket.get(self.doc_id)
File "/usr/lib64/python2.7/site-packages/gcouchbase/connection.py", line 106, in ret
return self._waitwrap(meth(self, *args, **kwargs))
File "/usr/lib64/python2.7/site-packages/gcouchbase/connection.py", line 102, in _waitwrap
return get_hub().switch()
File "/usr/lib64/python2.7/site-packages/gevent/hub.py", line 331, in switch
return greenlet.switch(self)
TimeoutError: