Bug 334470

Summary: Cannot Delete a Google Calendar in KOrganizer / Akonadi (+ Some Related Problems)
Product: [Frameworks and Libraries] Akonadi Reporter: Shlomi Fish <shlomif>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 4.13   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Shlomi Fish 2014-05-07 15:34:40 UTC
Hi all,

I'm on Mageia Linux x86-64 5 (Cauldron) and akonadiconsole gives me this:


Failed to connect to database: Can't connect to local MySQL server through
socket '/home/shlomif/tmp/akonadi-shlomif.9mPy3v/mysql.socket' (2 "No such file
or directory") QMYSQL: Unable to connect


Later on, I cannot delete some of my KOrganizer folders related to my Google
Calendars which I'd like to delete to handle the advice here:


https://bugs.kde.org/show_bug.cgi?id=264861#c51

A note here. By "cannot delete", I mean that:

1. In KOrganizer, after pressing the delete entry from the context menu, I am
asked to confirm it and I do, but the menu entry does not get deleted - it
stays there - even after a logout and login.

2. In akonadiconsole, the context menu -> Delete menu item is greyed out for
both the "shlomif@gmail.com" provider and its calendar.

I found out that akoandiserver crashes with this backtrace:

shlomif@telaviv1:~$ akonadiserver 
search paths:  ("/home/shlomif/apps/perl/brew/bin",
"/home/shlomif/apps/vim/bin", "/home/shlomif/apps/gwenview/bin",
"/home/shlomif/apps/vim/bin", "/home/shlomif/apps/gwenview/bin",
"/home/shlomif/bin", "/home/shlomif/apps/perl/modules/local/bin",
"/home/shlomif/apps/perl/modules/bin", "/opt/valgrind-trunk/bin",
"/home/shlomif/apps/latemp/bin", "/home/shlomif/apps/quadpres/bin",
"/home/shlomif/apps/wml/bin", "/home/shlomif/bin",
"/home/shlomif/apps/vim/bin", "/home/shlomif/apps/gwenview/bin",
"/usr/local/bin", "/usr/bin", "/usr/games", "/usr/lib64/qt4/bin", "/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.resourcetable                              OK
akonadi.schemaversiontable                         OK
akonadi.tagattributetable                          OK
akonadi.tagremoteidresourcerelationtable           OK
akonadi.tagtable                                   OK
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.servers                                      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 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  "TagTable" checking table
"TagAttributeTable" checking table  "TagRemoteIdResourceRelationTable" checking
table  "PimItemFlagRelation" checking table  "PimItemTagRelation" 
checking table  "CollectionMimeTypeRelation" 
checking table  "CollectionPimItemRelation" 
DbInitializer::run() done 
skipping update 2 
skipping update 3 
skipping update 4 
skipping update 8 
skipping update 10 
skipping update 12 
skipping update 13 
skipping update 14 
skipping update 15 
skipping update 16 
skipping update 17 
skipping update 18 
skipping update 19 
skipping update 20 
skipping update 21 
skipping update 22 
skipping update 23 
skipping update 24 
skipping update 25 
skipping update 26 
Indexes successfully created 
DataStore::unhideAllPimItems() 
Connecting to deprecated signal
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) Database
"akonadi" opened using driver "QMYSQL" Search loop is waiting, will wake again
in -1 ms Database "akonadi" opened using driver "QMYSQL" 
Unable to connect to dbus service:  ""
Database "akonadi" opened using driver "QMYSQL" 
"[
0: akonadiserver(_Z11akBacktracev+0x39) [0x4656b9]
1: akonadiserver() [0x465944]
2: /lib64/libc.so.6(+0x34dc0) [0x7fa2f80d9dc0]
3: /lib64/libc.so.6(gsignal+0x39) [0x7fa2f80d9d39]
4: /lib64/libc.so.6(abort+0x148) [0x7fa2f80db368]
5: /lib64/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x64)
[0x7fa2f9bec7e4] 6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa0)
[0x467bc0] 7: /lib64/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xb0)
[0x7fa2f9c873f0] 8: /lib64/libQtCore.so.4(+0x1187ed) [0x7fa2f9c947ed]
9: /lib64/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x33) [0x7fa2f9c9d3d3]
10: akonadiserver(_ZN7Akonadi6Server13AkonadiServer4initEv+0xcd2) [0x46bb12]
11: /lib64/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x24e) [0x7fa2f9d0ea8e]
12: /lib64/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x6d)
[0x7fa2f9cf6b9d]
13: /lib64/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x1ef)
[0x7fa2f9cf995f] 14: /lib64/libQtCore.so.4(+0x1a7da3) [0x7fa2f9d23da3]
15: /lib64/libglib-2.0.so.0(g_main_context_dispatch+0x264) [0x7fa2f77aabe4]
16: /lib64/libglib-2.0.so.0(+0x48e28) [0x7fa2f77aae28]
17: /lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fa2f77aaecc]
18: /lib64/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x65)
[0x7fa2f9d23665]
19: /lib64/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x2f)
[0x7fa2f9cf57ff]
20: /lib64/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x175)
[0x7fa2f9cf5af5] 21: /lib64/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x8b)
[0x7fa2f9cfabdb] 22: akonadiserver(main+0x1d3) [0x45e983]
23: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fa2f80c6c85] 24:
akonadiserver() [0x45f1f6] ] " shlomif@telaviv1:~$ 


-----------

Is this normal?

I'd really like to be able to delete these calendars so I can set up new ones.


Reproducible: Always

Steps to Reproduce:
1. Use my account to delete the calendar.
2. Try to delete it.

Actual Results:  
 It doesn't get deleted.

Expected Results:  
The calendar should be deleted successfully.

Mageia Linux x86-64 5/Cauldron with kde-4.13.0 from the Mageia RPMS.
Comment 1 Denis Kurz 2016-09-24 20:45:39 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Shlomi Fish 2016-09-25 00:34:51 UTC
seems to be fine in KDE Applications 15. Resolving.