Bug 230250

Summary: Kontact not showing Akonadi Address Books
Product: [Applications] kontact Reporter: Cody <cody>
Component: contactsAssignee: Tobias Koenig <tokoe>
Status: RESOLVED FIXED    
Severity: normal CC: mmtsales, robin.atwood, sander
Priority: NOR    
Version: 4.4.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Cody 2010-03-10 22:21:11 UTC
Version:            (using KDE 4.4.0)
OS:                Linux
Installed from:    Fedora RPMs

I received an email in Kontact and attempted to add the address to my akonadi address book by right-clicking the address and selecting "Add to Address Book"

The Pop-up window doesn't list any folders or address books. If I do the same steps after starting just Kmail it works perfectly and Kmail shows the akonadi address books.
Comment 1 Sander van Grieken 2010-03-16 11:26:39 UTC
Same problem here. Using Karmic Kubuntu PPA backports 

kmail, kaddressbook @ 4:4.4.1a-0ubuntu1~karmic1~ppa2

I don't know the steps to reproduce, the addressbook just disappears after a while (a long while, i.e. several hours)
Comment 2 Sander van Grieken 2010-03-16 11:32:27 UTC
Oh, and this is probably related:

When doubleclicking a contact in the contact list, the contact details view opens, but with none of the fields filled in
Comment 3 Robin Atwood 2010-04-16 15:57:41 UTC
Me too, KDE 4.4.0 - 4.4.2.
Comment 4 Marcelo Sales 2010-05-09 15:04:00 UTC
Same problem here, first using karmic and now with lucid (Kubuntu) with KDE 4.4.2.

I use KAddressbook embedded in Kontact. I open Kontact as soon as I log 
in and keep it always opened. Right after I open it, KAddressbook works 
as expected. However, after an hour or two, I can't see the details of 
my contacts anymore. It still displays the contacts list, but when I 
click any of them, nothing is displayed in the details pane. Also, if I 
double click them, the edit contact window is displayed with all fields 
blank.
If I close Kontact and open it again, or if I stop akonadi and start it 
again, KAddressbook will resume working. It seems akonadi stops 
responding after some time it is running, but it does not die, because 
KAddressbook knows it is running even when it cannot display the 
contacts details (when I stop akonadi, KAddressbook immediately reports 
akonadi is unavailable).

Also, even when Akonadi is not responding, kmail's autocomplete feature 
still works when I'm filling up a contact name in a new e-mail's TO: 
field. Indeed, it even suggests addresses that are not in my address 
book anymore. So, it seems the address book kmail is using is not the 
same KAddressbook is using. How can this be? I can't find any address 
book related settings in kmail configuration.

I did not create any akonadi address book manually. KAddressbook and 
Kmail are behaving like that since my addresss book was automatically 
migrated to akonadi in one of KDE's upgrades.
Comment 5 Tobias Koenig 2010-05-10 08:15:54 UTC
Hej,

this is a problem with a timeout in mysqld, which dropps the connection if there
is no activity. To solve this problem, add the following line to your
$HOME/.local/share/akonadi/mysql.conf:

wait_timeout=1296000

and restart Akonadi with 'akonadictl restart'.

This bug has been fixed in SVN trunk already.

Ciao,
Tobias
Comment 6 Sander van Grieken 2010-05-10 10:27:07 UTC
So this will basically postpone he problem for 15 days? Isn't it better to have akonadi reopen the connection once it has lost it (and needs it again)?