Summary: | KMail2 and akonadiconsole continuously lose connection to akonadi server - happens every 30 secs to 2 minutes. | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Rodney Baker <rodney.baker> |
Component: | server | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | grave | CC: | cfeck, dvratil, frank.mehnert, fresh.road1272, heikkivalisuo, host71, iivanich, rodney.baker, sknauss, till2.schaefer, tprotopopescu |
Priority: | NOR | ||
Version: | 5.2.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Requested gdb 'thread apply all bt' dump |
Description
Rodney Baker
2016-08-26 11:16:23 UTC
I am "glad" I am not the only one. Have exactly the same error. some examples: Pass a valid window to KWallet::Wallet::openWallet(). false false false [ 0: akonadiserver() [0x581146] 1: akonadiserver() [0x581462] 2: /lib64/libc.so.6(+0x349f0) [0x7f6544ae69f0] 3: [0x7f6514032130] ] log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicontrol: ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error) log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" ---------------------------- org.kde.akonadi.ETM: Fetch job took 31 msec org.kde.akonadi.ETM: was collection fetch job: collections: 8 org.kde.akonadi.ETM: first fetched collection: "Search" log_akonadicore: The item sync is being rolled-back. log_akonadicore: The item sync is being rolled-back. log_imapresource: "Connection to server lost." log_akonadicore: The item sync is being rolled-back. log_imapresource: "Connection to server lost." log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicontrol: ProcessControl: Application "akonadiserver" stopped unexpectedly ( "Process crashed" ) log_akonadicontrol: Application 'akonadiserver' crashed! 1 restarts left. ----------------------------- org.kde.akonadi.ETM: Fetch job took 81 msec org.kde.akonadi.ETM: was collection fetch job: collections: 8 org.kde.akonadi.ETM: first fetched collection: "Search" [ 0: akonadiserver() [0x581146] 1: akonadiserver() [0x581462] 2: /lib64/libc.so.6(+0x349f0) [0x7f03c72c89f0] ] log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" log_akonadicontrol: ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error) log_akonadicore: Socket error occurred: "QLocalSocket: Remote closed" -------------------------------------- This was left out from the beginning of my previous comment org.kde.kgapi: log_akonadiplugin_indexer: invalid query "{\n \"limit\": -1,\n \"negated\": false,\n \"rel\": 0,\n \"subTerms\": [\n {\n \"cond\": 0,\n \"key\": \"name\",\n \"negated\": false,\n \"value\": \"NN <NN@gmail.com>\"\n }\n ]\n}\n" log_akonadiplugin_indexer: invalid query "{\n \"limit\": -1,\n \"negated\": false,\n \"rel\": 0,\n \"subTerms\": [\n {\n \"cond\": 0,\n \"key\": \"name\",\n \"negated\": false,\n \"value\": \"NN <NN@gmail.com>\"\n }\n ]\n}\n" Pass a valid window to KWallet::Wallet::openWallet(). false false false This now seems to be resolved for me after deleting all imap accounts in KMail, then dropping and recreating the akonadi database, then recreating the imap accounts. Since doing that I've not seen KMail2 lose connection to the akonadi server. I will continue to monitor and if it remains stable I will mark this as resolved. Not to be blunt, but deleting all imap accounts, dropping and recreating the akonadi database and recreating of all imap accounts is not what I would call resolved. It is a messy workaround and a very messy one at that. What about users that also still have pop3 email boxes? What about the less technical inclined? It's a messy workaround which hides a messy bug which is in need of a proper fix. (In reply to Frits Spieker from comment #5) > Not to be blunt, but deleting all imap accounts, dropping and recreating the > akonadi database and recreating of all imap accounts is not what I would > call resolved. It is a messy workaround and a very messy one at that. What > about users that also still have pop3 email boxes? What about the less > technical inclined? > It's a messy workaround which hides a messy bug which is in need of a proper > fix. In my case it is a resolution because it was most likely caused by an upgrade from 4.14.x to 5.23.x. There are documented incompatibilities between KDE4 and KF5 versions of KDE PIM that I was not aware of when I upgraded. This was the likely cause of the instability. There is a recommended upgrade procedure which I'd not followed because I was not aware of it. Deleting/recreating the akonadi database has solved the problem in my case. YMMV. I'm happy to leave this open for the devs to review - the cause of your issue may be different. Same problem here. Today I found this forum entry: https://forums.opensuse.org/showthread.php/519603-Problem-with-KMail-and-Akonadi Installing the packages from the given repos (I am running openSUSE Tumbleweed) solved the issue for me temporarily. But official bug fix would be appreciated. (In reply to Holger from comment #7) > Same problem here. > Today I found this forum entry: > https://forums.opensuse.org/showthread.php/519603-Problem-with-KMail-and- > Akonadi > > Installing the packages from the given repos (I am running openSUSE > Tumbleweed) solved the issue for me temporarily. But official bug fix would > be appreciated. Unfortunately, this workaround does not seem to work for everyone, so an official fix is still needed. Could someone please try to get a backtrace of the crash? You can attach GDB to the running akonadiserver process: create a file called "akonadi.dbg" with following content: c set pagination off t a a bt q Then attach GDB to the running Akonadi server process: gdb -p $(pidof akonadiserver) -x akonadi.dbg Once the server crashes, GDB will print out the backtrace of the crash and quit. Copy the backtrace and paste it here, then we can figure out what's crashing and how to fix it :-) Thanks Created attachment 101435 [details]
Requested gdb 'thread apply all bt' dump
Thread 8 was crashing.
Please let me know if you need more information. I suffer from this bug since 2 days. I'm not 100% sure but this might have started after I tried to change the local subscription settings of my IMAP accounts. I wonder if this has something to do with emailContacts: xapian-check emailContacts Cross-checking document lengths between the postlist and termlist tables would use more than 1GB of memory, so skipping that check docdata: blocksize=8K items=11 firstunused=1 revision=1 levels=0 root=0 B-tree checked okay docdata table structure checked OK termlist: blocksize=8K items=11 firstunused=1 revision=1 levels=0 root=0 B-tree checked okay xapian-check: Unknown exception The "unknown exception" does not happen if I check the other DBs in the search_db directory (calendars, collections, contacts, email or notes). Even if I reboot the box, remove emailContacts from a non-X session (akonadi not running), then login with KDE, emailContacts is regenerated (very small at the beginning). When I start kmail2 and fetch the e-mails a few times, emailContacts gets some more content and the xapian-check run fails again with "Unknown exception". Using xapian 1.4.0-2 on Debian/Sid. I'm getting desperate and I would like to work around this problem by recreating the akonadi DB. In the above comments I see ''This now seems to be resolved for me after deleting all imap accounts in KMail, then dropping and recreating the akonadi database, then recreating the imap accounts. Since doing that I've not seen KMail2 lose connection to the akonadi server.'' Could someone explain these steps a little bit more in detail? I don't want to lose mails... Sounds like a duplicate of #363741 *** This bug has been marked as a duplicate of bug 363741 *** |