Bug 361157 - Akonadi does not work properly after Update to KDE FW 5.20, Plasma 5.6 and Qt5.6 on Opensuse Leap 42.1
Summary: Akonadi does not work properly after Update to KDE FW 5.20, Plasma 5.6 and Qt...
Status: CONFIRMED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: GIT (master)
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-03-29 18:47 UTC by Jay Ambee
Modified: 2017-01-18 18:04 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Resullt of akonadi selftest BEFORE 16.04, with plasma 5.6.2, KDE FW 5.21, (15.91 KB, text/plain)
2016-04-24 10:59 UTC, Jay Ambee
Details
Feedback from akonadiconsole, after installing KDE Apps 16.04 (44.01 KB, text/plain)
2016-04-24 11:00 UTC, Jay Ambee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Ambee 2016-03-29 18:47:15 UTC
Application: kontact (5.1.3)

Qt Version: 5.6.0
Frameworks Version: 5.20.0
Operating System: Linux 4.1.15-8-default x86_64
Distribution: "openSUSE Leap 42.1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed: 
Activating other Kontact-Application

- Unusual behavior I noticed:
Kontact reports that Akonadi is not working properly. No Access to Mail, CalDAV, CardDAV Accounts, viewable only cached data. 
This happened after I updated KDE Framework to 5.20, Plasma to 5.6 (from 5.5.95...) on Opensuse. I had to update  Qt to 5.6 also because Opensuse maintainers built FW, Plasma to 5.6. Before everything worked okay.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f8918ed0800 (LWP 4625))]

