Bug 469599 - Kontact and Kmail broken after upgrade to KDE 5.27.5, app is still there but will not open "Failed to register new cgroup, Process does not exist" error
Summary: Kontact and Kmail broken after upgrade to KDE 5.27.5, app is still there but ...
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR critical
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
: 469596 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-05-10 19:47 UTC by ioo+kde
Modified: 2023-05-12 18:23 UTC (History)
13 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 ioo+kde 2023-05-10 19:47:24 UTC
SUMMARY
***
I just upgraded from KDE 5.27.4 to KDE 5.27.5 and Kontact is now gone. The icon is still in my start menu but when I click on it nothing happens.

I see in the journal log this message:
[code]
May 10 15:40:34 host plasmashell[2808]: kf.kio.gui: Failed to register new cgroup: "app-org.kde.kontact-ca9cd8afcc1e4256bd90d768c5cac2c0.scope" "org.freedesktop.DBus.Error.UnixProcessIdUnknown" "Process with ID 40407 does not exist."
May 10 15:40:34 host plasmashell[2808]: kf.kio.gui: "<html>The command <tt></tt> could not be found.</html>"
[/code]

Does anyone have any idea what this means? What can I do to get my email back working again?

If I try to open just the kmail app I get this unhelpful message:
[code]
May 10 15:42:51 host systemd[2214]: Failed to start KMail - Mail Client.
[/code]

Help!!
***


STEPS TO REPRODUCE
1. Upgrade to KDE 5.27.5 from 5.27.4 using Discover
2. No errors, upgrade seemed to work
3. Open Kontact

OBSERVED RESULT
1. Nothing happens, see error log in journal.


EXPECTED RESULT
1. Kontact will open.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 ioo+kde 2023-05-10 19:48:50 UTC
I wish to add the following information:

KDE Plasma 5.27.5
KDE Framework Version 5.105.0
Qt version 5.15.9
Comment 2 ioo+kde 2023-05-10 19:54:37 UTC
I found another error when I try to open it in the journal:

May 10 15:52:58 host plasmashell[101020]: /usr/bin/kontact: error while loading shared libraries: libKF5TextAutoCorrection.so.1: cannot open shared object file: No such file or directory

Perhaps there are files missing from the upgrade? How can I fix this?
Comment 3 ioo+kde 2023-05-10 20:32:54 UTC
Doing a search for this library (sudo apt search libkf5textautocorrection)

libkf5textautocorrection1/jammy,now 1.3.1-0xneon+22.04+jammy+release+build15 amd64 [installed,automatic]
  Text processing library from KDE - auto correction features

libkf5textautocorrection1-dbgsym/jammy 1.3.1-0xneon+22.04+jammy+release+build15 amd64
  debug symbols for libkf5textautocorrection1

however the file does not exist on the hard drive:

search for "libKF5TextAutoCorrection.*"

does not show me any results. This is confusing, is the file there or not?
Comment 4 ioo+kde 2023-05-10 20:38:51 UTC
I tried to reinstall kontact:

sudo-apt-get install --reinstll Kontact. 

"(Reading database ... 463542 files and directories currently installed.)
Preparing to unpack .../kontact_4%3a23.04.0-0xneon+22.04+jammy+release+build24_amd64.deb ...
Unpacking kontact (4:23.04.0-0xneon+22.04+jammy+release+build24) over (4:23.04.0-0xneon+22.04+jammy+release+build24) ...
Setting up kontact (4:23.04.0-0xneon+22.04+jammy+release+build24) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ..."

it reinstalled it sucessfully however I am still getting the same error about the missing library. It appears this Kontact is broken in this version. Email is pretty essential. Is there any way to downgrade or otherwise get access to my email?
Comment 5 ioo+kde 2023-05-10 20:54:53 UTC
Multiple user affected:

