Bug 453631

Summary: Can't open text documents: "The Akonadi personal information management service is not operational" (Kjots should not require the Akonadi PIM service)
Product: [Unmaintained] kjots Reporter: myndstream
Component: generalAssignee: Igor Poboiko <igor.poboiko>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.1.0   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description myndstream 2022-05-10 15:38:16 UTC
SUMMARY
After installing it on Debian11/KDE, it shows the error "The Akonadi personal information management service is not operational". There is a "Details" button beneath it but clicking on it doesn't do anything.

The complete console output is:

>No text-to-speech plug-ins were found.
>Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
>org.kde.pim.akonadiserver: Starting up the Akonadi Server...
>org.kde.pim.akonadiserver: mysqld not found. Please verify your installation
>org.kde.pim.akonadiserver: Shutting down AkonadiServer...
>org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...
>org.kde.pim.akonadicore: Job error:  "" for collection: QVector()

Kjots should not require the Akonadi personal information management service to work. I don't know why it tries to use it but it probably shouldn't do so by default.

Some useful info may be at https://unix.stackexchange.com/q/451186/233262 (same error, different app) and I installed it and mentioned this error first at and because of https://unix.stackexchange.com/q/702033/233262

STEPS TO REPRODUCE
1. Install Kjots version 5.1.0 on Debian11/KDE
2. Launch it

OBSERVED RESULT
Files can't be opened and this error is shown.

EXPECTED RESULT
Files can be opened and no error is shown. Kjots should not require the Akonadi personal information management service to work and it shouldn't use it by-default.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 11
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Igor Poboiko 2022-05-13 13:59:34 UTC
Hi,

KJots is currently completely based on the KDE PIM stack, including Akonadi which is used to create/open/modify notes, even locally. There's not much can be done without rewriting a huge part of it.

Please also note that KJots stores notes in a very specific maildir format, and is not intended to be used as a general purpose document/text editor (e.g. use it to modify ordinary plain text files, OpenDocument format files, etc.). There are better applications for that purpose.

As for the issues you experience with the Akonadi: due to the "mysqld not found" line I would suggest installing mysql server and probably sending a bugreport to the distribution you use (Debian), which should have mysqld as a dependency for Akonadi.
Comment 2 myndstream 2022-05-13 14:11:38 UTC
(In reply to Igor Poboiko from comment #1)

> KJots is currently completely based on the KDE PIM stack, including Akonadi
> which is used to create/open/modify notes, even locally

Why does an app for writing/reading text require personal information management tools? How is that relevant to notes-taking? For example, I wouldn't want an app for notes to have access to my contacts and so on. It seems to be unnecessary/badly designed and a privacy concern.

> Please also note that KJots stores notes in a very specific maildir format,
> and is not intended to be used as a general purpose document/text editor
> (e.g. use it to modify ordinary plain text files, OpenDocument format files,
> etc.).

I don't understand why it can't open plain text files instead of only making it an option to read/save as maildir.

>There are better applications for that purpose.

Which? Anything better than Kate? I submitted this issue because of a major issue with Kate for note-taking and am looking for a similar app: https://unix.stackexchange.com/q/702033/233262

> As for the issues you experience with the Akonadi: due to the "mysqld not
> found" line I would suggest installing mysql server and probably sending a
> bugreport to the distribution you use (Debian), which should have mysqld as
> a dependency for Akonadi.

Why would one need to install mysql server for a note-taking app? This is just very wrong, especially if it's a dependency instead of optional.
Comment 3 Igor Poboiko 2022-05-16 13:32:31 UTC
(In reply to myndstream from comment #2)
> [...]
> Why does an app for writing/reading text require personal information
> management tools? How is that relevant to notes-taking? For example, I
> wouldn't want an app for notes to have access to my contacts and so on. It
> seems to be unnecessary/badly designed and a privacy concern.

Because it was originally created as a part of KDE PIM ecosystem.
Integration with Akonadi would make sense because it could allow i.e. seamless integration with online services (Kolab, Evernote, NextCloud, Google Keep, whatever), as well as some more advanced features like tags/labels, being able to share notes with your contacts, and so on.
Although unfortunately due to lack of manpower most of it is not yet implemented... :(

> I don't understand why it can't open plain text files instead of only making
> it an option to read/save as maildir.

Well, one of the reasons is because it allows for rich text formatting (bold/underline/changing text color/links/inserting pictures/tables/etc), and so it internally uses html-like (Qt Rich Text) format anyways.
As for maildir: it seems like historically it was the easiest solution, as maildir support was already implemented inside Akonadi and it fitted the needs.

> Which? Anything better than Kate? I submitted this issue because of a major
> issue with Kate for note-taking and am looking for a similar app:
> https://unix.stackexchange.com/q/702033/233262

Kate is good as a pure plain-text editor, and apps like LibreOffice are better if you need a well-structured large documents (although it's obviously a bit heavy for note taking).
For your particular use case I would suggest looking at note taking apps that support markdown format, which is a plain-text format which nevertheless allows for some structure and rich text. Such as QOwnNotes, Joplin, and others. You could find more as well as some articles with comparison of those by googling for "linux markdown note app".

> Why would one need to install mysql server for a note-taking app? This is
> just very wrong, especially if it's a dependency instead of optional.

Indeed it would be an obvious overkill and not the best choice for you if the only application you use from the KDE PIM is KJots.
But if you already use KMail / KOrganizer / Kalendar / KAddressBook / etc., and you already have Akonadi and MySQL installed and running, then such a dependency makes no difference. That's what I've started with - it was intended to be a part of KDE PIM ecosystem.