Thread 19 (Thread 0x7f88fadbd700 (LWP 4626)):
#0  0x00007f8915b22bbd in poll () at /lib64/libc.so.6
#1  0x00007f890f2cd422 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f890f2cf00f in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f88fd110979 in  () at /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f8916436079 in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 18 (Thread 0x7f88f3fff700 (LWP 4627)):
#0  0x00007f8915b22bbd in poll () at /lib64/libc.so.6
#1  0x00007f890e68ce64 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f890e68cf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f89166473fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f89165f504b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f89164315da in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f8914d72095 in  () at /usr/lib64/libQt5DBus.so.5
#7  0x00007f8916436079 in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 17 (Thread 0x7f88f2dee700 (LWP 4628)):
#0  0x00007f890eeae03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f891367b753 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f891367b779 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 16 (Thread 0x7f88a9b12700 (LWP 4629)):
#0  0x00007f890e6cecf9 in g_mutex_lock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f890e68bee0 in g_main_context_acquire () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f890e68cd25 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f890e68cf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f89166473fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f89165f504b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f89164315da in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#7  0x00007f8916436079 in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 15 (Thread 0x7f88a313a700 (LWP 4630)):
#0  0x00007f890eeae03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f89133875ed in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f89136aa221 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 14 (Thread 0x7f88a291a700 (LWP 4631)):
#0  0x00007f890eeae03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f89133885c3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f89136aa221 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 13 (Thread 0x7f88a2119700 (LWP 4632)):
#0  0x00007f890eeae03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f89133885c3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f89136aa221 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 12 (Thread 0x7f88a1918700 (LWP 4633)):
#0  0x00007f890eeae03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f89133885c3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f89136aa221 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7f88a1117700 (LWP 4634)):
#0  0x00007f890eeae03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f89133885c3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f89136aa221 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7f88a0916700 (LWP 4635)):
#0  0x00007f890eeae03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f89133885c3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f89136aa221 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7f888bfff700 (LWP 4636)):
#0  0x00007f890eeae03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f89133885c3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f89136aa221 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7f8879cf3700 (LWP 4724)):
#0  0x00007f8915b22bbd in poll () at /lib64/libc.so.6
#1  0x00007f890e68ce64 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f890e68cf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f89166473fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f89165f504b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f89164315da in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f8916436079 in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f8872ab8700 (LWP 4726)):
#0  0x00007f8916647160 in  () at /usr/lib64/libQt5Core.so.5
#1  0x00007f890e68c4ad in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f890e68cd80 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f890e68cf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f89166473fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f89165f504b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f89164315da in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#7  0x00007f8916436079 in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f8866c21700 (LWP 4761)):
#0  0x00007f890e6ced14 in g_mutex_unlock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f890e68c4a0 in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f890e68cd80 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f890e68cf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f89166473fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f89165f504b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f89164315da in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#7  0x00007f8916436079 in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f885fefd700 (LWP 4794)):
#0  0x00007f890eeae03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f8901c8697b in  () at /usr/lib64/libQt5Script.so.5
#2  0x00007f8901c869a9 in  () at /usr/lib64/libQt5Script.so.5
#3  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f87de20b700 (LWP 4821)):
#0  0x00007f8915b22bbd in poll () at /lib64/libc.so.6
#1  0x00007f890e68ce64 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f890e68cf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f89166473fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f89165f504b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f89164315da in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f8916436079 in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f87d705e700 (LWP 7307)):
#0  0x00007f89164e0ec3 in  () at /usr/lib64/libQt5Core.so.5
#1  0x00007f8916645a59 in QTimerInfoList::updateCurrentTime() () at /usr/lib64/libQt5Core.so.5
#2  0x00007f8916645fd5 in QTimerInfoList::timerWait(timespec&) () at /usr/lib64/libQt5Core.so.5
#3  0x00007f89166471ce in  () at /usr/lib64/libQt5Core.so.5
#4  0x00007f890e68c4ad in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f890e68cd80 in  () at /usr/lib64/libglib-2.0.so.0
#6  0x00007f890e68cf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#7  0x00007f89166473fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#8  0x00007f89165f504b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#9  0x00007f89164315da in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#10 0x00007f8916436079 in  () at /usr/lib64/libQt5Core.so.5
#11 0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#12 0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f887a4f4700 (LWP 7384)):
#0  0x00007f890e6ced14 in g_mutex_unlock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f890e68bf20 in g_main_context_acquire () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f890e68cd25 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f890e68cf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f89166473fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f89165f504b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f89164315da in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#7  0x00007f8916436079 in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007f890eeaa0a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f8915b2afed in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f8918ed0800 (LWP 4625)):
[KCrash Handler]
#6  0x00007f89165ff457 in QMetaObject::cast(QObject*) const () at /usr/lib64/libQt5Core.so.5
#7  0x00007f8871db75c5 in Akregator::FrameManager::saveProperties(KConfigGroup&) () at /usr/lib64/libakregatorprivate.so.5
#8  0x00007f887206c139 in Akregator::MainWidget::saveProperties(KConfigGroup&) () at /usr/lib64/qt5/plugins/akregatorpart.so
#9  0x00007f88720645ef in  () at /usr/lib64/qt5/plugins/akregatorpart.so
#10 0x00007f8872085515 in  () at /usr/lib64/qt5/plugins/akregatorpart.so
#11 0x00007f89166221f6 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#12 0x00007f891754b60c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#13 0x00007f891754fa22 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#14 0x00007f89165f7005 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#15 0x00007f89165f8dea in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#16 0x00007f8916647d53 in  () at /usr/lib64/libQt5Core.so.5
#17 0x00007f890e68cc84 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#18 0x00007f890e68ced8 in  () at /usr/lib64/libglib-2.0.so.0
#19 0x00007f890e68cf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#20 0x00007f89166473dc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#21 0x00007f89165f504b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#22 0x00007f89165fcf56 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#23 0x0000000000404fe4 in main ()

Reported using DrKonqi
Comment 1 S. Bryant 2016-03-31 15:33:21 UTC
Possibly related:
After performing the same upgrade on Leap, I'm seeing "The Akonadi personal information management service is not operational" in any program that uses Akonadi, but I haven't seen this particular crash.

It was working before the upgrade, and the Leap install was a fresh one, not an upgrade, so no generations old data to deal with.

