desktopcouch should not require Avahi

Bug #504282 reported by Spirit
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
desktopcouch
Confirmed
Undecided
Stuart Langridge

Bug Description

Sorry, I do not speak English.
Evolution can not create an address book CouchDB.
Linux main 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux

spirit@main:~$ /usr/lib/evolution/evolution-data-server-2.28
evolution-data-server-Message: Starting server
e-data-server-Message: adding type `EBookBackendVCFFactory'
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 `EBookBackendCouchDBFactory'
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 `ECalBackendGoogleTodosFactory'
e-data-server-Message: adding type `ECalBackendGoogleEventsFactory'
e-data-server-Message: adding type `ECalBackendContactsEventsFactory'
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 `EBookBackendLDAPFactory'
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 `ECalBackendWeatherEventsFactory'
e-data-server-Message: adding type `EBookBackendGoogleFactory'
e-data-server-Message: adding type `EBookBackendGroupwiseFactory'
e-data-server-Message: adding type `EBookBackendFileFactory'
in server_log_handler
evolution-data-server-Message: Server up and running
impl_GNOME_Evolution_Addressbook_BookFactory_getBook
 + file:///home/spirit/.evolution/addressbook/local/system
 => 0x9d6f2f0
impl_GNOME_Evolution_Addressbook_Book_open (0x9d6f2f0)

(process:16267): 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
 => 0x9d83a60
impl_GNOME_Evolution_Addressbook_Book_open (0x9d83a60)
in server_log_handler

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

liboauth: data to sign='GET&http%3A%2F%2F127.0.0.1%3A55430%2Fcontacts%2F&oauth_callback%3DNone%26oauth_consumer_key%3DEkOjyNekgo%26oauth_nonce%3DZQjnGzJK0OVvX6t%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1262876957%26oauth_token%3DxfMYvUuQhG%26oauth_verifier%3DNone%26oauth_version%3D1.0'

liboauth: key='HwTgOCgBvd&yMdSuLGJYH'

in server_log_handler
** (process:16267): DEBUG: Parsing oauth_callback=None&oauth_consumer_key=EkOjyNekgo&oauth_nonce=ZQjnGzJK0OVvX6t&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1262876957&oauth_token=xfMYvUuQhG&oauth_verifier=None&oauth_version=1.0&oauth_signature=2qbYvTC0HKfy6Nd3%2FsFRGJhD2iw%3D
in server_log_handler
** (process:16267): DEBUG: oauth_callback=None

in server_log_handler
** (process:16267): DEBUG: oauth_consumer_key=EkOjyNekgo

in server_log_handler
** (process:16267): DEBUG: oauth_nonce=ZQjnGzJK0OVvX6t

in server_log_handler
** (process:16267): DEBUG: oauth_signature_method=HMAC-SHA1

in server_log_handler
** (process:16267): DEBUG: oauth_timestamp=1262876957

in server_log_handler
** (process:16267): DEBUG: oauth_token=xfMYvUuQhG

in server_log_handler
** (process:16267): DEBUG: oauth_verifier=None

in server_log_handler
** (process:16267): DEBUG: oauth_version=1.0

in server_log_handler
** (process:16267): DEBUG: oauth_signature=2qbYvTC0HKfy6Nd3%2FsFRGJhD2iw%3D

in server_log_handler
** (process:16267): DEBUG: Sending GET to http://127.0.0.1:55430/contacts/... with headers
:
 Authorization: OAuth oauth_callback="None", oauth_consumer_key="EkOjyNekgo", oauth_nonce="ZQjnGzJK0OVvX6t", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1262876957", oauth_token="xfMYvUuQhG", oauth_verifier="None", oauth_version="1.0", oauth_signature="2qbYvTC0HKfy6Nd3%2FsFRGJhD2iw%3D"

in server_log_handler

** (process:16267): WARNING **: Could not get CouchDB database info: Gateway Time-out

liboauth: data to sign='PUT&http%3A%2F%2F127.0.0.1%3A55430%2Fcontacts%2F&oauth_callback%3DNone%26oauth_consumer_key%3DEkOjyNekgo%26oauth_nonce%3DLIMiP3BDKHB0JFNw%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1262876958%26oauth_token%3DxfMYvUuQhG%26oauth_verifier%3DNone%26oauth_version%3D1.0'

liboauth: key='HwTgOCgBvd&yMdSuLGJYH'

