Problem with KMail and Akonadi

Cris,

Reading Wolfi’s reply I suddenly remember seeing a user report that things went back to normal after he removed the searches that kmail saves … I had one, removed it, but completely forgot I did so.

Knurpht, I hope I’m not speaking too soon, but it seems that deleting the searches has fixed the problem!!
Thank you!!!

Cris

Use this e.g.:

sudo rpm -e --nodeps akonadi-search

But then, if your problem is fixed now anyway there’s no point in doing that any more… :wink:

Wolfi323 thank you for the hint, it will be useful anyway.

Regarding KMail, after a day of usage I can say the problem is fixed for me.

Cris

wolfi323, I’m trying to figure out how you were able to install Christian Boltz’s packages on Tumbleweed. When I try to do this, then I get a bunch of unresolvable dependencies on Qt 5.7:

$ sudo zypper --verbose dup --from cboltz_akonadi
…
7 Problems:
Problem: nothing provides libQt5Core.so.5(Qt_5.7)(64bit) needed by libKF5AkonadiWidgets5-16.08.1-2.11.x86_64
Problem: nothing provides libQt5Core.so.5(Qt_5.7)(64bit) needed by libKF5AkonadiCore5-16.08.1-2.11.x86_64
Problem: nothing provides libQt5Core.so.5(Qt_5.7)(64bit) needed by libKF5AkonadiAgentBase5-16.08.1-2.11.x86_64
Problem: nothing provides libQt5Core.so.5(Qt_5.7)(64bit) needed by akonadi-server-16.08.1-2.11.x86_64
Problem: nothing provides libQt5Core.so.5(Qt_5.7)(64bit) needed by libKF5AkonadiSearch-16.08.1-2.2.x86_64
Problem: nothing provides libQt5Core.so.5(Qt_5.7)(64bit) needed by libKF5AkonadiCalendar5-16.08.1-2.2.x86_64
Problem: nothing provides libQt5Core.so.5(Qt_5.7)(64bit) needed by akonadi-search-16.08.1-2.2.x86_64

Problem: nothing provides libQt5Core.so.5(Qt_5.7)(64bit) needed by libKF5AkonadiWidgets5-16.08.1-2.11.x86_64                                                    
 Solution 1: Following actions will be done:                                    
  deinstallation of libKF5AkonadiWidgets5-16.08.1-1.1.x86_64                    
  deinstallation of messagelib-16.08.1-1.1.x86_64                               
  deinstallation of libKF5PimCommon5-16.08.1-1.2.x86_64                         
  deinstallation of libKF5MailCommon5-16.08.1-1.1.x86_64                        
  deinstallation of libKF5Libkdepim5-16.08.1-1.1.x86_64                         
  deinstallation of libKF5IncidenceEditor5-16.08.1-1.1.x86_64                   
  deinstallation of libKF5EventViews5-16.08.1-1.1.x86_64                        
  deinstallation of libKF5CalendarSupport5-16.08.1-1.1.x86_64                   
  deinstallation of libKF5AkonadiMime5-16.08.1-1.1.x86_64                       
  deinstallation of libKF5AkonadiContact5-16.08.1-1.1.x86_64                    
  deinstallation of korganizer5-16.08.1-1.1.x86_64                              
  deinstallation of knotes5-16.08.1-1.1.x86_64                                  
  deinstallation of kmail5-16.08.1-1.1.x86_64                                   
  deinstallation of kdepim-runtime-16.08.1-1.1.x86_64                           
  deinstallation of kdepim-addons-16.08.1-1.1.x86_64                            
  deinstallation of kdepim-16.08.1-1.1.x86_64                                   
  deinstallation of kaddressbook5-16.08.1-1.1.x86_64                            
  deinstallation of akonadi_resources-16.08.1-1.1.x86_64                        
  deinstallation of libksieve-16.08.1-1.1.x86_64                                
  deinstallation of libKF5MailImporter5-16.08.1-1.1.x86_64                      
  deinstallation of libkdepim-16.08.1-1.1.x86_64                                
  deinstallation of akregator5-16.08.1-1.1.x86_64
  deinstallation of libKF5Gravatar5-16.08.1-1.1.x86_64
  deinstallation of kdepim-apps-libs-16.08.1-1.1.x86_64
  deinstallation of kontact5-16.08.1-1.1.x86_64
  deinstallation of kmailtransport-16.08.1-1.1.x86_64
  deinstallation of akonadi-contact-16.08.1-1.1.x86_64
  deinstallation of libkolab1-1.0.2-3.4.x86_64
  deinstallation of libKF5AlarmCalendar5-16.08.1-1.1.x86_64
 Solution 2: keep obsolete libKF5AkonadiWidgets5-16.08.1-1.1.x86_64
 Solution 3: break libKF5AkonadiWidgets5-16.08.1-2.11.x86_64 by ignoring some of its dependencies

