Bug 402623 - Cannot start flatpak on non KDE desktop environments
Summary: Cannot start flatpak on non KDE desktop environments
Status: RESOLVED WORKSFORME
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-27 23:33 UTC by Mildred Ki'Lya
Modified: 2021-03-07 04:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mildred Ki'Lya 2018-12-27 23:33:17 UTC
SUMMARY

Cannot start Kontact flatpak on non KDE desktop environment where KDE dbus services are not available. It seems there may be issues with differing versions between the platform and the flatpak...

STEPS TO REPRODUCE
1. Run fedora silverblue with GNOME
2. Install Kontact flatpak
3. try to run it

OBSERVED RESULT
Akondi services fails to start, the application is an empty shell... Nothing is usable

EXPECTED RESULT
it should work

SOFTWARE/OS VERSIONS
Fedora silverblue with Kontact flatpak as available on Flathub

ADDITIONAL INFORMATION

Selected error messages:

org.kde.pim.akonadicontrol: Application 'akonadiserver' crashed! 1 restarts left.
org.kde.pim.kidentitymanagement: IdentityManager: There was no default identity. Marking first one as default.
Cannot mix incompatible Qt library (version 0x50b02) with this library (version 0x50b03)
org.kde.pim.akonadicontrol: ProcessControl: Application "akonadiserver" stopped unexpectedly ( "Process crashed" )
org.kde.pim.akonadicontrol: Application 'akonadiserver' crashed! 0 restarts left.

org.kde.pim.kdepimdbusinterface: Failure starting korgac: "KLauncher could not be reached via D-Bus. Error when calling start_service_by_desktop_path:\nThe name org.kde.klauncher5 was not provided by any .service files\n"

Akondi server self test report:

Akonadi Server Self-Test Report
===============================

Test 1:  SUCCESS
--------

Database driver found.
Details: The QtSQL driver 'QSQLITE3' is required by your current Akonadi server configuration and was found on your system.

File content of '/home/mildred/.var/app/org.kde.kontact/config/akonadi/akonadiserverrc':
[%General]
Driver=QSQLITE3

[QSQLITE3]
Name=/home/mildred/.var/app/org.kde.kontact/data/akonadi/akonadi.db


Test 2:  SUCCESS
--------

Akonadi is not running as root
Details: Akonadi is not running as a root/administrator user, which is the recommended setup for a secure system.

Test 3:  SKIP
--------

MySQL server executable not tested.
Details: The current configuration does not require an internal MySQL server.

Test 4:  SKIP
--------

MySQL server error log not tested.
Details: The current configuration does not require an internal MySQL server.

Test 5:  SKIP
--------

MySQL server configuration not tested.
Details: The current configuration does not require an internal MySQL server.

Test 6:  SUCCESS
--------

akonadictl found and usable
Details: The program '/app/bin/akonadictl' to control the Akonadi server was found and could be executed successfully.
Result:
akonadictl 5.9.2


Test 7:  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 8:  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 9:  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 10:  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: '/app/share/akonadi/agents'. The XDG_DATA_DIRS environment variable is set to '/app/share:/usr/share:/usr/share/runtime/share:/run/host/share'; make sure this includes all paths where Akonadi agents are installed.

Directory listing of '/app/share/akonadi/agents':
akonadiindexingagent.desktop
akonotesresource.desktop
archivemailagent.desktop
birthdaysresource.desktop
contactsresource.desktop
davgroupwareresource.desktop
ewsmtaresource.desktop
ewsresource.desktop
facebookresource.desktop
followupreminder.desktop
googlecalendarresource.desktop
googlecontactsresource.desktop
icaldirresource.desktop
icalresource.desktop
imapresource.desktop
invitationsagent.desktop
kalarmdirresource.desktop
kalarmresource.desktop
kolabresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mailfilteragent.desktop
mboxresource.desktop
migrationagent.desktop
mixedmaildirresource.desktop
newmailnotifieragent.desktop
notesagent.desktop
notesresource.desktop
openxchangeresource.desktop
pop3resource.desktop
sendlateragent.desktop
tomboynotesresource.desktop
vcarddirresource.desktop
vcardresource.desktop