After running "akonadictl fsck" it's still "not operational".  Running "akonadictl stop" doesn't stop anything.  The MySQL instance was up - at least the Workbench connected to it (and complained about a MySQL version mismatch).

If somebody can confirm that the combination FW5.20/Plasma5.6/Qt5.6 is known to work for Akonadi, we may be able to narrow it down to either a local configuration problem or a distribution-specific problem.
Comment 2 Jay Ambee 2016-04-03 13:44:30 UTC
I have the same status as S. Bryant.

Additional to the crash I get the same Message "The Akonadi personal information management service is not operational" in all programs working with Akonadi, and there seems to be no solution to it. 
Some indications:
This happens even in an fresh ("virgin") installation, so it's not a config error.
Looks like either akonadi hangs somehow, or the communication with kontact doesn't work. 
akonadictl stop doesn't work - akonadictl start gives "akonadi already running".
Akonadiconsole starts up (after long wait), but gives the same message as above.
Reverting the akonadi/kontact bunch packages to leap standard repositories doesn't change situation.
I'm in discussion with moderator wolfi323 from Opensuse formus, who told me:
"the same combination (Qt 5.6.0 from KDE:Qt5, KDE Frameworks 5.20.0 from KDE:Frameworks5, Akonadi and KDEPIM5 from KDE:Applications) fine here on my 13.2 system.
There is one difference though: KDE:Applications is built against KDE:Qt5 for 13.2, but not for Leap, so the Leap packages are actually built against Qt 5.5.1.
Should not cause a problem normally, but who knows...
Although this only affects the kdepim packages and not Akonadi, because Akonadi hasn't been updated (and therefore being rebuilt) since Qt 5.6.0 has been released I think."

So this looks like something confined to leap, but that'S all I can say by now ...
Comment 3 Torsten Bielen 2016-04-15 09:05:33 UTC
My system: opensuse Leap (64 bit)

Yesterday I've updated my system in the same way (Qt 5.6.0 from KDE:Qt5, KDE Frameworks 5.20.0 from KDE:Frameworks5, Akonadi and KDEPIM5 from KDE:Applications 16.03)  and it worked fine. 

Today I installed the suggested updates  and system stops working. Same behavior as described here. If I call  'akonadi_ctrl stop' nothing happens. If I start a single applications instead of kontact the same behavior.  If I start kmail using the konsole I got the error klauchner failed due to unknown protocol 'cid'. I'm not sure if this is related to cited error.

I checked if there is no package mismatch and all seems to be okay.

At the end all programs using akonadi don't start.  For me this seems to be a very fragile combination of KDEPIM and akonadi in opensuse leap.

The following packages installed today:
kdgantt2|16.03.90-4.1               
libKF5Libkdepim5|16.03.90-5.1       
libkleo|16.03.90-3.1                
libKF5KDGantt2-5|16.03.90-4.1       
libkdepim|16.03.90-5.1              
libKF5Libkleo5|16.03.90-3.1         
libKF5MailImporter5|16.03.90-3.1    
kleopatra5|16.03.90-4.6             
libavutil55|3.0.1-66.1              
libpostproc54|3.0.1-66.1            
libswresample2|3.0.1-66.1           
libavresample3|3.0.1-66.1           
libswscale4|3.0.1-66.1              
libavcodec57|3.0.1-66.1             
libavformat57|3.0.1-66.1            
libavfilter6|3.0.1-66.1             
libopencv3_1|3.1.0-83.7             
handbrake-gtk|0.10.5-1.6            
libavdevice57|3.0.1-66.1            
ffmpeg|3.0.1-66.1|x86_64            
grantlee5|5.0.0-7.2|x86_64          
libKF5PimCommon5|16.03.90-4.1       
grantleetheme|16.03.90-3.1          
knotes5|16.03.90-58.5|x86_64        
libksieve|16.03.90-5.1|x86_64       
libKF5Gravatar5|16.03.90-3.1        
libKF5GrantleeTheme5|16.03.90-3.1   
kdepim-apps-libs|16.03.90-3.1       
kontact5|16.03.90-58.5|x86_64       
kaddressbook5|16.03.90-58.5         
messagelib|16.03.90-6.1             
akregator5|16.03.90-58.5            
libKF5MailCommon5|16.03.90-3.1      
korganizer5|16.03.90-58.5           
kmail5|16.03.90-58.5                
akonadi_resources|16.03.90-58.5    
kdepim-addons|16.03.90-8.1         
kdepim|16.03.90-58.5
Comment 4 Jay Ambee 2016-04-24 10:55:36 UTC
I have to come back to this, because after installing the 16.04 Version of KDE Apps (with Akonadi and the full kontact-Package) the situation is not resolved and seemingly far from being so. 