If I add the Qt 5.7 repository from http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Factory/ and then try the upgrade again, then this time I get errors about unresolvable dependencies for both Qt 5.6.1 and Qt 5.7:

$ sudo zypper --verbose dup --from cboltz_akonadi
…
7 Problems:
Problem: akonadi-search-16.08.1-2.2.x86_64 requires libQt5Core.so.5(Qt_5.7)(64bit), but this requirement cannot be provided
Problem: akonadi-server-16.08.1-2.11.x86_64 requires libQt5Sql.so.5(Qt_5.7.0_PRIVATE_API)(64bit), but this requirement cannot be provided
Problem: kwin5-5.7.4-1.2.x86_64 requires libQt5Core5 = 5.6.1, but this requirement cannot be provided
Problem: libKF5Declarative5-5.26.0-1.1.x86_64 requires libQt5Core5 = 5.6.1, but this requirement cannot be provided
Problem: libQt5Concurrent5-5.6.1-2.2.x86_64 requires libQt5Core5 = 5.6.1, but this requirement cannot be provided
Problem: libQt5DBus5-5.6.1-2.2.x86_64 requires libQt5Core5 = 5.6.1, but this requirement cannot be provided
Problem: libQt5Gui5-5.6.1-2.2.x86_64 requires libQt5Core5 = 5.6.1, but this requirement cannot be provided

Problem: akonadi-search-16.08.1-2.2.x86_64 requires libQt5Core.so.5(Qt_5.7)(64bit), but this requirement cannot be provided
  uninstallable providers: libQt5Core5-5.7.0-268.1.x86_64[Qt5]
 Solution 1: Following actions will be done:
  deinstallation of akonadi-search-16.08.1-1.1.x86_64
  deinstallation of kmail5-16.08.1-1.1.x86_64
 Solution 2: keep obsolete akonadi-search-16.08.1-1.1.x86_64
 Solution 3: break akonadi-search-16.08.1-2.2.x86_64 by ignoring some of its dependencies

Forcing removal of akonadi-search, as you suggest upthread, solves only the first of the seven dependency problems. Zypper’s proposed solution to the next dependency problems is to downgrade the architecture of about half the KDE packages to 586!

Can I ask what KDE/Qt repositories you have enabled?

I had the same problem. I tried several combinations of breaking some packages or keeping obselete versions, but none fixed the problem for me.