in server_log_handler
** (process:16267): DEBUG: Parsing oauth_callback=None&oauth_consumer_key=EkOjyNekgo&oauth_nonce=LIMiP3BDKHB0JFNw&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1262876958&oauth_token=xfMYvUuQhG&oauth_verifier=None&oauth_version=1.0&oauth_signature=Fn9nwZgfLfc3Ut%2FdlFqZx9k4KZY%3D
in server_log_handler
** (process:16267): DEBUG: oauth_callback=None

in server_log_handler
** (process:16267): DEBUG: oauth_consumer_key=EkOjyNekgo

in server_log_handler
** (process:16267): DEBUG: oauth_nonce=LIMiP3BDKHB0JFNw

in server_log_handler
** (process:16267): DEBUG: oauth_signature_method=HMAC-SHA1

in server_log_handler
** (process:16267): DEBUG: oauth_timestamp=1262876958

in server_log_handler
** (process:16267): DEBUG: oauth_token=xfMYvUuQhG

in server_log_handler
** (process:16267): DEBUG: oauth_verifier=None

in server_log_handler
** (process:16267): DEBUG: oauth_version=1.0

in server_log_handler
** (process:16267): DEBUG: oauth_signature=Fn9nwZgfLfc3Ut%2FdlFqZx9k4KZY%3D

in server_log_handler
** (process:16267): DEBUG: Sending PUT to http://127.0.0.1:55430/contacts/... with headers
:
 Authorization: OAuth oauth_callback="None", oauth_consumer_key="EkOjyNekgo", oauth_nonce="LIMiP3BDKHB0JFNw", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1262876958", oauth_token="xfMYvUuQhG", oauth_verifier="None", oauth_version="1.0", oauth_signature="Fn9nwZgfLfc3Ut%2FdlFqZx9k4KZY%3D"

in server_log_handler

** (process:16267): WARNING **: Could not create 'contacts' database: Length Required

Tags: desktop+
Nicola Larosa (teknico)
tags: added: desktop+
Changed in evolution-couchdb:
assignee: nobody → Ubuntu One Desktop+ team (uone-desktop)
status: New → Confirmed
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Can you please restart desktopcouch as stated in http://www.freedesktop.org/wiki/Specifications/desktopcouch/Documentation/Troubleshooting ?

Then, try again from Evolution please and let us know if it worked or not

Changed in evolution-couchdb:
assignee: Ubuntu One Desktop+ team (uone-desktop) → Rodrigo Moya (rodrigo-moya)
status: Confirmed → Incomplete
Revision history for this message
Spirit (varlamovev) wrote :

I've done several times, the result is the same

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

Can you run /usr/lib/desktopcouch/desktopcouch-service on a terminal and see if it outputs some error message please? Paste the full output here, please

Revision history for this message
Spirit (varlamovev) wrote :

spirit@main:~$ /usr/lib/desktopcouch/desktopcouch-service
2010-02-05 11:54:12,155 - We seem to be running already, or can't publish our zeroconf advert. org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files

Revision history for this message
Spirit (varlamovev) wrote :
Download full text (7.8 KiB)

spirit@main:~$ killall beam.smp
spirit@main:~$ rm ~/.config/desktop-couch/desktop-couchdb.ini
spirit@main:~$ dbus-send --session --dest=org.desktopcouch.CouchDB --print-reply --type=method_call / org.desktopcouch.CouchDB.getPort
method return sender=:1.143 -> dest=:1.146 reply_serial=2
   int32 46793
spirit@main:~$ xdg-open file:///home/spirit/.local/share/desktop-couch/couchdb.html
spirit@main:~$ evolution --force-shutdown
Останавливается evolution-data-server-2.28 (Компонент Evolution для доступа к файлам и webcal / Компонент Evolution для доступа к файлам)
Останавливается evolution-alarm-notify (Evolution сервис календарных предупреждений)
spirit@main:~$ /usr/lib/evolution/evolution-data-server-2.28
evolution-data-server-Message: Starting server
e-data-server-Message: adding type `EBookBackendVCFFactory'
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 `EBookBackendCouchDBFactory'
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 `ECalBackendGoogleTodosFactory'
e-data-server-Message: adding type `ECalBackendGoogleEventsFactory'
e-data-server-Message: adding type `ECalBackendContactsEventsFactory'
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 `EBookBackendLDAPFactory'
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 `ECalBackendWeatherEventsFactory'
e-data-server-Message: adding type `EBookBackendGoogleFactory'
e-data-server-Message: adding type `EBookBackendGroupwiseFactory'
e-data-server-Message: adding type `EBookBackendFileFactory'
in server_log_handler
evolution-data-server-Message: Server up and running
impl_GNOME_Evolution_Addressbook_BookFactory_getBook
 + file:///home/spirit/.evolution/addressbook/local/system
 => 0x95004f0