https://forum.kde.org/posting.php?mode=reply&f=215&t=177690
Comment 6 Cole 2023-05-10 21:07:59 UTC
Getting the same issue as the reporter and tried following their debug steps and get the same outcome. Seems like a bad build, a missing library?
Comment 7 Christophe Marin 2023-05-10 21:24:55 UTC
(In reply to ioo+kde from comment #2)
> I found another error when I try to open it in the journal:
> 
> May 10 15:52:58 host plasmashell[101020]: /usr/bin/kontact: error while
> loading shared libraries: libKF5TextAutoCorrection.so.1: cannot open shared
> object file: No such file or directory
> 
> Perhaps there are files missing from the upgrade? How can I fix this?

Packaging issue
Comment 8 Christophe Marin 2023-05-10 21:30:13 UTC
*** Bug 469596 has been marked as a duplicate of this bug. ***
Comment 9 ioo+kde 2023-05-10 22:50:58 UTC
(In reply to Christophe Marin from comment #7)
> (In reply to ioo+kde from comment #2)
> > I found another error when I try to open it in the journal:
> > 
> > May 10 15:52:58 host plasmashell[101020]: /usr/bin/kontact: error while
> > loading shared libraries: libKF5TextAutoCorrection.so.1: cannot open shared
> > object file: No such file or directory
> > 
> > Perhaps there are files missing from the upgrade? How can I fix this?
> 
> Packaging issue

How to fix it? I already tried to reinstall the library package, it installs fine but don't fix the issue. Can the missing library files be downloaded and installed manually until a fix is issued?  Email is pretty essential for daily life.
Comment 10 Jens Küspert 2023-05-11 05:34:12 UTC
As it seems, there are applications involved:

$ akonadiconsole 
akonadiconsole: error while loading shared libraries: libKF5TextAutoCorrection.so.1: cannot open shared object file: No such file or directory

$ kalendar
QML debugging is enabled. Only use this in a safe environment.
QQmlApplicationEngine failed to load component
qrc:/main.qml:19:1: plugin cannot be loaded for module "org.kde.kalendar.mail": Cannot load library /usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kalendar/mail/libkalendar_mail_plugin.so: (libKF5TextAutoCorrection.so.1: cannot open shared object file: No such file or directory)
Comment 11 Félim Whiteley 2023-05-11 07:52:33 UTC
(In reply to ioo+kde from comment #2)
> I found another error when I try to open it in the journal:
> 
> May 10 15:52:58 host plasmashell[101020]: /usr/bin/kontact: error while
> loading shared libraries: libKF5TextAutoCorrection.so.1: cannot open shared
> object file: No such file or directory
> 
> Perhaps there are files missing from the upgrade? How can I fix this?

I get this one also, broke on the Neon 5.27.5
Comment 12 simon 2023-05-11 07:59:37 UTC
Kmail
Kontact 
Akonadiconsole

Any update would be appreciated.
Comment 13 Geoffrey Clements 2023-05-11 10:25:57 UTC
$ kmail
kmail: error while loading shared libraries: libKF5TextAutoCorrection.so.1: cannot open shared object file: No such file or directory
Comment 14 simon 2023-05-11 10:59:53 UTC
Work around whilst waiting for the fix:

Search for the library on your system:

find / -name libKF5TextAutoCorrection.*

Using the file/path if found create a symlink in /usr/lib:

cd /usr/lib
ln -s /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/libKF5TextAutoCorrection.so.1 libKF5TextAutoCorrection.so.1

and then restart Kmail and it is working for me.
Comment 15 Christophe Marin 2023-05-11 11:04:56 UTC
(In reply to ioo+kde from comment #9)
> 
> How to fix it?

You can't do that yourself. All packages depending (directly or indirectly) on ktextaddons need to be rebuilt.
Comment 16 Geoffrey Clements 2023-05-11 11:23:21 UTC
(In reply to simon from comment #14)
> Work around whilst waiting for the fix:
> 
> Search for the library on your system:
> 
> find / -name libKF5TextAutoCorrection.*
> 
> Using the file/path if found create a symlink in /usr/lib:
> 
> cd /usr/lib
> ln -s
> /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/
> e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/
> libKF5TextAutoCorrection.so.1 libKF5TextAutoCorrection.so.1
> 
> and then restart Kmail and it is working for me.

What I don't understand is why this library is found in the first place when it's there and in the library path.

$ find /usr/lib -name "libKF5TextAutoCorrection*"
/usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionCore.so.1
/usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionWidgets.so.1
/usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionCore.so.1.3.0
/usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionWidgets.so.1.3.0

$ sudo ldconfig -v 2>/dev/null | grep libKF5TextAutoCorrectionCore\.so\.1
        libKF5TextAutoCorrectionCore.so.1 -> libKF5TextAutoCorrectionCore.so.1.3.0
Comment 17 Geoffrey Clements 2023-05-11 11:25:41 UTC
Ahh, just realised, it's not there:
libKF5TextAutoCorrectionCore vs. libKF5TextAutoCorrection
Comment 18 Filippo Ruggeri 2023-05-11 11:40:22 UTC
(In reply to simon from comment #14)
> Work around whilst waiting for the fix:
> 
> Search for the library on your system:
> 
> find / -name libKF5TextAutoCorrection.*
> 
> Using the file/path if found create a symlink in /usr/lib:
> 
> cd /usr/lib
> ln -s
> /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/
> e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/
> libKF5TextAutoCorrection.so.1 libKF5TextAutoCorrection.so.1
> 
> and then restart Kmail and it is working for me.

Doesn't work form me:

sudo ln -s /usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionCore.so.1.3.0 libKF5TextAutoCorrection.so.1
kmail

kmail: symbol lookup error: /lib/x86_64-linux-gnu/libkmailprivate.so.5: undefined symbol: _ZN18TextAutoCorrection20AutoCorrectionWidget16staticMetaObjectE
Comment 19 simon 2023-05-11 11:48:21 UTC
(In reply to Filippo Ruggeri from comment #18)
> (In reply to simon from comment #14)
> > Work around whilst waiting for the fix:
> > 
> > Search for the library on your system:
> > 
> > find / -name libKF5TextAutoCorrection.*
> > 
> > Using the file/path if found create a symlink in /usr/lib:
> > 
> > cd /usr/lib
> > ln -s
> > /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/
> > e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/
> > libKF5TextAutoCorrection.so.1 libKF5TextAutoCorrection.so.1
> > 
> > and then restart Kmail and it is working for me.
> 
> Doesn't work form me:
> 
> sudo ln -s /usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionCore.so.1.3.0
> libKF5TextAutoCorrection.so.1
> kmail
> 
> kmail: symbol lookup error: /lib/x86_64-linux-gnu/libkmailprivate.so.5:
> undefined symbol:
> _ZN18TextAutoCorrection20AutoCorrectionWidget16staticMetaObjectE

Fillippo - you getting the two libraries mixed up, like Geoffrey did.  In my system, I am using the one WITHOUT "core" at the end.
Comment 20 Bruno P. 2023-05-11 12:48:33 UTC
As workaround you could downgrade the package libkf5textautocorrection1 to previous versio. Here's the command for kde neon user edition :
 sudo apt install libkf5textautocorrection1=1.2.0-0xneon+22.04+jammy+release+build1

It seems that we need the next KDE gear update (ktextaddons 1.3) :
https://kde.org/announcements/changelogs/gear/23.04.1/
Comment 21 Filippo Ruggeri 2023-05-11 12:51:41 UTC
(In reply to simon from comment #19)
> (In reply to Filippo Ruggeri from comment #18)
> > (In reply to simon from comment #14)
> > > Work around whilst waiting for the fix:
> > > 
> > > Search for the library on your system:
> > > 
> > > find / -name libKF5TextAutoCorrection.*
> > > 
> > > Using the file/path if found create a symlink in /usr/lib:
> > > 
> > > cd /usr/lib
> > > ln -s
> > > /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/
> > > e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/
> > > libKF5TextAutoCorrection.so.1 libKF5TextAutoCorrection.so.1
> > > 
> > > and then restart Kmail and it is working for me.
> > 
> > Doesn't work form me:
> > 
> > sudo ln -s /usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionCore.so.1.3.0
> > libKF5TextAutoCorrection.so.1
> > kmail
> > 
> > kmail: symbol lookup error: /lib/x86_64-linux-gnu/libkmailprivate.so.5:
> > undefined symbol:
> > _ZN18TextAutoCorrection20AutoCorrectionWidget16staticMetaObjectE
> 
> Fillippo - you getting the two libraries mixed up, like Geoffrey did.  In my
> system, I am using the one WITHOUT "core" at the end.

Ok, with the following steps the workaround works:

1. install Kontact from Flathub

2. cp /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/libKF5TextAutoCorrection.so.1.2.0 /home/filippo/

3. sudo ln -s /home/filippo/libKF5TextAutoCorrection.so.1.2.0 libKF5TextAutoCorrection.so.1

4. remove Kontact (Flathub version)

Thanks!
Comment 22 Geoffrey Clements 2023-05-11 13:01:42 UTC
(In reply to Filippo Ruggeri from comment #21)
> (In reply to simon from comment #19)
> > (In reply to Filippo Ruggeri from comment #18)
> > > (In reply to simon from comment #14)
> > > > Work around whilst waiting for the fix:
> > > > 
> > > > Search for the library on your system:
> > > > 
> > > > find / -name libKF5TextAutoCorrection.*
> > > > 
> > > > Using the file/path if found create a symlink in /usr/lib:
> > > > 
> > > > cd /usr/lib
> > > > ln -s
> > > > /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/
> > > > e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/
> > > > libKF5TextAutoCorrection.so.1 libKF5TextAutoCorrection.so.1
> > > > 
> > > > and then restart Kmail and it is working for me.
> > > 
> > > Doesn't work form me:
> > > 
> > > sudo ln -s /usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionCore.so.1.3.0
> > > libKF5TextAutoCorrection.so.1
> > > kmail
> > > 
> > > kmail: symbol lookup error: /lib/x86_64-linux-gnu/libkmailprivate.so.5:
> > > undefined symbol:
> > > _ZN18TextAutoCorrection20AutoCorrectionWidget16staticMetaObjectE
> > 
> > Fillippo - you getting the two libraries mixed up, like Geoffrey did.  In my
> > system, I am using the one WITHOUT "core" at the end.
> 
> Ok, with the following steps the workaround works:
> 
> 1. install Kontact from Flathub
> 
> 2. cp
> /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/
> e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/
> libKF5TextAutoCorrection.so.1.2.0 /home/filippo/
> 
> 3. sudo ln -s /home/filippo/libKF5TextAutoCorrection.so.1.2.0
> libKF5TextAutoCorrection.so.1
> 
> 4. remove Kontact (Flathub version)
> 
> Thanks!

If you've got Kontact from flathub, doesn't it make more sense to run that version without bothering with the symlink?
Comment 23 Jonathan Riddell 2023-05-11 13:15:36 UTC
sorry about this, rebuilding it now...
Comment 24 ioo+kde 2023-05-11 14:48:36 UTC
> Using the file/path if found create a symlink in /usr/lib:
> 
> cd /usr/lib
> ln -s
> /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/
> e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/
> libKF5TextAutoCorrection.so.1 libKF5TextAutoCorrection.so.1
> 
> and then restart Kmail and it is working for me.

This doesn't work for me. The file doesn't exist on my disk. I thought that was the issue, the library package does install from apt but the library file isn't it. This is why I asked above if it would be possible to get the file from somewhere else and link it as you mentioned.

Are you saying that you do have the library file on your disk?
Comment 25 ioo+kde 2023-05-11 19:17:14 UTC
I just got the update and Kontact is working again. Thank you.

I can also see that the original bug that I was hoping to solve still exists in the latest version: Welcome to KMail 5.23.1 (23.04.1).

All akonadi resources do not come online after resuming from sleep and Kmail always shows this message:

"no network connection detected, all network jobs are suspended"

Using the akonadiconsole is necessary to check email.

This bug has been around for a long time.
https://bugs.kde.org/show_bug.cgi?id=461400
Comment 26 Moritz 2023-05-11 20:02:20 UTC
You can run the following command to work around this issue:

sudo n -s /usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionCore.so.1 /usr/lib/libKF5TextAutoCorrection.so.1

It links the library to the correct path and name.
Comment 27 Jonathan Riddell 2023-05-11 21:38:17 UTC
This should now be fixed with an upgrade
Comment 28 Filippo Ruggeri 2023-05-12 07:11:09 UTC
(In reply to Geoffrey Clements from comment #22)
> (In reply to Filippo Ruggeri from comment #21)
> > (In reply to simon from comment #19)
> > > (In reply to Filippo Ruggeri from comment #18)
> > > > (In reply to simon from comment #14)
> > > > > Work around whilst waiting for the fix:
> > > > > 
> > > > > Search for the library on your system:
> > > > > 
> > > > > find / -name libKF5TextAutoCorrection.*
> > > > > 
> > > > > Using the file/path if found create a symlink in /usr/lib:
> > > > > 
> > > > > cd /usr/lib
> > > > > ln -s
> > > > > /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/
> > > > > e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/
> > > > > libKF5TextAutoCorrection.so.1 libKF5TextAutoCorrection.so.1
> > > > > 
> > > > > and then restart Kmail and it is working for me.
> > > > 
> > > > Doesn't work form me:
> > > > 
> > > > sudo ln -s /usr/lib/x86_64-linux-gnu/libKF5TextAutoCorrectionCore.so.1.3.0
> > > > libKF5TextAutoCorrection.so.1
> > > > kmail
> > > > 
> > > > kmail: symbol lookup error: /lib/x86_64-linux-gnu/libkmailprivate.so.5:
> > > > undefined symbol:
> > > > _ZN18TextAutoCorrection20AutoCorrectionWidget16staticMetaObjectE
> > > 
> > > Fillippo - you getting the two libraries mixed up, like Geoffrey did.  In my
> > > system, I am using the one WITHOUT "core" at the end.
> > 
> > Ok, with the following steps the workaround works:
> > 
> > 1. install Kontact from Flathub
> > 
> > 2. cp
> > /var/lib/flatpak/app/org.kde.kontact/x86_64/stable/
> > e3fa7d3153714a5ffc8d79d08c74cdabc327ca37b5175d5bce85813bb41a5906/files/lib/
> > libKF5TextAutoCorrection.so.1.2.0 /home/filippo/
> > 
> > 3. sudo ln -s /home/filippo/libKF5TextAutoCorrection.so.1.2.0
> > libKF5TextAutoCorrection.so.1
> > 
> > 4. remove Kontact (Flathub version)
> > 
> > Thanks!
> 
> If you've got Kontact from flathub, doesn't it make more sense to run that
> version without bothering with the symlink?

I don't want to lose all my accounts and settings.
Comment 29 simon 2023-05-12 08:03:14 UTC
Thanks Jonathan - all working for me.
Comment 30 Geoffrey Clements 2023-05-12 08:55:24 UTC
(In reply to simon from comment #29)
> Thanks Jonathan - all working for me.

Same here, many thank to Jonathon for the quick fix.
Comment 31 damian.lux 2023-05-12 18:23:44 UTC
Thanx a lot; works perfect!