Packagekitd - Failed to get cache filename for

I’m seing the following in the logs:

PackageKit[14247]: get-updates transaction /1174_deceecaa from uid 1000 finished with success after 1144ms
PackageKit[14247]: resolve transaction /1175_aeaebeea from uid 1000 finished with success after 971ms
PackageKit[14247]: resolve transaction /1176_dbccddcb from uid 1000 finished with success after 6ms
PackageKit[14247]: get-updates transaction /1177_aacedbbe from uid 1000 finished with success after 216ms
PackageKit[14247]: resolve transaction /1178_beedcedb from uid 1000 finished with success after 8ms
packagekitd[14247]: Failed to get cache filename for ptyxis
packagekitd[14247]: Failed to get cache filename for glib2
packagekitd[14247]: Failed to get cache filename for glibc
packagekitd[14247]: Failed to get cache filename for glibc
packagekitd[14247]: Failed to get cache filename for gtk4
packagekitd[14247]: Failed to get cache filename for libadwaita
packagekitd[14247]: Failed to get cache filename for libgcc
packagekitd[14247]: Failed to get cache filename for libportal
packagekitd[14247]: Failed to get cache filename for libportal-gtk4
packagekitd[14247]: Failed to get cache filename for vte291-gtk4
packagekitd[14247]: Failed to get cache filename for cairo
packagekitd[14247]: Failed to get cache filename for glib2
packagekitd[14247]: Failed to get cache filename for glibc
packagekitd[14247]: Failed to get cache filename for glibc
packagekitd[14247]: Failed to get cache filename for gtk4
packagekitd[14247]: Failed to get cache filename for hicolor-icon-theme
packagekitd[14247]: Failed to get cache filename for json-glib
packagekitd[14247]: Failed to get cache filename for libadwaita
packagekitd[14247]: Failed to get cache filename for libgcc
packagekitd[14247]: Failed to get cache filename for libportal
packagekitd[14247]: Failed to get cache filename for libportal-gtk4
packagekitd[14247]: Failed to get cache filename for pango
packagekitd[14247]: Failed to get cache filename for vte291-gtk4
PackageKit[14247]: get-details transaction /1179_eeaacbee from uid 1000 finished with success after 102ms
PackageKit[14247]: resolve transaction /1180_beeeebca from uid 1000 finished with success after 4ms
PackageKit[14247]: resolve transaction /1181_abadbbba from uid 1000 finished with success after 4ms
PackageKit[14247]: resolve transaction /1182_cdcebacb from uid 1000 finished with success after 13ms
PackageKit[14247]: resolve transaction /1183_eeaabadb from uid 1000 finished with success after 13ms
PackageKit[14247]: resolve transaction /1184_beecaecb from uid 1000 finished with success after 6ms
PackageKit[14247]: resolve transaction /1185_bbaeaaab from uid 1000 finished with success after 5ms
PackageKit[14247]: resolve transaction /1186_cccceebe from uid 1000 finished with success after 3ms
PackageKit[14247]: resolve transaction /1187_aeedadeb from uid 1000 finished with success after 5ms
PackageKit[14247]: resolve transaction /1188_eeadddaa from uid 1000 finished with success after 5ms
PackageKit[14247]: resolve transaction /1189_ddedebec from uid 1000 finished with success after 8ms
PackageKit[14247]: resolve transaction /1190_eaddcadd from uid 1000 finished with success after 3ms
PackageKit[14247]: resolve transaction /1191_cceccedc from uid 1000 finished with success after 7ms
PackageKit[14247]: resolve transaction /1192_dcaceebc from uid 1000 finished with success after 5ms

Is the Failed to get cache filename for part something that I need to worry about?

There’s an upstream bug filed, and it looks like it’s been occurring on multiple :fedora: versions.

Can you check if:

pkcon refresh force

makes any difference.

Thanks

1 Like

Hi @grumpey,

Thank you for the reply.
I tried the command you suggested as is and it caused packagekitd to coredump:

systemd-coredump[15519]: [🡕] Process 15485 (packagekitd) of user 0 dumped core.

Module /usr/libexec/packagekitd from rpm PackageKit-1.2.8-9.fc42.x86_64
Module libgvfscommon.so from rpm gvfs-1.57.2-1.fc42.x86_64
Module libgioremote-volume-monitor.so from rpm gvfs-1.57.2-1.fc42.x86_64
Module libsasldb.so from rpm cyrus-sasl-2.1.28-30.fc42.x86_64
Module libplain.so from rpm cyrus-sasl-2.1.28-30.fc42.x86_64
Module liblogin.so from rpm cyrus-sasl-2.1.28-30.fc42.x86_64
Module libgssapiv2.so from rpm cyrus-sasl-2.1.28-30.fc42.x86_64
Module libanonymous.so from rpm cyrus-sasl-2.1.28-30.fc42.x86_64
Module libnss_myhostname.so.2 from rpm systemd-257.5-6.fc42.x86_64
Module libcrypt.so.2 from rpm libxcrypt-4.4.38-7.fc42.x86_64
Module libattr.so.1 from rpm attr-2.5.2-5.fc42.x86_64
Module libbrotlicommon.so.1 from rpm brotli-1.1.0-6.fc42.x86_64
Module libsasl2.so.3 from rpm cyrus-sasl-2.1.28-30.fc42.x86_64
Module libevent-2.1.so.7 from rpm libevent-2.1.12-15.fc42.x86_64
Module libkeyutils.so.1 from rpm keyutils-1.6.3-5.fc42.x86_64
Module libkrb5support.so.0 from rpm krb5-1.21.3-5.fc42.x86_64
Module libcom_err.so.2 from rpm e2fsprogs-1.47.2-3.fc42.x86_64
Module libk5crypto.so.3 from rpm krb5-1.21.3-5.fc42.x86_64
Module libkrb5.so.3 from rpm krb5-1.21.3-5.fc42.x86_64
Module libunistring.so.5 from rpm libunistring-1.1-9.fc42.x86_64
Module libpopt.so.0 from rpm popt-1.19-8.fc42.x86_64
Module libacl.so.1 from rpm acl-2.3.2-3.fc42.x86_64
Module libzck.so.1 from rpm zchunk-1.5.1-2.fc42.x86_64
Module libbrotlidec.so.1 from rpm brotli-1.1.0-6.fc42.x86_64
Module libgssapi_krb5.so.2 from rpm krb5-1.21.3-5.fc42.x86_64
Module libcrypto.so.3 from rpm openssl-3.2.4-3.fc42.x86_64
Module libssl.so.3 from rpm openssl-3.2.4-3.fc42.x86_64
Module libpsl.so.5 from rpm libpsl-0.21.5-5.fc42.x86_64
Module libssh.so.4 from rpm libssh-0.11.1-4.fc42.x86_64
Module libidn2.so.0 from rpm libidn2-2.3.8-1.fc42.x86_64
Module libnghttp2.so.14 from rpm nghttp2-1.64.0-3.fc42.x86_64
Module liblzma.so.5 from rpm xz-5.8.1-2.fc42.x86_64
Module liblua-5.4.so from rpm lua-5.4.7-3.fc42.x86_64
Module librpm_sequoia.so.1 from rpm rust-rpm-sequoia-1.7.0-5.fc42.x86_64
Module libbz2.so.1 from rpm bzip2-1.0.8-20.fc42.x86_64
Module libsmartcols.so.1 from rpm util-linux-2.40.4-7.fc42.x86_64
Module libmodulemd.so.2 from rpm libmodulemd-2.15.1-1.fc42.x86_64
Module libjson-c.so.5 from rpm json-c-0.18-2.fc42.x86_64
Module librpm.so.10 from rpm rpm-4.20.1-1.fc42.x86_64
Module libsolvext.so.1 from rpm libsolv-0.7.32-4.fc42.x86_64
Module libsolv.so.1 from rpm libsolv-0.7.32-4.fc42.x86_64
Module librepo.so.0 from rpm librepo-1.19.0-3.fc42.x86_64
Module libstemmer.so.0 from rpm snowball-2.2.0-15.fc42.x86_64
Module libzstd.so.1 from rpm zstd-1.5.7-1.fc42.x86_64
Module libyaml-0.so.2 from rpm libyaml-0.2.5-16.fc42.x86_64
Module libxml2.so.2 from rpm libxml2-2.12.10-1.fc42.x86_64
Module libxmlb.so.2 from rpm libxmlb-0.3.22-1.fc42.x86_64
Module libcurl.so.4 from rpm curl-8.11.1-4.fc42.x86_64
Module librpmio.so.10 from rpm rpm-4.20.1-1.fc42.x86_64
Module libdnf.so.2 from rpm libdnf-0.74.0-1.fc42.x86_64
Module libappstream.so.5 from rpm appstream-1.0.4-2.fc42.x86_64
Module libpk_backend_dnf.so from rpm PackageKit-1.2.8-9.fc42.x86_64
Module libblkid.so.1 from rpm util-linux-2.40.4-7.fc42.x86_64
Module libcap.so.2 from rpm libcap-2.73-2.fc42.x86_64
Module libselinux.so.1 from rpm libselinux-3.8-1.fc42.x86_64
Module libmount.so.1 from rpm util-linux-2.40.4-7.fc42.x86_64
Module libz.so.1 from rpm zlib-ng-2.2.4-3.fc42.x86_64
Module libffi.so.8 from rpm libffi-3.4.6-5.fc42.x86_64
Module libpcre2-8.so.0 from rpm pcre2-10.45-1.fc42.x86_64
Module libgmodule-2.0.so.0 from rpm glib2-2.84.2-1.fc42.x86_64
Module libpolkit-gobject-1.so.0 from rpm polkit-126-3.fc42.x86_64
Module libsystemd.so.0 from rpm systemd-257.5-6.fc42.x86_64
Module libgio-2.0.so.0 from rpm glib2-2.84.2-1.fc42.x86_64
Module libgobject-2.0.so.0 from rpm glib2-2.84.2-1.fc42.x86_64
Module libglib-2.0.so.0 from rpm glib2-2.84.2-1.fc42.x86_64
Module libpackagekit-glib2.so.18 from rpm PackageKit-1.2.8-9.fc42.x86_64
Stack trace of thread 15485:
#0  0x00007f79bbb5e11c __pthread_kill_implementation (libc.so.6 + 0x7311c)
#1  0x00007f79bbb04afe raise (libc.so.6 + 0x19afe)
#2  0x00007f79bbaec6d0 abort (libc.so.6 + 0x16d0)
#3  0x00007f79bc1fe442 g_assertion_message.cold (libglib-2.0.so.0 + 0x2442)
#4  0x00007f79bc270b27 g_assertion_message_expr (libglib-2.0.so.0 + 0x74b27)
#5  0x000055ef9bd704a2 n/a (/usr/libexec/packagekitd + 0xb4a2)
#6  0x000055ef9bd73730 n/a (/usr/libexec/packagekitd + 0xe730)
#7  0x00007f79bc037822 g_simple_async_result_complete (libgio-2.0.so.0 + 0x68822)
#8  0x00007f79bbe92ca4 check_authorization_cb (libpolkit-gobject-1.so.0 + 0x7ca4)
#9  0x00007f79bc049e7c g_task_return_now (libgio-2.0.so.0 + 0x7ae7c)
#10 0x00007f79bc04f590 g_task_return (libgio-2.0.so.0 + 0x80590)
#11 0x00007f79bc0be567 reply_cb (libgio-2.0.so.0 + 0xef567)
#12 0x00007f79bc049e7c g_task_return_now (libgio-2.0.so.0 + 0x7ae7c)
#13 0x00007f79bc04f590 g_task_return (libgio-2.0.so.0 + 0x80590)
#14 0x00007f79bc0b4932 g_dbus_connection_call_done (libgio-2.0.so.0 + 0xe5932)
#15 0x00007f79bc049e7c g_task_return_now (libgio-2.0.so.0 + 0x7ae7c)
#16 0x00007f79bc049eb5 complete_in_idle_cb (libgio-2.0.so.0 + 0x7aeb5)
#17 0x00007f79bc242e0d g_idle_dispatch (libglib-2.0.so.0 + 0x46e0d)
#18 0x00007f79bc23c880 g_main_context_dispatch_unlocked.lto_priv.0 (libglib-2.0.so.0 + 0x40880)
#19 0x00007f79bc2457a8 g_main_context_iterate_unlocked.isra.0 (libglib-2.0.so.0 + 0x497a8)
#20 0x00007f79bc245a4f g_main_loop_run (libglib-2.0.so.0 + 0x49a4f)
#21 0x000055ef9bd6bddd main (/usr/libexec/packagekitd + 0x6ddd)
#22 0x00007f79bbaee5f5 __libc_start_call_main (libc.so.6 + 0x35f5)
#23 0x00007f79bbaee6a8 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x36a8)
#24 0x000055ef9bd6c0a5 _start (/usr/libexec/packagekitd + 0x70a5)