Environment variable XDG_DATA_DIRS is set to '/app/share:/usr/share:/usr/share/runtime/share:/run/host/share'

Test 11:  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/mildred/.var/app/org.kde.kontact/data/akonadi/akonadiserver.error">/home/mildred/.var/app/org.kde.kontact/data/akonadi/akonadiserver.error</a>.

File content of '/home/mildred/.var/app/org.kde.kontact/data/akonadi/akonadiserver.error':
Cannot mix incompatible Qt library (version 0x50b02) with this library (version 0x50b03)


Test 12:  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/mildred/.var/app/org.kde.kontact/data/akonadi/akonadiserver.error.old">/home/mildred/.var/app/org.kde.kontact/data/akonadi/akonadiserver.error.old</a>.

File content of '/home/mildred/.var/app/org.kde.kontact/data/akonadi/akonadiserver.error.old':
Cannot mix incompatible Qt library (version 0x50b02) with this library (version 0x50b03)


Test 13:  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/mildred/.var/app/org.kde.kontact/data/akonadi/akonadi_control.error">/home/mildred/.var/app/org.kde.kontact/data/akonadi/akonadi_control.error</a>.

File content of '/home/mildred/.var/app/org.kde.kontact/data/akonadi/akonadi_control.error':
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
ProcessControl: Application "akonadiserver" stopped unexpectedly ( "Process crashed" )
Application 'akonadiserver' crashed! 1 restarts left.
ProcessControl: Application "akonadiserver" stopped unexpectedly ( "Process crashed" )
Application 'akonadiserver' crashed! 0 restarts left.
ProcessControl: Application "akonadiserver" stopped unexpectedly ( "Process crashed" )
Application 'akonadiserver' crashed too often. Giving up!


Test 14:  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/mildred/.var/app/org.kde.kontact/data/akonadi/akonadi_control.error.old">/home/mildred/.var/app/org.kde.kontact/data/akonadi/akonadi_control.error.old</a>.

File content of '/home/mildred/.var/app/org.kde.kontact/data/akonadi/akonadi_control.error.old':
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
ProcessControl: Application "akonadiserver" stopped unexpectedly ( "Process crashed" )
Application 'akonadiserver' crashed! 1 restarts left.
ProcessControl: Application "akonadiserver" stopped unexpectedly ( "Process crashed" )
Application 'akonadiserver' crashed! 0 restarts left.
ProcessControl: Application "akonadiserver" stopped unexpectedly ( "Process crashed" )
Application 'akonadiserver' crashed too often. Giving up!
Comment 1 Justin Zobel 2021-01-12 02:03:36 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 2 Bug Janitor Service 2021-01-27 04:33:19 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Mildred Ki'Lya 2021-02-05 10:17:44 UTC
I no longer have a crash with current flatpak and current Fedora Silverblue.

Kontact version 5.16.2 (20.12.2)
KMail 5.16.2 (20.12.2)

However, it is impossible to setup an IMAP account on KMail. In the KMail settings, clicking the "Add Account" button does nothing, and in the console I can see the following error message:

Qt: Session management error: None of the authentication protocols specified are supported

When trying to create the account with the assistant, at the step where it "configures the account" it stops, nothing gets printed in the details box. In the console I can see the following messages:

Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name is not activatable")
QObject::connect(KWallet::Wallet, QEventLoop): invalid nullptr parameter

It seems it cannot save the password somehow.
Comment 4 Mildred Ki'Lya 2021-02-05 10:26:19 UTC
Note: Flatpak has a secret service portal to store passwords:

https://github.com/flatpak/xdg-desktop-portal/blob/9a2582d035a397efbb330c53f893d5649c1fd749/data/org.freedesktop.portal.Secret.xml
Comment 5 Bug Janitor Service 2021-02-20 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2021-03-07 04:33:27 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!