← Back to team overview

ubuntu-bugcontrol team mailing list archive

[Bug 522538] Re: gwibber-service crashed with error in connect()

 

I have a patch for desktopcouch, but I can't decide on the best way to
handle this down.

desktopcouch is a thin wrapper around python-couchdb, and in creating
and using views, client programs access and use python-couchdb functions
directly.  Here's one problem I can't fix inside desktopcouch without
adding a layer between them.

dbus.exceptions.DBusException: org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 413, in Refresh
    self.refresh()
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 558, in refresh
    operations = list(self.collector.get_operations())
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 169, in get_operations
    for o in self.account_to_operations(acct):
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 149, in account_to_operations
    args = self.handle_max_id(acct, opname)
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 118, in handle_max_id
    result = view[[id, opname]][[id, opname]].rows
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 893, in rows
    self._fetch()
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 881, in _fetch
    data = self.view._exec(self.options)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 766, in _exec
    resp, data = self.resource.get(**self._encode_options(options))
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 978, in get
    return self._request('GET', path, headers=headers, **params)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1014, in _request
    resp, data = _make_request()
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1009, in _make_request
    body=body, headers=headers)
  File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 1129, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 901, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 871, in _conn_request
    response = conn.getresponse()
  File "/usr/lib/python2.6/httplib.py", line 988, in getresponse
    method=self._method)
  File "/usr/lib/python2.6/httplib.py", line 330, in __init__
    self.fp = sock.makefile('rb', 0)
AttributeError: 'NoneType' object has no attribute 'makefile'

Note, no "desktopcouch" in there.  :(

I'll post what I have that re-connects CouchDatabase objects, but views
are harder to fix.

-- 
gwibber-service crashed with error in connect()
https://bugs.launchpad.net/bugs/522538
You received this bug notification because you are a member of Ubuntu
Bug Control, which is a subscriber of a duplicate bug (539781).