Bug 496429 - Akonadi fails to start
Summary: Akonadi fails to start
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.2.3
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-18 18:06 UTC by nathan
Modified: 2024-11-25 18:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nathan 2024-11-18 18:06:47 UTC
SUMMARY
When opening kmail or kontact, I receive the following error: "A required background service is not running. This application cannot be used without it." When attempting to run Akonadi via `akonadictl start`, the output is as follows:

```
org.kde.pim.akonadictl: Starting Akonadi Server...
org.kde.pim.akonadictl:    done.

~
❯ Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Starting up the Akonadi Server...
org.kde.pim.akonadiserver: database server stopped unexpectedly
org.kde.pim.akonadiserver: Database process exited unexpectedly during initial connection!
org.kde.pim.akonadiserver: executable: "/usr/bin/mysqld"
org.kde.pim.akonadiserver: arguments: QList("--defaults-file=/home/[user]/.local/share/akonadi/mysql.conf", "--datadir=/home/[user]/.local/share/akonadi/db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/1000/akonadi/mysql.pid")
org.kde.pim.akonadiserver: stdout: ""
org.kde.pim.akonadiserver: stderr: "/usr/bin/mysqld: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadbd' instead\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...
```

STEPS TO REPRODUCE
1. Attempt to run Akonadi on an up to date version of Arch via akonadictl start

SOFTWARE/OS VERSIONS
Akonadi: 24.08.3-1
Operating System: EndeavourOS 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.8-arch1-2 (64-bit)
Graphics Platform: Wayland
Comment 1 nathan 2024-11-19 21:34:46 UTC
Workaround: error no longer occurs after running:

` mv ~/.local/share/akonadi/db_data ~/.local/share/akonadi/db_data.bak`

per https://forum.endeavouros.com/t/akonadi-fails-to-start-kde/27803