Stack trace of thread 15489:
#0  0x00007f79bbbdca8d syscall (libc.so.6 + 0xf1a8d)
#1  0x00007f79bc2692ab g_cond_wait_until (libglib-2.0.so.0 + 0x6d2ab)
#2  0x00007f79bc205ded g_async_queue_pop_intern_unlocked (libglib-2.0.so.0 + 0x9ded)
#3  0x00007f79bc205f5d g_async_queue_timeout_pop (libglib-2.0.so.0 + 0x9f5d)
#4  0x00007f79bc2738ef g_thread_pool_thread_proxy (libglib-2.0.so.0 + 0x778ef)
#5  0x00007f79bc272862 g_thread_proxy (libglib-2.0.so.0 + 0x76862)
#6  0x00007f79bbb5c1d4 start_thread (libc.so.6 + 0x711d4)
#7  0x00007f79bbbdecec __clone3 (libc.so.6 + 0xf3cec)

Stack trace of thread 15488:
#0  0x00007f79bbb646c2 __syscall_cancel_arch (libc.so.6 + 0x796c2)
#1  0x00007f79bbb589da __internal_syscall_cancel (libc.so.6 + 0x6d9da)
#2  0x00007f79bbb58a24 __syscall_cancel (libc.so.6 + 0x6da24)
#3  0x00007f79bbbd2176 ppoll (libc.so.6 + 0xe7176)
#4  0x00007f79bc245890 g_main_context_iterate_unlocked.isra.0 (libglib-2.0.so.0 + 0x49890)
#5  0x00007f79bc245a4f g_main_loop_run (libglib-2.0.so.0 + 0x49a4f)
#6  0x00007f79bc0b6272 gdbus_shared_thread_func.lto_priv.0 (libgio-2.0.so.0 + 0xe7272)
#7  0x00007f79bc272862 g_thread_proxy (libglib-2.0.so.0 + 0x76862)
#8  0x00007f79bbb5c1d4 start_thread (libc.so.6 + 0x711d4)
#9  0x00007f79bbbdecec __clone3 (libc.so.6 + 0xf3cec)

