Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(solved) gpg suddenly very slow
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mf2
n00b
n00b


Joined: 14 Jun 2007
Posts: 48

PostPosted: Fri Oct 18, 2024 5:56 am    Post subject: (solved) gpg suddenly very slow Reply with quote

I have been using pass together with gpg for years and everything was fine. However, since yesterday, for some reason gpg takes 12 seconds to decrypt a small password file - it used to be less than 1 second, and it is indeed very fast on my other machine.
When I kill gpg-agent it sometimes decrypts immediately, so it might have to do something with that. Running gpg under strace confirms, in fact, that it waits for gpg-agent.
I tried to change the pinentry program, but that did nothing. What else can I do to debug this?


Last edited by mf2 on Fri Oct 18, 2024 8:04 am; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1955
Location: 127.0.0.1

PostPosted: Fri Oct 18, 2024 6:07 am    Post subject: Reply with quote

Hi,

What is your desktop ? See this link for potential explanations.
Back to top
View user's profile Send private message
mf2
n00b
n00b


Joined: 14 Jun 2007
Posts: 48

PostPosted: Fri Oct 18, 2024 6:49 am    Post subject: Reply with quote

I am using dwm, so no desktop. That link you posted I have found earlier before, but sadly that did not help me. I even recompiled my system with USE=-keyring, but no changes.
Back to top
View user's profile Send private message
mf2
n00b
n00b


Joined: 14 Jun 2007
Posts: 48

PostPosted: Fri Oct 18, 2024 8:04 am    Post subject: Reply with quote

I fixed it by disabling the "smartcard" useflag on app-crypt/gnupg.

To find this out, I set the following in ~/.gnupg/gpg-agent.conf:

Code:

log-file /home/philipp/.gnupg/agent.log
debug-level guru


That showed me that for some reason gpg-agent was waiting on the smartcard daemon:

Code:

2024-10-18 09:58:08 gpg-agent[384615] DBG: chan_10 <- SCD SERIALNO
2024-10-18 09:58:08 gpg-agent[384615] new connection to /usr/libexec/scdaemon daemon established (reusing)
2024-10-18 09:58:08 gpg-agent[384615] DBG: chan_11 -> SERIALNO
2024-10-18 09:58:40 gpg-agent[384615] DBG: chan_11 <- ERR 100696144 No such device <SCD>
2024-10-18 09:58:40 gpg-agent[384615] DBG: chan_10 -> ERR 100696144 No such device <SCD>


So I figured removing scddaemon could help, and indeed it did.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum