Reply to topic

KMail IMAP Account doesn't show... just see 'Local Folders'

prichards
Registered Member
Posts
1
Karma
0
After setting up KMail, my IMAP Account doesn't show anywhere other than the KMail account settings, I've tried rebooting my pc a few times, restarting the account... it's an IMAP outlook.office365.com account so maybe that has something to do with it?

I can go to "File" -> "Check Mail In" -> (account name) but that doesn't seem to do anything...

I can, however, send email through smtp.office365.com. This is frustrating because I don't see any error messages or anything!

EDIT: I'm on Kubuntu 16.04 with all updates and KMail 5.1.3...
User avatar einar
Administrator
Posts
3400
Karma
7
OS
Does it show on the list in "akonadiconsole"?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
Pedahzur
Registered Member
Posts
1
Karma
0
OS
So, I'm having this problem. KMail 5.7.3 (according to 'About KMail'). The new account shows in Akonadi control, but it doesn't show sub-folders, like other IMAP accounts do. I can see my other IMAP accounts in KMail. No errors are thrown by KMail or Akonadi that I can see. Nothing about an invalid password or anything. This is connecting to outlook.office365.com as my IMAP server, if that matters.

Log output when I try to check e-mail: https://gist.github.com/jkugler/993f559 ... b233857a97
tangodelta
Registered Member
Posts
5
Karma
0
OS
Hello!

I have the same issue. I’ve been trying to configure Kmail with Kolab via the Kolab v3 resource and as regular IMAP, without success. I’ve used Kmail before and it worked just fine with IMAP. The symptoms match: accounts are added by the wizard or manually, but the tree doesn’t get generated (I see only local mail).

I decided to use my test laptop and the issue appears there as well, that’s also where I did all the troubleshooting. I’ve tested on a fresh local user account, to make sure I get a fresh copy of the Akonadi store. Akonadi crashed badly when starting up Kmail, it generated a report. Those are the errors:

Code: Select all
Akonadi Server Self-Test Report
===============================
Test 6:  ERROR
--------

MySQL server default configuration not found.
Details: The default configuration for the MySQL server was not found or was not readable. Check your Akonadi installation is complete and you have all required access rights.

Test 10:  ERROR
--------

Akonadi control process not registered at D-Bus.
Details: The Akonadi control process is not registered at D-Bus which typically means it was not started or encountered a fatal error during startup.

Test 11:  ERROR
--------

Akonadi server process not registered at D-Bus.
Details: The Akonadi server process is not registered at D-Bus which typically means it was not started or encountered a fatal error during startup.

Test 12:  SKIP
--------

Protocol version check not possible.
Details: Without a connection to the server it is not possible to check if the protocol version meets the requirements.

Test 13:  ERROR
--------

No resource agents found.
Details: No resource agents have been found, Akonadi is not usable without at least one. This usually means that no resource agents are installed or that there is a setup problem. The following paths have been searched: '/usr/share/akonadi/agents'. The XDG_DATA_DIRS environment variable is set to '/usr/share//usr/share/xsessions/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop'; make sure this includes all paths where Akonadi agents are installed.

Directory listing of '/usr/share/akonadi/agents':
akonadiindexingagent.desktop
[redacted for brevity]

Environment variable XDG_DATA_DIRS is set to '/usr/share//usr/share/xsessions/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop'

Test 14:  ERROR
--------

Current Akonadi server error log found.
Details: The Akonadi server reported errors during its current startup. The log can be found in <a href="/home/kmail/.local/share/akonadi/akonadiserver.error">/home/kmail/.local/share/akonadi/akonadiserver.error</a>.

File content of '/home/kmail/.local/share/akonadi/akonadiserver.error':
database server stopped unexpectedly
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld-akonadi"
arguments: ("--defaults-file=/home/kmail/.local/share/akonadi/mysql.conf", "--datadir=/home/kmail/.local/share/akonadi/db_data/", "--socket=/tmp/akonadi-kmail.haDkRi/mysql.socket", "--pid-file=/tmp/akonadi-kmail.haDkRi/mysql.pid")
stdout: ""
stderr: "180707 15:23:28 [Note] /usr/sbin/mysqld (mysqld 10.0.34-MariaDB-0ubuntu0.16.04.1) starting as process 6167 ...\n180707 15:23:28 [Warning] Can't create test file /home/kmail/.local/share/akonadi/db_data/topaz.lower-test\n\x07/usr/sbin/mysqld: Can't change dir to '/home/kmail/.local/share/akonadi/db_data/' (Errcode: 2 \"No such file or directory\")\n180707 15:23:28 [ERROR] Aborting\n\n180707 15:23:28 [Note] /usr/sbin/mysqld: Shutdown complete\n\n"
exit code: 1
process error: "Unknown error"
Failed to remove runtime connection config file


