Kmail Error when running AkonadiServer Error

kmail
Icon theme “Numix-Circle-Light” not found.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Icon theme “Numix-Circle-Light” not found.
org.kde.pim.akonadiserver: Starting up the Akonadi Server…
org.kde.pim.akonadiserver: Cluster PG_VERSION is 12 , PostgreSQL server is version 13 , will attempt to upgrade the cluster
org.kde.pim.akonadiserver: Postgres db cluster upgrade failed, Akonadi will fail to start. Sorry.
org.kde.pim.akonadiserver: Database process exited unexpectedly during initial connection!
org.kde.pim.akonadiserver: executable: “/usr/bin/pg_ctl”
org.kde.pim.akonadiserver: arguments: (“start”, “-w”, “–timeout=10”, “–pgdata=/home/tuhin/.local/share/akonadi/db_data”, “-o “-k/var/run/user/1000/akonadi” -h ‘’”)
org.kde.pim.akonadiserver: stdout: “waiting for server to start…2021-04-25 11:07:16.586 +06 [22159] FATAL: database files are incompatible with server\n2021-04-25 11:07:16.586 +06 [22159] DETAIL: The data directory was initialized by PostgreSQL version 12, which is not compatible with this version 13.2.\n stopped waiting\n”
org.kde.pim.akonadiserver: stderr: “pg_ctl: could not start server\nExamine the log output.\n”
org.kde.pim.akonadiserver: exit code: 1
org.kde.pim.akonadiserver: process error: “Unknown error”
org.kde.pim.akonadiserver: Shutting down AkonadiServer…
org.kde.pim.akonadicontrol: Application ‘/usr/bin/akonadiserver’ exited normally…

I see an old Postgres db cluster. You may want to upgrade that manually, if possible.

You may emerge dev-db/postgres:12 and add it to default runlevel or update your home akonadi DB and unmerge postgres-12. ( https://userbase.kde.org/Akonadi/
https://userbase.kde.org/Akonadi/Postgres_update (~/.local/share/akonadi/db_data/PG_VERSION) )