impl_GNOME_Evolution_Addressbook_Book_open (0x95004f0)

(process:2785): 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
 => 0x94dff20
impl_GNOME_Evolution_Addressbook_Book_open (0x94dff20)
in server_log_handler

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

liboauth: data to sign='GET&http%3A%2F%2F127.0.0.1%3A46793%2Fcontacts%2F&oauth_callback%3DNone%26oauth_consumer_key%3DkESCFnSIsV%26oauth_nonce%3DOaxzi3ZMFDTmO6q%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1265284142%26oauth_token%...

Read more...

Revision history for this message
Spirit (varlamovev) wrote :

spirit@main:~$ /usr/lib/desktopcouch/desktopcouch-service
2010-02-05 11:54:12,155 - We seem to be running already, or can't publish our zeroconf advert. org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files

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

hmm, it seems Avahi is not installed on your system? Could you please run:

$ dpkg -l | grep avahi

you should see avahi-daemon listed, if not, please run:

$ sudo apt-get install avahi-daemon

and then try again starting desktopcouch-service

Revision history for this message
Spirit (varlamovev) wrote :

Rodrigo, I translate with Google, I'm sorry.
The fact that the houses in my local network of several computers and servers run Debian, it DHCP, Squid, etc. All computers go to the Internet through Squid. Local computers at startup automatically disable avahi-daemon because the profile is used .locale

spirit@main:~$ dpkg -l | grep avahi
ii avahi-autoipd 0.6.25-1ubuntu5.1 Avahi IPv4LL network address configuration daemon
ii avahi-daemon 0.6.25-1ubuntu5.1 Avahi mDNS/DNS-SD daemon
ii libavahi-client3 0.6.25-1ubuntu5.1 Avahi client library
ii libavahi-common-data 0.6.25-1ubuntu5.1 Avahi common data files
ii libavahi-common3 0.6.25-1ubuntu5.1 Avahi common library
ii libavahi-core6 0.6.25-1ubuntu5.1 Avahi's embeddable mDNS/DNS-SD library
ii libavahi-glib1 0.6.25-1ubuntu5.1 Avahi glib integration library
ii libavahi-gobject0 0.6.25-1ubuntu5.1 Avahi GObject library
ii libavahi-ui0 0.6.25-1ubuntu5.1 Avahi GTK+ User interface library
ii python-avahi 0.6.25-1ubuntu5.1 Python utility package for Avahi

Revision history for this message
Spirit (varlamovev) wrote :

Rodrigo, can give you ssh access? I think it will be easier:)

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

Ok, so the problem seems to be avahi being disabled at startup. If you start it, desktopcouch-service works ok, right?

affects: evolution-couchdb → desktopcouch
Changed in desktopcouch:
assignee: Rodrigo Moya (rodrigo-moya) → Stuart Langridge (sil)
summary: - Evolution CouchDB Error
+ desktopcouch doersn't work if avahi is disabled
summary: - desktopcouch doersn't work if avahi is disabled
+ desktopcouch doesn't work if avahi is disabled
Revision history for this message
Roman Yepishev (rye) wrote : Re: desktopcouch doesn't work if avahi is disabled

Rodrigo, Avahi blocks replication and paring, not connection to desktopcouch, as far as I could investigate.

Spirit, в настоящий момент репликация записей из desktopcouch на серверы ubuntuone может происходить только тогда, когда запущена служба Avahi. Это уже известная проблема (bug #506601).

В Вашем случае еще и существует проблема подключения к самой базе данных.
Удается ли Вам подключится к интерфейсу futon через ссылку в file:///home/spirit/.local/share/desktop-couch/couchdb.html ?

Попробуйте остановить Evolution снова, через evolution --force-shutdown, подключитесь к серверу couchdb через линк выше, потом запустить evolution-data-server в одном терминале, сам evolution в другом терминале и попробуйте открыть адресную книгу CouchDB/UbuntuOne. К какому порту пытается подключится evolution и на каком порту действительно работает couchdb?

Revision history for this message
Chad Miller (cmiller) wrote :

I think we should require zeroconf/Avahi, for the time being. The replication service expects it, so far.

Revision history for this message
Chad Miller (cmiller) wrote :

I'm using this bug as a marker for work on requiring zeroconf services only on replication to peers.

Changed in desktopcouch:
status: Incomplete → Confirmed
summary: - desktopcouch doesn't work if avahi is disabled
+ desktopcouch should not require Avahi
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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