Evolution unable to open CouchDB address book

Bug #754152 reported by sarton85
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
desktopcouch (Ubuntu)
Fix Released
Undecided
Rodrigo Moya

Bug Description

Binary package hint: evolution

I did just install Ubuntu 11.04 a few days ago. Just before that I synced all my Evolution contacts to the Ubuntu One cloud. Now after the reinstall I want to sync all my contacts back to Evolution and followed the tutorial the Ubuntu One website. Wheneven I open Evolution and click the CouchDB address book it is giving the following error;

This address book cannot be opened. This either means that an incorrect URI was entered, or the server is unreachable.
Detailed error message: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._e_2ddata_2dbook_2derror.Code100: Cannot open book: Could not create DesktopcouchSession object.

I have also attached a screenshot of the problem. Please let me know if you need any more information.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: evolution 2.32.2-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.38-8.41-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Fri Apr 8 01:09:09 2011
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: evolution
UpgradeStatus: No upgrade log present (probably fresh install)

EDIT: I don't have any problems with my internet connection...

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

Could you please quit evolution and run the following on a terminal:

$ killall -9 e-addressbook-factory
$ export COUCHDB_DEBUG_MESSAGES=1
$ /usr/lib/evolution/e-addressbook-factory

then start evolution and try accessing the U1 addressbook, and when it fails, go back to the terminal and copy the whole output and paste it here, please