Stack trace of thread 15486:
#0  0x00007f79bbbdca8d syscall (libc.so.6 + 0xf1a8d)
#1  0x00007f79bc2683eb g_cond_wait (libglib-2.0.so.0 + 0x6c3eb)
#2  0x00007f79bc205e2c g_async_queue_pop_intern_unlocked (libglib-2.0.so.0 + 0x9e2c)
#3  0x00007f79bc272d14 g_thread_pool_spawn_thread (libglib-2.0.so.0 + 0x76d14)
#4  0x00007f79bc272862 g_thread_proxy (libglib-2.0.so.0 + 0x76862)
#5  0x00007f79bbb5c1d4 start_thread (libc.so.6 + 0x711d4)
#6  0x00007f79bbbdecec __clone3 (libc.so.6 + 0xf3cec)

Stack trace of thread 15487:
#0  0x00007f79bbb646c2 __syscall_cancel_arch (libc.so.6 + 0x796c2)
#1  0x00007f79bbb589da __internal_syscall_cancel (libc.so.6 + 0x6d9da)
#2  0x00007f79bbb58a24 __syscall_cancel (libc.so.6 + 0x6da24)
#3  0x00007f79bbbd2176 ppoll (libc.so.6 + 0xe7176)
#4  0x00007f79bc245890 g_main_context_iterate_unlocked.isra.0 (libglib-2.0.so.0 + 0x49890)
#5  0x00007f79bc245953 g_main_context_iteration (libglib-2.0.so.0 + 0x49953)
#6  0x00007f79bc2459a1 glib_worker_main (libglib-2.0.so.0 + 0x499a1)
#7  0x00007f79bc272862 g_thread_proxy (libglib-2.0.so.0 + 0x76862)
#8  0x00007f79bbb5c1d4 start_thread (libc.so.6 + 0x711d4)
#9  0x00007f79bbbdecec __clone3 (libc.so.6 + 0xf3cec)
ELF object binary architecture: AMD x86-64

Was it meant to be run as root?
Running with sudo seems to have worked.

sudo shouldn’t be needed for that.

can you take a look at the journal when it was run.
journalctl -b -u packagekit
or you can rerun with journalctl -f -u packagekit and see what the output is.

Actually, it prompted me for a pasword, but I got confused because the output was misaligned:

$ pkcon refresh force
Refreshing cache                        [=========================]
Waiting for authentication              [                         ] (0%)  ==== AUTHENTICATING FOR org.freedesktop.packagekit.system-sources-refresh ====
Authentication is required to refresh the system repositories
Authenticating as: User (user)
                                        [          ==             ]         Password:
                                        [           ==            ]         ==== AUTHENTICATION COMPLETE ====
                                        [=========================]
Loading cache                           [=========================]
Querying                                [=========================]
Loading cache                           [=========================]
Finished

Now the log looks like this:

PackageKit[15801]: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
PackageKit[15801]: uid 1000 obtained auth for org.freedesktop.packagekit.system-sources-refresh
PackageKit[15801]: refresh-cache transaction /1257_eabcaead from uid 1000 finished with success after 17700ms
PackageKit[15801]: get-updates transaction /1258_eaaccdbe from uid 1000 finished with success after 1134ms
packagekitd[15801]: Failed to get cache filename for kernel
packagekitd[15801]: Failed to get cache filename for kernel-core
packagekitd[15801]: Failed to get cache filename for kernel-modules
packagekitd[15801]: Failed to get cache filename for kernel-modules-core
PackageKit[15801]: get-details transaction /1259_daaeadbe from uid 1000 finished with success after 764ms
PackageKit[15801]: get-updates transaction /1260_deabebcc from uid 1000 finished with success after 159ms
PackageKit[15801]: get-updates transaction /1261_aadbbcac from uid 1000 finished with success after 159ms

And the previous entries are back:

PackageKit[15801]: get-updates transaction /1262_aeaaaade from uid 1000 finished with success after 235ms
PackageKit[15801]: resolve transaction /1263_abeaadae from uid 1000 finished with success after 5ms
PackageKit[15801]: resolve transaction /1264_acabebea from uid 1000 finished with success after 4ms
PackageKit[15801]: resolve transaction /1265_eceeadcc from uid 1000 finished with success after 5ms
PackageKit[15801]: get-updates transaction /1266_dcbbccab from uid 1000 finished with success after 287ms
packagekitd[15801]: Failed to get cache filename for kernel
packagekitd[15801]: Failed to get cache filename for kernel-core
packagekitd[15801]: Failed to get cache filename for kernel-modules
packagekitd[15801]: Failed to get cache filename for kernel-modules-core
PackageKit[15801]: get-details transaction /1267_bbaabaad from uid 1000 finished with success after 4ms
PackageKit[15801]: get-updates transaction /1268_ddbddbba from uid 1000 finished with success after 240ms
PackageKit[15801]: resolve transaction /1269_bceecdda from uid 1000 finished with success after 8ms
packagekitd[15801]: Failed to get cache filename for ptyxis
packagekitd[15801]: Failed to get cache filename for glib2
packagekitd[15801]: Failed to get cache filename for glibc
packagekitd[15801]: Failed to get cache filename for glibc
packagekitd[15801]: Failed to get cache filename for gtk4
packagekitd[15801]: Failed to get cache filename for libadwaita
packagekitd[15801]: Failed to get cache filename for libgcc
packagekitd[15801]: Failed to get cache filename for libportal
packagekitd[15801]: Failed to get cache filename for libportal-gtk4
packagekitd[15801]: Failed to get cache filename for vte291-gtk4
packagekitd[15801]: Failed to get cache filename for cairo
packagekitd[15801]: Failed to get cache filename for glib2
packagekitd[15801]: Failed to get cache filename for glibc
packagekitd[15801]: Failed to get cache filename for glibc
packagekitd[15801]: Failed to get cache filename for gtk4
packagekitd[15801]: Failed to get cache filename for hicolor-icon-theme
packagekitd[15801]: Failed to get cache filename for json-glib
packagekitd[15801]: Failed to get cache filename for libadwaita
packagekitd[15801]: Failed to get cache filename for libgcc
packagekitd[15801]: Failed to get cache filename for libportal
packagekitd[15801]: Failed to get cache filename for libportal-gtk4
packagekitd[15801]: Failed to get cache filename for pango
packagekitd[15801]: Failed to get cache filename for vte291-gtk4
PackageKit[15801]: get-details transaction /1270_adeccdcb from uid 1000 finished with success after 92ms
PackageKit[15801]: resolve transaction /1271_cdbaebec from uid 1000 finished with success after 5ms
PackageKit[15801]: resolve transaction /1272_ddeacace from uid 1000 finished with success after 10ms
PackageKit[15801]: resolve transaction /1273_aaebedab from uid 1000 finished with success after 4ms
PackageKit[15801]: resolve transaction /1274_ebdcbddc from uid 1000 finished with success after 5ms
PackageKit[15801]: resolve transaction /1275_abdedbea from uid 1000 finished with success after 3ms
PackageKit[15801]: resolve transaction /1276_cbccbbdc from uid 1000 finished with success after 10ms
PackageKit[15801]: resolve transaction /1277_addddecb from uid 1000 finished with success after 6ms
PackageKit[15801]: resolve transaction /1278_ddbadbeb from uid 1000 finished with success after 5ms
PackageKit[15801]: resolve transaction /1279_becaceec from uid 1000 finished with success after 5ms
PackageKit[15801]: resolve transaction /1280_bbbaecae from uid 1000 finished with success after 6ms
PackageKit[15801]: resolve transaction /1281_baabacda from uid 1000 finished with success after 5ms

The issue seems to be gone after reboot.
It looks like pkcon refresh force did help.

Hi,

Will try that too and report success / failure in a couple of days.

I’m plagued with this issue as far as my logs go back, apr 15, F41. Did

 9207  sudo rm -rfv /var/cache/PackageKit/*
 9210  sudo systemctl restart packagekit
 9211  systemctl status packagekit
 9216  sudo dnf reinstall PackageKit

after upgrading to F42 3 weeks ago. No amelioration.

Yup, gone!