Test 15:  ERROR
--------

Previous Akonadi server error log found.
Details: The Akonadi server reported errors during its previous startup. The log can be found in <a href="/home/kmail/.local/share/akonadi/akonadiserver.error.old">/home/kmail/.local/share/akonadi/akonadiserver.error.old</a>.

File content of '/home/kmail/.local/share/akonadi/akonadiserver.error.old':
database server stopped unexpectedly
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld-akonadi"
arguments: ("--defaults-file=/home/kmail/.local/share/akonadi/mysql.conf", "--datadir=/home/kmail/.local/share/akonadi/db_data/", "--socket=/tmp/akonadi-kmail.haDkRi/mysql.socket", "--pid-file=/tmp/akonadi-kmail.haDkRi/mysql.pid")
stdout: ""
stderr: "180707 15:23:23 [Note] /usr/sbin/mysqld (mysqld 10.0.34-MariaDB-0ubuntu0.16.04.1) starting as process 6156 ...\n180707 15:23:23 [Warning] Can't create test file /home/kmail/.local/share/akonadi/db_data/topaz.lower-test\n\x07/usr/sbin/mysqld: Can't change dir to '/home/kmail/.local/share/akonadi/db_data/' (Errcode: 2 \"No such file or directory\")\n180707 15:23:23 [ERROR] Aborting\n\n180707 15:23:23 [Note] /usr/sbin/mysqld: Shutdown complete\n\n"
exit code: 1
process error: "Unknown error"
Failed to remove runtime connection config file


Test 16:  ERROR
--------

Current Akonadi control error log found.
Details: The Akonadi control process reported errors during its current startup. The log can be found in <a href="/home/kmail/.local/share/akonadi/akonadi_control.error">/home/kmail/.local/share/akonadi/akonadi_control.error</a>.

File content of '/home/kmail/.local/share/akonadi/akonadi_control.error':
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Application 'akonadiserver' exited normally...


Test 17:  ERROR
--------

Previous Akonadi control error log found.
Details: The Akonadi control process reported errors during its previous startup. The log can be found in <a href="/home/kmail/.local/share/akonadi/akonadi_control.error.old">/home/kmail/.local/share/akonadi/akonadi_control.error.old</a>.

File content of '/home/kmail/.local/share/akonadi/akonadi_control.error.old':
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Application 'akonadiserver' exited normally...


I’ve managed to fix ERROR 15, by creating this folder: /home/[my username]/.local/share/akonadi/db_data/

Without this, Kmail would just complain that Akonadi is dead and it won’t start without Akonadi. After that I arrived at the same situation that Pedahzur and prichards.

There are accounts added, but I can’t see the mail folders in the tree on the left. Restarting KMail and the whole computer didn’t help. Manually downloading the mail or setting it to be checked on start-up of KMail also didn’t help. There should be a progress bar in the bottom right corner indicating that KMail is downloading mail or at least trying to, but it’s gone.

I’ve installed akonadiconsole and I have little to report. In debug mode when clicking in KMail to fetch mail from all boxes I see that the local maildir is being accessed (akonadi_maildir_resource_0 (0xf81f40)), but there’s no sign of the IMAP account. As if it wasn’t there to begin with.

In the resource list I see my IMAP account. In Monitors I see akonadi_imap_resource_0 and as its sub-entries I see two AgentBaseChangeRecorder objects.

I’ve checked mysql/mariadb logs in /home/username/.local/share/akonadi/db_data and there are multiple errors.

Code: Select all
180708 14:45:14 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
180708 14:45:14 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
180708 14:45:14 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure


After a couple dozen of errors about table 'performance_schema' there’s also this:

Code: Select all
180708 14:45:14 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table 'mysql.gtid_slave_pos' doesn't exist
180708 14:45:15 [Note] Reading of all Master_info entries succeded
180708 14:45:15 [Note] Added new Master_info '' to hash table
180708 14:45:15 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.0.34-MariaDB-0ubuntu0.16.04.1'  socket: '/tmp/akonadi-kmail.PxTyId/mysql.socket'  port: 0  Ubuntu 16.04
2018-07-08 14:45:16 7f7743af9700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.


In a different log I’ve found this:

Code: Select all
2018-07-07 15:26:03 7fcaa6c2e700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-07-07 15:26:08 7fcaa6c2e700 InnoDB: Recalculation of persistent statistics requested for table "akonadi"."collectiontable" index "CollectionTable_parentAndNameIndex" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.

Version: '10.0.34-MariaDB-0ubuntu0.16.04.1'  socket: '/tmp/akonadi-kmail.wdNWaH/mysql.socket'  port: 0  Ubuntu 16.04
2018-07-07 17:59:08 7f5065d46700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
180707 18:05:01 [Warning] Aborted connection 4 to db: 'akonadi' user: 'kmail' host: '' (Got an error reading communication packets)
180707 18:05:01 [Warning] Aborted connection 5 to db: 'akonadi' user: 'kmail' host: '' (Got an error reading communication packets)
180707 18:05:01 [Warning] Aborted connection 6 to db: 'akonadi' user: 'kmail' host: '' (Got an error reading communication packets)
180707 18:05:01 [Warning] Aborted connection 8 to db: 'akonadi' user: 'kmail' host: '' (Got an error reading communication packets)

More info about my system:
Code: Select all
System used: KDE Neon 16.04,
Kmail version 5.8.2
Akonadi and Kmail packages:
ii  akonadi-backend-mysql                           4:18.04.2-0neon+16.04+xenial+build41                     all          MySQL storage backend for Akonadi
ii  akonadi-contacts-data                           4:18.04.2-0neon+16.04+xenial+build47                     all          akonadi-contacts - data files
ii  akonadi-import-wizard                           4:18.04.2-0neon+16.04+xenial+build44                     amd64        PIM data import wizard
ii  akonadi-mime-data                               4:18.04.2-0neon+16.04+xenial+build32                     all          akonadi-mime - data files
ii  akonadi-server                                  4:18.04.2-0neon+16.04+xenial+build41                     amd64        Akonadi PIM storage service
ii  akonadiconsole                                  4:18.04.2-0neon+16.04+xenial+build42                     amd64        management and debugging console for akonadi
ii  libkf5akonadiagentbase5:amd64                   4:18.04.2-0neon+16.04+xenial+build41                     amd64        Akonadi agent base library
ii  libkf5akonadicalendar5:amd64                    4:18.04.2-0neon+16.04+xenial+build35                     amd64        library providing calendar helpers for Akonadi items
ii  libkf5akonadicontact5:amd64                     4:18.04.2-0neon+16.04+xenial+build47                     amd64        Akonadi contacts access library
ii  libkf5akonadicore5:amd64                        4:18.04.2-0neon+16.04+xenial+build41                     amd64        Akonadi core library
ii  libkf5akonadimime5:amd64                        4:18.04.2-0neon+16.04+xenial+build32                     amd64        Akonadi MIME handling library
ii  libkf5akonadinotes5:amd64                       4:18.04.2-0neon+16.04+xenial+build33                     amd64        Akonadi notes access library
ii  libkf5akonadiprivate5:amd64                     4:18.04.2-0neon+16.04+xenial+build41                     amd64        libraries for the Akonadi PIM storage service
ii  libkf5akonadisearch-bin                         4:18.04.2-0neon+16.04+xenial+build35                     amd64        Akonadi search library - runtime binaries
ii  libkf5akonadisearch-data                        4:18.04.2-0neon+16.04+xenial+build35                     all          Akonadi search library - data files
ii  libkf5akonadisearch-plugins:amd64               4:18.04.2-0neon+16.04+xenial+build35                     amd64        Akonadi search library - runtime plugins
ii  libkf5akonadisearchcore5:amd64                  4:18.04.2-0neon+16.04+xenial+build35                     amd64        Akonadi search core library
ii  libkf5akonadisearchdebug5:amd64                 4:18.04.2-0neon+16.04+xenial+build35                     amd64        Akonadi search debug library
ii  libkf5akonadisearchpim5:amd64                   4:18.04.2-0neon+16.04+xenial+build35                     amd64        Akonadi search library
ii  libkf5akonadisearchxapian5:amd64                4:18.04.2-0neon+16.04+xenial+build35                     amd64        Akonadi search xapian library
ii  libkf5akonadiwidgets5:amd64                     4:18.04.2-0neon+16.04+xenial+build41                     amd64        Akonadi widgets library
ii  libkf5akonadixml5:amd64                         4:18.04.2-0neon+16.04+xenial+build41                     amd64        Akonadi XML helper library
ii  libkf5contacteditor-data                        4:18.04.2-0neon+16.04+xenial+build47                     all          akonadi-contacts - data files
ii  libkf5libkdepimakonadi5:amd64                   4:18.04.2-0neon+16.04+xenial+build26                     amd64        KDE PIM Akonadi library
ii  libkf5mailimporterakonadi5:amd64                4:18.04.2-0neon+16.04+xenial+build37                     amd64        KDE PIM Mail importer Akonadi library
ii  libkf5mailtransportakonadi5:amd64               18.04.2-0neon+16.04+xenial+build51                       amd64        mail transport service library for akonadi
ii  libkf5pimcommonakonadi5:amd64                   4:18.04.2-0neon+16.04+xenial+build38                     amd64        Common library for KDE PIM Akonadi
ii  kmail                                           4:18.04.2-0neon+16.04+xenial+build60                     amd64        full featured graphical email client


