Cannot access "Ubuntu One" contact address book from Evolution

Bug #445781 reported by Josh Holland
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
evolution-couchdb (Ubuntu)
Incomplete
Undecided
Rodrigo Moya

Bug Description

Binary package hint: evolution-couchdb

When I try to access the Ubuntu One address book from Evolution, I get an error saying that the address book cannot be opened and that the detailed error is "Permission denied". I tried setting 755 on the ~/.local and ~/.local/share directories, but no joy. It does however work on my big laptop, but not the netbook (where the original problem is). I have published a screenshot of the error message at http://joshh.co.uk/stuff/evo-cdb.png and will try doing "apport-collect" on the (working) big laptop.

ProblemType: Bug
Architecture: i386
Date: Wed Oct 7 21:27:10 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: wl
Package: evolution-couchdb 0.3.1-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-12.40-generic
SourcePackage: evolution-couchdb
Tags: ubuntu-unr
Uname: Linux 2.6.31-12-generic i686

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

This probably means desktopcouch is not running, so could you please, on a terminal, run (after closing evolution):

$ evolution --force-shutdown
$ /usr/lib/evolution/evolution-data-server-2.28

and then start evolution from the menu as usual, try to open the U1 addressbook, and then attach the output in the terminal to this bug

Changed in evolution-couchdb (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
status: New → Incomplete
Revision history for this message
Josh Holland (jshholland) wrote :
Download full text (6.2 KiB)

josh@alcor:~$ evolution --force-shutdown
Shutting down evolution-data-server-2.28 (Evolution Calendar file and webcal backend / Evolution Addressbook file backend)
Shutting down evolution-alarm-notify (Evolution Calendar alarm notification service)
josh@alcor:~$ /usr/lib/evolution/evolution-data-server-2.28
evolution-data-server-Message: Starting server
e-data-server-Message: adding type `EBookBackendGroupwiseFactory'
e-data-server-Message: adding type `ECalBackendGroupwiseTodosFactory'
e-data-server-Message: adding type `ECalBackendGroupwiseEventsFactory'
e-data-server-Message: adding type `ECalBackendGroupwiseJournalFactory'
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 `EBookBackendGoogleFactory'
e-data-server-Message: adding type `ECalBackendGoogleTodosFactory'
e-data-server-Message: adding type `ECalBackendGoogleEventsFactory'
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 `EBookBackendWebdavFactory'
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 `EBookBackendFileFactory'
e-data-server-Message: adding type `ECalBackendContactsEventsFactory'
e-data-server-Message: adding type `EBookBackendLDAPFactory'
e-data-server-Message: adding type `ECalBackendWeatherEventsFactory'
e-data-server-Message: adding type `EBookBackendCouchDBFactory'
e-data-server-Message: adding type `EBookBackendVCFFactory'
in server_log_handler
evolution-data-server-Message: Server up and running
impl_GNOME_Evolution_Addressbook_BookFactory_getBook
 + file:///home/josh/.evolution/addressbook/local/system
 => 0x9c72230
impl_GNOME_Evolution_Addressbook_Book_open (0x9c72230)

(process:3198): libedata-book-WARNING **: impl_GNOME_Evolution_Addressbook_Book_getBookView ((contains "x-evolution-any-field" ""))

e_data_book_respond_get_book_view
book_view file uref
impl_GNOME_Evolution_Addressbook_BookFactory_getBook
 + couchdb://127.0.0.1
 => 0x9cab550
impl_GNOME_Evolution_Addressbook_Book_open (0x9cab550)
in server_log_handler

** (process:3198): WARNING **: g_set_application_name not set.

liboauth: data to sign='GET&http%3A%2F%2F127.0.0.1%3A48633%2Fcontacts%2F&oauth_callback%3DNone%26oauth_consumer_key%3DwFQjmMwCmw%26oauth_nonce%3Dnkflb6Ql4O2F1bZo3g85_qL9f%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1255038143%26oauth_token%3DcbBvzsmiFy%26oauth_verifier%3DNone%26oauth_version%3D1.0'

liboauth: key='eOkfcXxUNn&acPeCaQKDM'

in server_log_handler
** (process:3198): DEBUG: Parsing oauth_callback=None&oauth_consumer_key=wFQjmMwCmw&oauth_nonce=nkflb6Ql4O2F1bZo3g85_qL9f&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1255038143&oauth_token=cbBvzsmiFy&oauth_verifier=None&oauth_version=1.0&oauth_signature=dlO0nq6nzhzg...

Read more...

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

This log indicates an OAuth invalid authentication, so can you please paste the ~/.config/desktop-couch/desktop-couchdb.ini file and what you have, in gnome-keyring (run seahorse, which is a GUI for viewing the keyring) under the desktopcouch: oauth key, please?

(the desktopcouch: oauth in seahorse can be found by going under 'Passwords: Login', and then scroll down to the 'Desktop Couch user authentication'. There should be 2 of those, one of them, if you double click on it, should have 'desktopcouch: oauth' on the 'Details' tab. For that entry, go to the 1st tab ('Key'), click on the arrow next to 'Password' and enable the 'Show password' check button to see the password.

If you don't want to attach it to the bug, please send me private mail with the data, or even you can just check yourself that the 2 first entries in that password (each entry is separated by a ':' character match what there is under the [oauth_consumer_secrets] section in the ~/.config/desktop-couch/desktop-couchdb.ini and the 2 last entries match what there is under the [oauth_token_secrets] section in that same .ini file. If you are not sure, just send it to me and I'll check

Revision history for this message
Josh Holland (jshholland) wrote :

They do not match.

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

Ok, it might be you ran an early version of desktopcouch, so could you please remove ~/.config/desktop-couch/desktop-couchdb.ini and see if that fixes it? That won't remove any of your data, just will force desktopcouch to generate a new .ini file with new OAuth secrets/tokens. Reopen the bug if that doesn't fix it, please

Changed in evolution-couchdb (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Josh Holland (jshholland) wrote :

I now have a different error message: Address Book does not exist.

Changed in evolution-couchdb (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Is desktopcouch installed/running?

And please get the e-d-s output again as explained in comment #2

Revision history for this message
Josh Holland (jshholland) wrote :

Seems to have gone away now.

Changed in evolution-couchdb (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
CydeSwype (ircone) wrote :

I'm having a similar problem. Removed the ini file referenced above and this is what I get from evolution-data-server:

impl_GNOME_Evolution_Addressbook_BookFactory_getBook
 + file:///home/ian/.evolution/addressbook/local/system
 => 0x9471860
impl_GNOME_Evolution_Addressbook_Book_open (0x9471860)

(process:4037): libedata-book-WARNING **: impl_GNOME_Evolution_Addressbook_Book_getBookView ((contains "x-evolution-any-field" ""))

e_data_book_respond_get_book_view
book_view file uref
impl_GNOME_Evolution_Addressbook_BookFactory_getBook
 + couchdb://127.0.0.1
 => 0x9471af0
impl_GNOME_Evolution_Addressbook_Book_open (0x9471af0)
in server_log_handler

** (process:4037): WARNING **: Couldn't get port for desktopcouch: Message did not receive a reply (timeout by message bus)

Changed in evolution-couchdb (Ubuntu):
status: Invalid → New
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

CydeSwype, can you try restarting desktopcouch as stated in http://www.freedesktop.org/wiki/Specifications/desktopcouch/Documentation/Troubleshooting please?

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

Have you tried restarting desktopcouch as stated above?

Changed in evolution-couchdb (Ubuntu):
status: New → Triaged
status: Triaged → Incomplete
Revision history for this message
PeterPall (peterpall) wrote :

Won't help - at least on my computer. For excessive debug output see http://bugs.launchpad.net/ubuntu/+source/evolution-couchdb/+bug/724639

Revision history for this message
PeterPall (peterpall) wrote :

Oops... ...sorry. Did everything *except* restarting evolution-data-server:

On my computer the directory /usr/lib/evolution/2.32/ does only contain the following four programs:
 - evolution-addressbook-clean
 - evolution-alarm-notify
 - evolution-addressbook-export
 - evolution-backup

After the last few updates desktopcouch has started working together flawlessly with dbus:
gunter@book:~/src$ dbus-send --session --dest=org.desktopcouch.CouchDB --print-reply --type=method_call / org.desktopcouch.CouchDB.getPort
method return sender=:1.100 -> dest=:1.126 reply_serial=2
   int32 47197

So the bug probably should be named "evolution-data-server missing on natty": I have installed the homonymous package ("evolution-data-server"). And to make completely sure I have also purged evolution-data-server and evolution-data-server-common along with evolution itself (don't do this at home: It will uninstall all the things that keep network-manager working so re-installing these tools is only possible for an experienced user) and re-installed the packages again: My original problems with ubuntuone were caused by the fact some files were missing after my first attempt to install them. But even that didn't provide me with a the right binary.

Attached a list of all files containing evolution-data-server that are installed on my system.

Revision history for this message
PeterPall (peterpall) wrote :

Think it is today's service disruption. But after switching to the "services" tab in the ubuntuone control center I get the following result:

gunter@book:~/$ session --print-reply --dest=org.desktopcouch.CouchDB / org.desktopcouch.CouchDB.getPort
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

If I don't actually try to use couchdb before this command returns a port number instead.

Another thing that seems to indicate a failure:
If I go to the URL file:///home/(username)/.local/share/desktop-couch/couchdb.html

the page I get redirected to returns the following error messages:
Server information could not be retrieved: TypeError: $.httpData is not a function
An error occurred retrieving the list of all databases: TypeError: $.httpData is not a function

Revision history for this message
PeterPall (peterpall) wrote :

Ok... ...found out the reason for the problem with file:///home/(username)/.local/share/desktop-couch/couchdb.html:
Bug #716237 - which is clearly unrelated to this issue.

Revision history for this message
PeterPall (peterpall) wrote :

Seems like couchdb is constantly crashing on my system. See Bug #725979 for details.

Revision history for this message
PeterPall (peterpall) wrote :

The crashing couchdb was fixed by the last update. Contacts still don't seem to sync, though.

Revision history for this message
PeterPall (peterpall) wrote :
Revision history for this message
PeterPall (peterpall) wrote :

Found it out: In natty the said program is named e-addressbook-factory. But I think things are so different on my machine that I should report a separate bug.

Revision history for this message
PeterPall (peterpall) wrote :
Revision history for this message
PeterPall (peterpall) wrote :

Reported my addressbook problem as Bug #727995.

Revision history for this message
PeterPall (peterpall) wrote :

Found a way to fix the problem. Will mark this bug as a duplicate of the one i described the way to do this.

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.