In the end just uninstalling `akonadi-search’, following wolfi323’s suggestion above, worked for me. It threw up two conflict messages, I chose to ‘break’ the relevant package by ignoring some of its dependencies. So far I have not seen an akonadi crash since, and kmail works as expected.

Well, this would result in not being able to search mail anymore ( or better, mail wouldn’t be indexed ). Which in my case ( > 150.000 email messages in 11 accounts ) would be a disaster. I’ve seen the issue on a couple of machines, removing old searches fixed it every time.

Not for me, unfortunately. Removing the search_db directory seems to help temporarily, but within a few hours of use, Akonadi is crashing again every few minutes.

Output of

zypper lr -d

please

#  | Alias                         | Name                   | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                           | Service                    
---+-------------------------------+------------------------+---------+-----------+---------+----------+--------+-----------------------------------------------------------------------------------------------+--------
 1 | Qt5                           | Qt5                    | Yes     | (r ) Yes  | Yes     |   97     | rpm-md | http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Factory/                          |        
 2 | X11_RemoteDesktop_x2go        | x2go                   | Yes     | (r ) Yes  | Yes     |   98     | rpm-md | http://download.opensuse.org/repositories/X11:/RemoteDesktop:/x2go/openSUSE_Tumbleweed/       |        
 3 | cboltz_akonadi                | cboltz_akonadi         | Yes     | (r ) Yes  | Yes     |   97     | rpm-md | http://download.opensuse.org/repositories/home:/cboltz:/branches:/openSUSE:/Factory/standard/ |        
 4 | devel:tools:building          | devel:tools:building   | Yes     | (r ) Yes  | Yes     |   98     | rpm-md | http://download.opensuse.org/repositories/devel:/tools:/building/openSUSE_Factory/            |        
 5 | editors                       | editors                | Yes     | (r ) Yes  | Yes     |   98     | rpm-md | http://download.opensuse.org/repositories/editors/openSUSE_Factory/                           |        
 6 | fonts                         | fonts                  | Yes     | (r ) Yes  | Yes     |   98     | rpm-md | http://download.opensuse.org/repositories/M17N:/fonts/openSUSE_Tumbleweed/                    |        
 7 | linuxdownload.adobe.com-linux | Adobe Flash Plugin     | Yes     | ( p) Yes  | Yes     |   99     | rpm-md | http://linuxdownload.adobe.com/linux/x86_64/                                                  |        
 8 | martinkoller                  | home:martinkoller      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/martinkoller/openSUSE_Factory_ARM/            |        
 9 | nodejs                        | devel:languages:nodejs | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/nodejs/Tumbleweed/                |        
10 | packman                       | Packman                | Yes     | (r ) Yes  | Yes     |   98     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/                           |        
11 | perl                          | devel:languages:perl   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_Tumbleweed/         |        
12 | repo-debug                    | repo-debug             | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/debug                                            |        
13 | repo-non-oss                  | repo-non-oss           | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/non-oss                                          |        
14 | repo-oss                      | repo-oss               | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/oss                                              |        
15 | repo-update                   | repo-update            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/                                               |        
16 | unarj                         | home:Knurpht:unarj     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/Knurpht:/unarj/openSUSE_Tumbleweed/           |        
17 | winski_flash                  | home:winski            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/winski/openSUSE_Tumbleweed/                   |        

You’ve got a Qt5 repo active, guarantee for a version-mix of packages.

I am not using Tumbleweed, and I never installed those packages myself.
Others did though, and it fixed their problems.

When I try to do this, then I get a bunch of unresolvable dependencies on Qt 5.7:

The reason for this is that Qt 5.7.0 has been submitted to Factory/Tumbleweed recently.
Christian Boltz’s packages apparently have been rebuilt against Qt 5.7 already, but it is not published yet.

Today’s new snapshot does include Qt 5.7.0, so just try again and it should work.
Better remove that KDE:Qt57 repo first though as Knurpht already wrote.

Forcing removal of akonadi-search, as you suggest upthread, solves only the first of the seven dependency problems.

This was not supposed to fix any dependency problems.
But it should “fix” the crashes as well, without installing Christian Boltz’s packages.

Can I ask what KDE/Qt repositories you have enabled?

KDE:Qt5, KDE:Frameworks5, KDE:Applications, and KDE:Extra.
I’m on 13.2 though, and would not recommend any extra KDE/Qt repositories for Tumbleweed at all (except maybe KDE:Extra if you want some additional stuff that’s not in the main repos).

Evidently. I did mention in my original post that I added this repository only to see if it fixed the dependency issues on Qt 5.7 that Christian Boltz’s packages apparently have. With or without that repository, his packages weren’t installable.

Right you are—today the dependency issues seem to be gone. Instead Zypper offers to upgrade several Qt 5.6.1 packages to 5.7.0. I’ll install Boltz’s packages and see if that fixes my problem.

Good news!
The Akonadi developers finally found and fixed a problem with Xapian 1.4:
https://quickgit.kde.org/?p=akonadi-search.git&a=commit&h=1e70d63a9439f48b5f1a70accac531a10f4e4239

The fix will be in 16.08.2, to be released on Thursday. It still will take a while to reach Tumbleweed though.

Let’s hope that this really fixes it for everybody that had this problem… :wink: