Noticed when testing T5775:
After "gpgconf --kill all" was executed, hitting F5 on the smart card tab does not work: no card could be accessed.
Expected behavior: all necessary background processes restart, smart card is accessed with a bit of delay.
Debugview showed:
[3680] org.kde.pim.kleopatra: 0x6f45350 [3680] org.kde.pim.kleopatra: ReaderStatusThread[GUI]::ping() [3680] org.kde.pim.kleopatra: 0x6f45350 [3680] org.kde.pim.kleopatra: ReaderStatusThread[2nd]: new iteration command= "__update__" ; nullSlot= true [3680] org.kde.pim.kleopatra: [3680] org.kde.pim.kleopatra: update_cardinfo() [3680] org.kde.pim.kleopatra: [3680] org.kde.pim.libkleo: sendCommand "SCD SERIALNO" [3680] org.kde.pim.kleopatra: 0x6f45350 [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 125 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 250 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 500 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: sendCommand "SCD SERIALNO" failed: IPC "connect" Aufruf fehlgeschlagen (code: 259, source: GPGME) [3680] org.kde.pim.libkleo: Assuan problem, killing context [3680] org.kde.pim.libkleo: sendStatusLinesCommand "SCD SERIALNO" : t == NULL [3680] org.kde.pim.kleopatra: Running SCD SERIALNO failed: IPC "connect" Aufruf fehlgeschlagen (code: 259, source: GPGME) [3680] org.kde.pim.kleopatra: ReaderStatusThread: Card "" with app "" was added [3680] org.kde.pim.kleopatra: ReaderStatusThread: Card "D2760001240103040006154932980000" with app "openpgp" was removed [3680] org.kde.pim.kleopatra: ReaderStatusThread[2nd]: waiting for commands [3680] org.kde.pim.kleopatra: SmartCardWidget::Private::cardAddedOrChanged: App is not supported
Trying to open the settings of Kleopatra takes unusually long, too:
[3680] org.kde.pim.libkleo: Parsed 2.2.41 as: 2 . 2 . 41 . [3680] org.kde.pim.kleopatra: Profile settings disabled [3680] org.kde.pim.libkleo: sendCommand "SCD GETINFO reader_list" [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 125 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 250 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 500 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: sendCommand "SCD GETINFO reader_list" failed: IPC "connect" Aufruf fehlgeschlagen (code: 259, source: GPGME) [3680] org.kde.pim.libkleo: Assuan problem, killing context [3680] org.kde.pim.libkleo: sendDataCommand "SCD GETINFO reader_list" : t == NULL [3680] org.kde.pim.libkleo: Getting available smart card readers failed: IPC "connect" Aufruf fehlgeschlagen (code: 259, source: GPGME) [3680] org.kde.pim.kleo_ui: entry "gpg/Configuration/compliance" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/Configuration/default-new-key-algo" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/Configuration/trust-model" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/Configuration/completes-needed" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/Configuration/marginals-needed" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/Configuration/max-cert-depth" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: No widget implemented for list of type 1 [3680] org.kde.pim.kleo_ui: entry "gpg/Monitor/no-greeting" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/ImportExport/no-auto-key-import" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/ImportExport/auto-key-retrieve" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/ImportExport/no-auto-key-retrieve" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/ImportExport/no-include-key-block" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/ImportExport/disable-dirmngr" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/ImportExport/keyserver" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/Security/default_pubkey_algo" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg/Security/compliance_de_vs" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpgsm/Security/enable-crl-checks" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpgsm/Security/disable-trusted-cert-crl-check" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpgsm/Security/default_pubkey_algo" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpgsm/Configuration/faked-system-time" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpgsm/Configuration/include-certs" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpgsm/Configuration/compliance" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpgsm/Monitor/no-greeting" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpgsm/ImportExport/disable-dirmngr" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpgsm/Output/keyserver" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Security/max-cache-ttl" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Security/max-cache-ttl-ssh" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Passphrase policy/enforce-passphrase-constraints" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Passphrase policy/min-passphrase-nonalpha" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Passphrase policy/check-passphrase-pattern" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Passphrase policy/check-sym-passphrase-pattern" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Passphrase policy/max-passphrase-days" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Passphrase policy/enable-passphrase-history" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Configuration/ssh-fingerprint-digest" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Configuration/enable-extended-key-format" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Configuration/faked-system-time" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Pinentry/no-allow-loopback-pinentry" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "gpg-agent/Pinentry/grab" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "dirmngr/Configuration/faked-system-time" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "dirmngr/Monitor/no-greeting" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "dirmngr/Network/resolver-timeout" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "dirmngr/Network/nameserver" too advanced or excluded explicitly, skipping [3680] org.kde.pim.kleo_ui: entry "scdaemon/Configuration/disable-ccid" too advanced or excluded explicitly, skipping [3680] org.kde.pim.libkleo: sendCommand "SCD GETINFO reader_list" [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 125 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 250 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 500 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: Connecting to the agent failed. Retrying in 1000 ms [3680] org.kde.pim.libkleo: sendCommand "SCD GETINFO reader_list" failed: IPC "connect" Aufruf fehlgeschlagen (code: 259, source: GPGME) [3680] org.kde.pim.libkleo: Assuan problem, killing context [3680] org.kde.pim.libkleo: sendDataCommand "SCD GETINFO reader_list" : t == NULL [3680] org.kde.pim.libkleo: Getting available smart card readers failed: IPC "connect" Aufruf fehlgeschlagen (code: 259, source: GPGME) [3680] org.kde.pim.kleopatra: open_or_raise showing window [3680] org.kde.pim.kleopatra: Module changed: true mod DirectoryServicesConfigurationPage(0x70144a8) [3680] org.kde.pim.kleopatra: Client changed: mod DirectoryServicesConfigurationPage(0x70144a8) [3680] org.kde.pim.kleopatra: Using config entry dirmngr / keyserver [3680] org.kde.pim.kleopatra: Module changed: true mod DirectoryServicesConfigurationPage(0x70144a8) [3680] org.kde.pim.kleopatra: Module changed: false mod DirectoryServicesConfigurationPage(0x70144a8) [3680] org.kde.pim.kleopatra: Client changed: mod DirectoryServicesConfigurationPage(0x70144a8)
To get the agent to start and reading of the smartcard to succeed, you have to change to the certificate tab, press F5 there and after that F5 on the smart card tab will work again.