can't delete contacts in the couchDB adressbook in evolution

Bug #675796 reported by Loïc Alejandro
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
evolution-couchdb
New
Undecided
Unassigned
ubuntuone-client (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: ubuntuone-client

I synced my contacts to U1 via evolution.
Now, each time I try to delete a contact in the couchDB adressbook, it says "deleting failed, other error".

Revision history for this message
Loïc Alejandro (loic-alejandro) wrote :

When I activate the couchDB adressbook, if I click on the couchDB adressbook it says that the evolution adressBook crashed unexpectedly. And after some minutes evolution freezes.

Revision history for this message
Duane Hinnen (duanedesign) wrote :

Loic,
Sorry to hear U1 is not working as expected. WE would greatly appreciate if you could help us further debug this issue. Please try the following. Open a Terminal and run this command:

evolution --force-shutdown

then run this command:

/usr/lib/evolution/evolution-data-server-2.28

Then, start Evolution again and try to open again the CouchDB addressbook. If it fails, have a look at the output on the terminal, it should have some hints as to why it failed. Please post that output here.

thank you,
duanedesign

Revision history for this message
Loïc Alejandro (loic-alejandro) wrote :

I don't have any evolution-data-server-2.28 in /usr/lib/evolution/

Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Ok, then, you have a newest evolution, so run /usr/lib/evolution/e-addressbook-factory instead

Revision history for this message
Loïc Alejandro (loic-alejandro) wrote :

The output :
lalejand@lalejand-laptop:~$ /usr/lib/evolution/e-addressbook-factory
e-data-server-Message: adding type `ECalBackendExchangeEventsFactory'
e-data-server-Message: adding type `ECalBackendExchangeTodosFactory'
e-data-server-Message: adding type `ECalBackendWeatherEventsFactory'
e-data-server-Message: adding type `EBookBackendLDAPFactory'
e-data-server-Message: adding type `EBookBackendVCFFactory'
e-data-server-Message: adding type `EBookBackendFileFactory'
e-data-server-Message: adding type `ECalBackendFileTodosFactory'
e-data-server-Message: adding type `ECalBackendFileEventsFactory'
e-data-server-Message: adding type `ECalBackendFileJournalFactory'
e-data-server-Message: adding type `ECalBackendContactsEventsFactory'
e-data-server-Message: adding type `EBookBackendGroupwiseFactory'
e-data-server-Message: adding type `EBookBackendExchangeFactory'
e-data-server-Message: adding type `EBookBackendGalFactory'
e-data-server-Message: adding type `ECalBackendGoogleTodosFactory'
e-data-server-Message: adding type `ECalBackendGoogleEventsFactory'
e-data-server-Message: adding type `ECalBackendHttpTodosFactory'
e-data-server-Message: adding type `ECalBackendHttpEventsFactory'
e-data-server-Message: adding type `ECalBackendHttpMemosFactory'
e-data-server-Message: adding type `EBookBackendCouchDBFactory'
e-data-server-Message: adding type `ECalBackendCalDAVEventsFactory'
e-data-server-Message: adding type `ECalBackendCalDAVTodosFactory'
e-data-server-Message: adding type `ECalBackendCalDAVMemosFactory'
e-data-server-Message: adding type `EBookBackendGoogleFactory'
e-data-server-Message: adding type `EBookBackendWebdavFactory'
e-data-server-Message: adding type `ECalBackendGroupwiseTodosFactory'
e-data-server-Message: adding type `ECalBackendGroupwiseEventsFactory'
e-data-server-Message: adding type `ECalBackendGroupwiseJournalFactory'
Server is up and running...
book_view file uref
**
Json:ERROR:./json-scanner.c:895:json_scanner_get_unichar: assertion failed: (g_unichar_validate (uchar))
Abandon (core dumped)

Revision history for this message
Loïc Alejandro (loic-alejandro) wrote :
Revision history for this message
Duane Hinnen (duanedesign) wrote :

I am unable to right-click and delete blank contacts and a contact that begins with '?' from evolution.

(e-addressbook-factory:5811): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed

(e-addressbook-factory:5811): Json-CRITICAL **: json_node_get_node_type: assertion `node != NULL' failed
** (e-addressbook-factory:5811): DEBUG: Error deleting document: Bad Request

Revision history for this message
Loïc Alejandro (loic-alejandro) wrote :
Download full text (5.3 KiB)

In the replication log file, I have this kind of feedback :

2010-11-19 17:31:10,762 DEBUG started replicating
2010-11-19 17:31:10,763 INFO Connecting to http://localhost:42210/.
2010-11-19 17:31:10,764 ERROR replication of discovered hosts aborted
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/desktopcouch/replication.py", line 81, in do_all_replication
    dbus_io.get_seen_paired_hosts(uri=local_uri):
  File "/usr/lib/python2.6/dist-packages/desktopcouch/pair/couchdb_pairing/dbus_io.py", line 139, in get_seen_paired_hosts
    pairing_encyclopedia = couchdb_io.get_all_known_pairings(uri=uri)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/pair/couchdb_pairing/couchdb_io.py", line 193, in get_all_known_pairings
    db = _get_db("management", uri=uri, ctx=ctx)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/pair/couchdb_pairing/couchdb_io.py", line 62, in _get_db
    return server.CouchDatabase(name, create=create, uri=uri, ctx=ctx)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server.py", line 56, in __init__
    server_class=server_class, oauth_tokens=oauth_tokens, ctx=ctx)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 155, in __init__
    self._reconnect()
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server.py", line 64, in _reconnect
    super(CouchDatabase, self)._reconnect(uri=uri)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 187, in _reconnect
    if self._database_name not in self._server:
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 124, in __contains__
    self.resource.head(validate_dbname(name))
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 981, in head
    return self._request('HEAD', 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'
2010-11-19 17:31:10,766 INFO Connecting to http://localhost:42210/.
2010-11-19 17:31:10,768 ERROR replication of services aborted
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/desktopcouch/replication.py", line 131, in do_all_replication
    couchdb_io.get_static_paired_hosts(port=local_port):
  File "/usr/lib/python2.6/dis...

Read more...

Revision history for this message
Loïc Alejandro (loic-alejandro) wrote :

Is there a workaround I can do to get my contact sync work ?
Or some other tests to help resolve the problem ?

Revision history for this message
Dark7Man (7darkman) wrote :

I'm having this issue too

as well as having problems like - editing CouchDB or Ubuntu One Contacts at all and syncing with Ubuntu One!

Revision history for this message
Loïc Alejandro (loic-alejandro) wrote :

When I try to delete a contact : e-addressbook-factiry says :
(e-addressbook-factory:21930): Json-CRITICAL **: json_object_get_string_member: assertion `node != NULL' failed

(e-addressbook-factory:21930): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed

(e-addressbook-factory:21930): Json-CRITICAL **: json_node_get_node_type: assertion `node != NULL' failed
** (e-addressbook-factory:21930): DEBUG: Error deleting document: Bad Request

Revision history for this message
Roman Yepishev (rye) wrote :

Marking this as a duplicate of LP:673568 since the reason why contacts cannot be edited or deleted is the corrupted internal structures of the document that is being JSON-encoded via couchdb-glib and then sent to CouchDB. CouchDB does not like invalid keys in the document and returns Bad Request.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.