Akonadi does not work properly, as reported by all akonadi-dependent applications and akonadiconsole. And as can be seen here and in the Opensuse-forum (here: https://forums.opensuse.org/showthread.php/516850-After-Updating-KDE-FW-to-5-20-and-Plasma-to-5-6-(with-Qt-to-5-6-as-well)-Akonadi-quot-doesn-t-work-quot) I am not the only one with this problem. The fact that I am not able to use kontact, which worked properly before 16.03.90-x, and in consequence have no access to most of my mails is quite unbearable, because I do my business using this software.

The crucial question for me is: Am I dealing with a software bug here, or does it look more like a mere config related problem? And if its a bug, when is it going to be resolved?

And the second question then is: if it is a config-problem which part of the akonadi and kontact configuration do I have have to and may safely erase, while preserving my emails (which are in a seperate dir), since - unfortunately - not all backups of them are really current (most are, but since akonadi was broken quite surprisingly, I had no chance to do backups manually. Interestingly, the kmail backup-assistant worked even after akonadi broke, so I'm hopefull that there might be a chance even for the Mails that I had not included into my frequent backups (which I am going to change now)).

To nail down the problem I war able to get some Info out of my system, which I attach as text-files:

1. an akonadi selftest report a few days ago (when V.16.04 was NOT installed (and please don't ask me, how to do it again))

2. The feedback of an akonadiconsole start today AFTER installing V.16.04, which I collected in konsole. Here is how I did that (just for info):

- starting kontact ==> "not working properly"
- starting akonadiconsole ==> same result, stopping/killing akonadiconsole
- killing all akonadi-related processes and all kontact processes
- starting akonadiconsole again, feedback collected in Textfile

Would be nice if someone had a look at it, and tell me, what to do.

Thanks a lot.
Comment 5 Jay Ambee 2016-04-24 10:59:06 UTC
Created attachment 98548 [details]
Resullt of akonadi selftest BEFORE 16.04, with plasma 5.6.2, KDE FW 5.21,

See my last comment.

Jay
Comment 6 Jay Ambee 2016-04-24 11:00:22 UTC
Created attachment 98549 [details]
Feedback from akonadiconsole, after installing KDE Apps 16.04

See my last Comment.

Jay
Comment 7 Jay Ambee 2016-04-25 08:23:01 UTC
In the forum thread I mentioned above (see Comment 4) have today (25.042016) been two posts by user opuetz (Nr. 36 & 37) who obviously has been testing different combinations of FW/Plasma/Apps Versions which might be helpful.
Comment 8 Jay Ambee 2016-04-25 08:23:41 UTC
In the forum thread I mentioned above (see Comment 4) have today (25.042016) been two posts by user opuetz (Nr. 36 & 37) who obviously has been testing different combinations of FW/Plasma/Apps Versions which might be helpful.
Comment 9 Jay Ambee 2016-04-27 08:56:48 UTC
WOW! NIce Try! Changing a bug from critical - for all those who are bugged by it - to normal doesn't make it go away, but makes it easier for you to deal with it as "unimportant" and leave everything as it is. ... Interesting way of dealing with user complains, Mr. Giboudeaux. 

Thanks a lot!!!
Comment 10 Laurent Montel 2016-04-27 10:35:21 UTC
Critical for you it's not necessary a critical bug.
I don't understand this bug. 
It's show a akregator backtrace and we spoke about akonadi ?
It's bug is fixed in 5.2
Comment 11 Jay Ambee 2016-04-27 10:56:14 UTC
Sorry, Mr. Montel,

have you read the posts or not? Akregator was the start of it, but since this happened,  Akonadi is not working, as can be seen in the following posts. The Akonadi problem might be related, maybe its not. The Akregator crash might just be collateral, because right now Akregator is working fine, since its not depending on Akonadi ( which is not very surprising). I just can't make it out, but its not only me having this problem, there are more people, as you can see from the other posts here, and there are even more in the opensuse forum thread (see comment 4) where seeking for a solution wasn't successful either (just take a look, if you please). All I do, is trying to help, because I do my business with Kontact and have no access to some of my mails since then. 
So for me, and maybe others, this bug is fatal. 
All I want to know if it is a config problem, which I can solve by starting from scratch, or if it is a bug that needs your attention. For it looks like the latter, because starting akonadi as a virgin user does not solve the problem. All I (we) can do is providing data, not interpreting it. 
I know that there is lots of things you have to do, but in the it doesn't help if the software is not usable, does it?

Thanks  lot for your help
Comment 12 kuede 2016-05-01 14:04:51 UTC
Same bug as mine (https://bugs.kde.org/show_bug.cgi?id=362044, do not know how to report duplicates).

My temporary fix: akonadictl fsck, kill all akonadi processes, akonadictl fsck (then in total all my > 4000 mails are gone), kill all akonadi processes again, start kontact (if it does not work, try again). Works until the system is rebooted (or X got killed). All mails are redownloaded and - in the beginning all, later only part of them - folders (as trash or inbox) are assigned to wrong folders (even linked to other mail accounts, or inbox is now trash and vice versa).

What I noticed/might be important: 
- akonadictl stop nor restart do anything!
- pressing the button for more details about akonadi not running properly within kontact does not do anything
- I'm running 4x pop, 2x imap, google contacts and calendar and email resources.
- as long as I do not restart everything seems to work flawlessly (as long as I did not forget to reassign on of the folders correctly)
- sometimes killing all akonadi processes leads to freazing of kde needing a soft reset.
- searched a lot and really seems to be concentrated on the previously mentioned Opensuse combination.
- completely lost my emails from one account (probably after running akonadictl vacuum)
- akonadictl fsck removes all of my ressources and probably all of my emails!!!
- Even using the restart-button within the kontact setting for the accounts does not harm and resources still seem to run fine.

Would changing status to confirmed make sense? Even if it only seems related to one distro with one repository?
Comment 13 Erick Osorio 2016-05-01 20:20:51 UTC
I have this bug too... I installed:

openSUSE Leap.
Qt 5.6
Plasma 5.6.3
KDE apps 16.04
Kmail 5.2

This bug isn't fixed...
Comment 14 Torsten Bielen 2016-05-03 07:21:57 UTC
Same for me. Same package combination as Erick.

Sometimes it works if I logout an re-login. Sometimes not. Sometimes it works if I reboot sometimes not. This is a crude and critical bug because it makes it impossible to use Kontakt. I do my daily work with Kontact.

If the first try failed nothing helps beside logout or reboot.

Bug isn't fix.
Comment 15 Torsten Bielen 2016-05-03 07:22:38 UTC
Same for me. Same package combination as Erick.

Sometimes it works if I logout an re-login. Sometimes not. Sometimes it works if I reboot sometimes not. This is a crude and critical bug because it makes it impossible to use Kontakt. I do my daily work with Kontact.

If the first try failed nothing helps beside logout or reboot.

Bug isn't fix.
Comment 16 Eric MSP Veith 2016-05-20 13:55:41 UTC
Has somebody alread upgraded to KDE apps 16.04.01 and checked whether the SIGSEGV still occurs? I tried to follow the root cause of the memory corruption, but after the update got pulled in, I cannot reproduce it with a number of `akonadictl restart' calls. Can somebody please check?
Comment 17 Eric MSP Veith 2016-05-20 13:55:59 UTC
Has somebody alread upgraded to KDE apps 16.04.01 and checked whether the SIGSEGV still occurs? I tried to follow the root cause of the memory corruption, but after the update got pulled in, I cannot reproduce it with a number of `akonadictl restart' calls. Can somebody please check?
Comment 18 Jay Ambee 2016-05-20 17:23:34 UTC
Hello again --- Good to see I am not the only one with this problem, with which I had a few interesting days (up to today ...).
After installing Framework 5.22 and Plasma 5.6.4 and a restart akonadi miraculously started working again (I swear, I didn't change anything in my config). I had - finally - the time to move my emails to my imap server. Took some time, though, but now I have access to everything through thunderbird (which in my is hot quite as powerful as kontact would be). Because ... after installing KDE Apps 16.04.1 and some further tweaking on my side (see the following points) all the splendour has vanished again... but not directly - a few strange things happened:
1. After I changed the Inboxes of my external Email-Accounts to the Inbox of the IMAP Server, the complete local-mail folder structure "disappeared" (from kontact - it still exists on my harddrive) for no apparent reason. I later found out that there had been created an new ".local-mail" folder without me requesting it. I can live with that for now, but would really like to know how that happens, and why.

2. Interestingly my calendars and contacts where completely gone from kontact (and akonadi) - not the data, but all the configs, which makes sense in the light of the following:

3.  As I have my calendars and my contacts on a dav-server (Owncloud at my hosting provider, which has been working like a charm until the problem with akonadi/kontact started (and still does, as far as my mobile devices are concerned), I wanted to keep it that way, but move to the builtin servers on my synology nas. This seemed to be working fine (with some minor glitches which I would have tolerated), but when I was "nearly done", (having my calendars working and imported my contacts) as something "blocked" plasma (I could not switch programs or anything) and I had to reboot the system. After that, I was back with my friend "akonadi not working properly" and had to return to Thunderbird as my PIM system (which is not my first choice for numerous reasons).

My "educated guess" now is, that there is something wrong with the akonadi infrastructure for korganizer/kaddressbook, not necessarily with relation to the DAV subsystem (since this seems to have worked). 
But that´s just a guess. Maybe all this is still just a config problem, but to solve it, I would like to start from scratch for a test (at least everything seems to work "in principle"). Which parts of the akonadi data an the config do I have to delete for that??

Thanks, still, for your help.

Jay
Comment 19 Daniel Vrátil 2016-05-22 14:05:40 UTC
Ok, so I gather that the Akonadi service is not starting for you. I recommend you run Akonadi from terminal (akonadictl start) and look at the output, that usually tells where the problem is.

You can increase the debugging level by running

QT_LOGGING_RULES="* = true
qt.* = false" akonadictl start

(note the newline after true, that's not a typo)
Comment 20 Gerry Gavigan 2016-05-28 18:17:36 UTC
Apologies for cross-post from openSUSE forums

This is on a fresh install of Tumbleweed 20160525 on a new disk and a restored $home from openSUSE 13.2

Opening kmail fails, and starting from the start gives me this  


[Code]
c...a@linux-6dbk:~> akonadictl start
Starting Akonadi Server...
   done.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
christina@linux-6dbk:~> QCommandLineParser: option not defined: "start-without-control"
search paths:  ("/home/c...a/bin", "/usr/local/bin", "/usr/bin", "/bin", "/usr/bin/X11", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin")
Found mysql_install_db:  "/usr/bin/mysql_install_db"
Found mysqlcheck:  "/usr/bin/mysqlcheck"
akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.parttypetable                              OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.pimitemtagrelation                         OK
akonadi.relationtable
Error    : Table 'akonadi.relationtable' doesn't exist in engine
status   : Operation failed
akonadi.relationtypetable
Error    : Table 'akonadi.relationtypetable' doesn't exist in engine
status   : Operation failed
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
akonadi.tagattributetable                          OK
akonadi.tagremoteidresourcerelationtable           OK
akonadi.tagtable                                   OK
akonadi.tagtypetable                               OK
mysql.column_stats                                 OK
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.gtid_slave_pos
Error    : Table 'mysql.gtid_slave_pos' doesn't exist in engine
status   : Operation failed
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.index_stats                                  OK
mysql.innodb_index_stats
Error    : Table 'mysql.innodb_index_stats' doesn't exist in engine
status   : Operation failed
mysql.innodb_table_stats
Error    : Table 'mysql.innodb_table_stats' doesn't exist in engine
status   : Operation failed
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.roles_mapping                                OK
mysql.servers                                      OK
mysql.table_stats                                  OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK

Repairing tables
test.relationtable
Error    : Table 'test.relationtable' doesn't exist
status   : Operation failed
test.relationtypetable
Error    : Table 'test.relationtypetable' doesn't exist
status   : Operation failed
test.gtid_slave_pos
Error    : Table 'test.gtid_slave_pos' doesn't exist
status   : Operation failed
test.innodb_index_stats
Error    : Table 'test.innodb_index_stats' doesn't exist
status   : Operation failed
test.innodb_table_stats
Error    : Table 'test.innodb_table_stats' doesn't exist
status   : Operation failed
MySQL version OK (required "5.1" , available "10.0" )
Database "akonadi" opened using driver "QMYSQL"
DbInitializer::run()
checking table  "SchemaVersionTable"
checking table  "ResourceTable"
checking table  "CollectionTable"
checking table  "MimeTypeTable"
checking table  "PimItemTable"
checking table  "FlagTable"
checking table  "PartTypeTable"
checking table  "PartTable"
checking table  "CollectionAttributeTable"
checking table  "TagTypeTable"
checking table  "TagTable"
checking table  "TagAttributeTable"
checking table  "TagRemoteIdResourceRelationTable"
checking table  "RelationTypeTable"
"ALTER TABLE RelationTypeTable ADD COLUMN id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY"
"\nSql error: Table 'akonadi.relationtypetable' doesn't exist in engine QMYSQL: Unable to execute query\nQuery: ALTER TABLE RelationTypeTable ADD COLUMN id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY"
Unable to initialize database.
terminating service threads
terminating connection threads
stopping db process
Application 'akonadiserver' exited normally...

[/code]
Comment 21 Eric MSP Veith 2016-06-28 06:24:24 UTC
This bug might be related to  bug 363881, and, ultimately, this Qt bug: https://bugreports.qt.io/browse/QTBUG-53957.
Comment 22 Jay Ambee 2016-06-30 10:57:16 UTC
Hello,

further development: Since installing Ot 5.6.1, KDE  FW 5.23, Plasma 5.6.95 and Kontact 5.2.2 (in Apps 16.04.2) the Problem seems to be gone. Akonadi/Kontact "survived" several restarts and seems to be working stable again (which actually wasn't the case before). Since I have not changed any of my configurations, there must have been some bug in the apps or in the interplay of the different libs. If I were asked I would suspect something in the address book part of the apps or libs, but that's just a guess.
Sorry, I can't help any further for now, but if the bug crosses my ways again I will certainly report.

Thanks for your help anyway ...

Jay
Comment 23 S. Bryant 2016-07-12 21:20:47 UTC
I've upgraded to Plasma 5.7 (kontact5 16.04.2), and can confirm that the problem is still very much there.  Akonadi (and by extension, all related applications) are still completely unusable on OpenSUSE 42.1.
Comment 24 Juan Ehrenhaus 2016-09-30 06:53:32 UTC
*** This bug has been confirmed by popular vote. ***
Comment 25 Juan Ehrenhaus 2016-09-30 08:04:20 UTC
The Bug is still present after an upgrade to Plasma 5.7.5.