Similar issues
I haven’t tried this yet: viewtopic.php?f=215&t=152857
https://unix.stackexchange.com/question ... on-managem
This may be a red herring (although the log from Akonadi looks very similar) [bug]https://bugs.kde.org/show_bug.cgi?id=362138[/bug]

How can I troubleshoot more?

Best regards!
tangodelta
Registered Member
Posts
5
Karma
0
OS
Hello again,

I think I have a solution. Obviously, no guarantees!

MAKE A BACKUP OF YOUR MAIL WITH THE BACKUP WIZARD

Stop all programs using Akonadi, mainly KMail/Kontact
Install akonadiconsole (in my case apt install akonadiconsole)
Run akonadiconsole
From within akonadiconsole go to Server > stop server

Verify. The only thing detected by grep is grep itself ;)

Code: Select all
td@topaz:~$ ps aux | grep akonadi
td        3361  0.0  0.0  14164  1016 pts/0    S+   16:56   0:00 grep --color=auto akonadi


Indeed, the server is stopped. Now rename the folders keeping akonadi resources in ~/.local/share (it's safer to rename instead of removing, just in case). In my case I had those:

Code: Select all
td@topaz:~/.local/share$ ls -la | grep akon
drwxrwxr-x  5 td td 4096 lip  8 16:46 akonadi
drwxrwxr-x 10 td td 4096 lip  7 11:58 akonadi_maildir_resource_0
drwxrwxr-x  3 td td 4096 lip  7 11:55 akonadi_migration_agent


Double-check

Code: Select all
td@topaz:~/.local/share$ ls -la | grep akon
drwxrwxr-x  5 td td 4096 lip  8 16:46 akonadi_fixing
drwxrwxr-x 10 td td 4096 lip  7 11:58 akonadi_maildir_resource_0_fixing
drwxrwxr-x  3 td td 4096 lip  7 11:55 akonadi_migration_agent_fixing


Make sure you have the akonadi/db_data subfolder
Code: Select all
td@topaz:~/.local/share$ mkdir -p ~/.local/share/akonadi/db_data


Start akonadiconsole, ignore the two errors, server > start server
Start kmail and configure your account

I've managed to fix my installation this way and connect to a GMail account. I've successfully downloaded my mail.

Did this help anybody else? How can I let the devs / package maintainers know about this?
User avatar Snowhog
Registered Member
Posts
197
Karma
1
OS
I'm also suffering this problem. KMail 5.1.3 on Kubuntu 16.04.5. My email provider uses IMAP, and I've correctly configured KMail for both the Incoming and Outgoing servers. No errors are being reported when launching KMail. Only Local Folders are shown. I can create and send emails, but I can't receive any emails, as none of the IMAP Account folders are being recognized/displayed. Akonadiconsole Agents tab shows the IMAP agent and it shows as 'Ready'.


Administrator
Kubuntu Forums . Net - https://kubuntuforums.net

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], bovender, gfielding, Google [Bot], hiteshshah, lucianosalomoni, Majestic-12 [Bot], Sentinel, TheBeheader, Yahoo [Bot]