Changed in evolution (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
status: New → In Progress
Revision history for this message
sarton85 (sarton85) wrote :

Did it, this is the output;

sebastiaan@aspire-desktop:~$ killall -9 e-addressbook-factory
e-addressbook-factory: no process found
sebastiaan@aspire-desktop:~$ export COUCHDB_DEBUG_MESSAGES=1
sebastiaan@aspire-desktop:~$ /usr/lib/evolution/e-addressbook-factory
e-data-server-Message: adding type `EBookBackendGalFactory'
e-data-server-Message: adding type `EBookBackendExchangeFactory'
e-data-server-Message: adding type `EBookBackendGroupwiseFactory'
e-data-server-Message: adding type `EBookBackendFileFactory'
e-data-server-Message: adding type `EBookBackendCouchDBFactory'
e-data-server-Message: adding type `EBookBackendVCFFactory'
e-data-server-Message: adding type `EBookBackendGoogleFactory'
e-data-server-Message: adding type `EBookBackendWebdavFactory'
e-data-server-Message: adding type `EBookBackendLDAPFactory'
Migrating cached backend data
Migrating local backend data
  rmdir /home/sebastiaan/.evolution
  FAILED: Directory not empty (contents follows)
          tasks
Server is up and running...

** (e-addressbook-factory:3557): WARNING **: Could not get OAuth tokens from keyring: No matching results
Bye.
sebastiaan@aspire-desktop:~$

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

Ok, this is desktopcouch not updating the keyring tokens. Can you please, on a terminal, after having quit evolution:

$ killall -9 e-addressbook-factory
$ /usr/lib/desktopcouch/desktopcouch-stop
$ rm ~/.config/desktop-couch/desktop-couchdb.ini

then, restart evolution and try to access the U1 addressbook. Does it work?

affects: evolution (Ubuntu) → desktopcouch (Ubuntu)
Changed in desktopcouch (Ubuntu):
assignee: Rodrigo Moya (rodrigo-moya) → nobody
status: In Progress → Triaged
Revision history for this message
sarton85 (sarton85) wrote :

The original error message is now gone. But after clicking the address book it is saying, there are no items to show in this view, while I have over 50 contacts on the cloud. Then, after about 30 seconds it is coming with the following error message;

"This address book cannot be opened. This either means that an incorrect URI was entered, or the server is unreachable.
Detailed error message: Timeout was reached"

I have now repeated this process;

$ killall -9 e-addressbook-factory
$ export COUCHDB_DEBUG_MESSAGES=1
$ /usr/lib/evolution/e-addressbook-factory

And started evolution again, clicked the address book and the original output appeared again. Now with another output;

sebastiaan@aspire-desktop:~$ killall -9 e-addressbook-factory
e-addressbook-factory: no process found
sebastiaan@aspire-desktop:~$ /usr/lib/desktopcouch/desktopcouch-stop
Apache CouchDB has been shutdown.
sebastiaan@aspire-desktop:~$ rm ~/.config/desktop-couch/desktop-couchdb.ini
sebastiaan@aspire-desktop:~$ killall -9 e-addressbook-factory
sebastiaan@aspire-desktop:~$ export COUCHDB_DEBUG_MESSAGES=1
sebastiaan@aspire-desktop:~$ /usr/lib/evolution/e-addressbook-factory
e-data-server-Message: adding type `EBookBackendGalFactory'
e-data-server-Message: adding type `EBookBackendExchangeFactory'
e-data-server-Message: adding type `EBookBackendGroupwiseFactory'
e-data-server-Message: adding type `EBookBackendFileFactory'
e-data-server-Message: adding type `EBookBackendCouchDBFactory'
e-data-server-Message: adding type `EBookBackendVCFFactory'
e-data-server-Message: adding type `EBookBackendGoogleFactory'
e-data-server-Message: adding type `EBookBackendWebdavFactory'
e-data-server-Message: adding type `EBookBackendLDAPFactory'
Migrating cached backend data
Migrating local backend data
  rmdir /home/sebastiaan/.evolution
  FAILED: Directory not empty (contents follows)
          tasks
Server is up and running...

** (e-addressbook-factory:3978): WARNING **: Couldn't get desktopcouch port: GDBus.Error:org.freedesktop.DBus.Python.RuntimeError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/platform/linux/ipc.py", line 50, in getPort
    port = int(direct_access_find_port(ctx=self.ctx))
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/platform/linux/__init__.py", line 172, in direct_access_find_port
    return direct_access_find_port(pid, ctx, retries_left - 1)
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/platform/linux/__init__.py", line 172, in direct_access_find_port
    return direct_access_find_port(pid, ctx, retries_left - 1)
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/platform/linux/__init__.py", line 172, in direct_access_find_port
    return direct_access_find_port(pid, ctx, retries_left - 1)
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/platform/linux/__init__.py", line 173, in direct_access_find_port
    raise RuntimeError("Unable to find listening port")
RuntimeError: Unable to find listening port

Revision history for this message
sarton85 (sarton85) wrote :

* I mend to say the original error appeared again.

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

Ok, repeat the whole process, but please run this before the other commands:

$ /usr/lib/desktopcouch/desktopcouch-stop

then kill all desktopcouch-service process (ps aux | grep desktopcouch) and then repeat the other commands.

Revision history for this message
sarton85 (sarton85) wrote :

This is what I am getting;

sebastiaan@aspire-desktop:~$ /usr/lib/desktopcouch/desktopcouch-stop
Apache CouchDB has been shutdown.
sebastiaan@aspire-desktop:~$ ps aux | grep desktopcouch
1000 1672 0.3 0.8 19596 12832 ? S Apr08 0:04 /usr/bin/python /usr/lib/desktopcouch/desktopcouch-service
1000 1726 0.2 0.7 19900 12132 ? SN Apr08 0:03 /usr/bin/python /usr/lib/desktopcouch/desktopcouch-service
1000 1727 0.0 0.0 0 0 ? Z Apr08 0:00 [desktopcouch-se] <defunct>
1000 2319 0.0 0.0 4152 848 pts/0 S+ 00:12 0:00 grep --color=auto desktopcouch
sebastiaan@aspire-desktop:~$ killall -9 e-addressbook-factory
sebastiaan@aspire-desktop:~$ /usr/lib/desktopcouch/desktopcouch-stop
Apache CouchDB has been shutdown.
sebastiaan@aspire-desktop:~$ rm ~/.config/desktop-couch/desktop-couchdb.ini
sebastiaan@aspire-desktop:~$ killall -9 e-addressbook-factory
e-addressbook-factory: no process found
sebastiaan@aspire-desktop:~$ export COUCHDB_DEBUG_MESSAGES=1
sebastiaan@aspire-desktop:~$ /usr/lib/evolution/e-addressbook-factory
e-data-server-Message: adding type `EBookBackendGalFactory'
e-data-server-Message: adding type `EBookBackendExchangeFactory'
e-data-server-Message: adding type `EBookBackendGroupwiseFactory'
e-data-server-Message: adding type `EBookBackendFileFactory'
e-data-server-Message: adding type `EBookBackendCouchDBFactory'
e-data-server-Message: adding type `EBookBackendVCFFactory'
e-data-server-Message: adding type `EBookBackendGoogleFactory'
e-data-server-Message: adding type `EBookBackendWebdavFactory'
e-data-server-Message: adding type `EBookBackendLDAPFactory'
Migrating cached backend data
Migrating local backend data
  rmdir /home/sebastiaan/.evolution
  FAILED: Directory not empty (contents follows)
          tasks
Server is up and running...

** (e-addressbook-factory:2340): WARNING **: Couldn't get desktopcouch port: Timeout was reached

Revision history for this message
sarton85 (sarton85) wrote :

Importing contacts from the cloud just started to work normally after the last desktopcouch update. Seems to me that this bug is fixed by the desktopcouch team.

@Rodrigo, thanks for your support!

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

hmm, where you using the U1 nightlies PPA? It had some broken couchdb packages, so maybe the last update you mention replaced it and so fixed the issue. Anyway, closing the bug, so please reopen it if it happens again

Changed in desktopcouch (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Garry Williams (garryd-williams) wrote :

I'm having a similar issue ever since upgrading to 11.04 Beta 2. The error message I receive is:

"Unable to open address book
This address book cannot be opened. This either means that an incorrect URI was entered, or the server is unreachable.

Detailed error message: Timeout was reached"

After running $ /usr/lib/evolution/e-addressbook-factory the out put I get is:

e-data-server-Message: adding type `EBookBackendWebdavFactory'
e-data-server-Message: adding type `EBookBackendGroupwiseFactory'
e-data-server-Message: adding type `EBookBackendVCFFactory'
e-data-server-Message: adding type `EBookBackendGoogleFactory'
e-data-server-Message: adding type `EBookBackendGalFactory'
e-data-server-Message: adding type `EBookBackendExchangeFactory'
e-data-server-Message: adding type `EBookBackendFileFactory'
e-data-server-Message: adding type `EBookBackendCouchDBFactory'
e-data-server-Message: adding type `EBookBackendLDAPFactory'
Migrating cached backend data
Migrating local backend data
  rmdir /home/dee/.evolution
  FAILED: Directory not empty (contents follows)
          mail
Server is up and running...

I've been having this issue for the past week and every troubleshooting technique I use seems to fail. Any help would be appreciated.

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

Gary, can you please run the following on a terminal:

$ apt-cache policy evolution-couchdb desktopcouch couchdb couchdb-bin

Revision history for this message
Garry Williams (garryd-williams) wrote :

Sorry Rodrigo for the long delay!

After running the command on the terminal here was my output:

uchdb-bin
couchdb-bin:
  Installed: 1.0.1-0ubuntu15
  Candidate: 1.0.1-0ubuntu15
  Version table:
 *** 1.0.1-0ubuntu15 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status
couchdb:
  Installed: 1.0.1-0ubuntu15
  Candidate: 1.0.1-0ubuntu15
  Version table:
 *** 1.0.1-0ubuntu15 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status
desktopcouch:
  Installed: 1.0.7-0ubuntu2
  Candidate: 1.0.7-0ubuntu2
  Version table:

Revision history for this message
Garry Williams (garryd-williams) wrote :

Sorry again Rodrigo, I didn't copy the full output. Here you go:

dee@NicandDeeLinux:~$ apt-cache policy evolution-couchdb desktopcouch couchdb couchdb-bin
couchdb-bin:
  Installed: 1.0.1-0ubuntu15
  Candidate: 1.0.1-0ubuntu15
  Version table:
 *** 1.0.1-0ubuntu15 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status
couchdb:
  Installed: 1.0.1-0ubuntu15
  Candidate: 1.0.1-0ubuntu15
  Version table:
 *** 1.0.1-0ubuntu15 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status
desktopcouch:
  Installed: 1.0.7-0ubuntu2
  Candidate: 1.0.7-0ubuntu2
  Version table:
 *** 1.0.7-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status
evolution-couchdb:
  Installed: 0.5.3-0ubuntu2
  Candidate: 0.5.3-0ubuntu2
  Version table:
 *** 0.5.3-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status
dee@NicandDeeLinux:~$

Revision history for this message
Omega Soemarso (omega-winfos) wrote :

I got the same problem & did the same and got the following:
 couchdb-bin:
  Installed: 1.0.1-0ubuntu15
  Candidate: 1.0.1-0ubuntu15
  Version table:
 *** 1.0.1-0ubuntu15 0
        500 http://archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status
couchdb:
  Installed: (none)
  Candidate: 1.0.1-0ubuntu15
  Version table:
     1.0.1-0ubuntu15 0
        500 http://archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
desktopcouch:
  Installed: 1.0.7-0ubuntu2
  Candidate: 1.0.7-0ubuntu2
  Version table:
 *** 1.0.7-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status
evolution-couchdb:
  Installed: 0.5.3-0ubuntu2
  Candidate: 0.5.3-0ubuntu2
  Version table:
 *** 0.5.3-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

Changed in desktopcouch (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
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.