You are not logged in.
Hello everyone!
I recently encountered a problem that gpg-agent does not see hyprpolkitagent
After entering the command gpg --encrypt process freezes
the following message appears in the journal
Jun 27 21:49:14 bars hyprpolkitagent[886]: New PolkitAgentListener 0x55f36b44f0e0
Jun 27 21:49:14 bars hyprpolkitagent[886]: Adding new listener PolkitQt1::Agent::Listener(0x55f36b44e910) for 0x55f36b44f0e0
Jun 27 21:49:14 bars hyprpolkitagent[886]: "Cannot register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject"
Jun 27 21:53:06 bars gpg-agent[879]: can't connect to the PIN entry module '/usr/lib/hyprpolkitagent/hyprpolkitagent': End of fileI use Hyprland with uwsm manager
I also added hyprpolkit enable command in my hyprland.conf file
Last edited by Bars (2025-07-19 15:41:14)
Offline
An authentication agent already exists for the given subject"
ps faxOffline
here is the result of ps fax
PID TTY STAT TIME COMMAND
2 ? S 0:00 [kthreadd]
3 ? S 0:00 \_ [pool_workqueue_release]
4 ? I< 0:00 \_ [kworker/R-rcu_gp]
5 ? I< 0:00 \_ [kworker/R-sync_wq]
6 ? I< 0:00 \_ [kworker/R-kvfree_rcu_reclaim]
7 ? I< 0:00 \_ [kworker/R-slub_flushwq]
8 ? I< 0:00 \_ [kworker/R-netns]
9 ? I 0:00 \_ [kworker/0:0-events]
10 ? I< 0:00 \_ [kworker/0:0H-events_highpri]
11 ? I 0:00 \_ [kworker/0:1-events]
12 ? I 0:00 \_ [kworker/u48:0-kvfree_rcu_reclaim]
13 ? I< 0:00 \_ [kworker/R-mm_percpu_wq]
14 ? I 0:00 \_ [kworker/u48:1-flush-259:0]
15 ? S 0:00 \_ [ksoftirqd/0]
16 ? I 0:00 \_ [rcu_preempt]
17 ? S 0:00 \_ [rcub/0]
18 ? S 0:00 \_ [rcu_exp_par_gp_kthread_worker/0]
19 ? S 0:00 \_ [rcu_exp_gp_kthread_worker]
20 ? S 0:00 \_ [migration/0]
21 ? S 0:00 \_ [idle_inject/0]
22 ? S 0:00 \_ [cpuhp/0]
23 ? S 0:00 \_ [cpuhp/1]
24 ? S 0:00 \_ [idle_inject/1]
25 ? S 0:00 \_ [migration/1]
26 ? S 0:00 \_ [ksoftirqd/1]
27 ? I 0:00 \_ [kworker/1:0-pm]
28 ? I< 0:00 \_ [kworker/1:0H-events_highpri]
29 ? S 0:00 \_ [cpuhp/2]
30 ? S 0:00 \_ [idle_inject/2]
31 ? S 0:00 \_ [migration/2]
32 ? S 0:00 \_ [ksoftirqd/2]
33 ? I 0:00 \_ [kworker/2:0-events]
34 ? I< 0:00 \_ [kworker/2:0H-events_highpri]
35 ? S 0:00 \_ [cpuhp/3]
36 ? S 0:00 \_ [idle_inject/3]
37 ? S 0:00 \_ [migration/3]
38 ? S 0:00 \_ [ksoftirqd/3]
39 ? I 0:00 \_ [kworker/3:0-events]
40 ? I< 0:00 \_ [kworker/3:0H-events_highpri]
41 ? S 0:00 \_ [cpuhp/4]
42 ? S 0:00 \_ [idle_inject/4]
43 ? S 0:00 \_ [migration/4]
44 ? S 0:00 \_ [ksoftirqd/4]
45 ? I 0:00 \_ [kworker/4:0-events]
46 ? I< 0:00 \_ [kworker/4:0H-events_highpri]
47 ? S 0:00 \_ [cpuhp/5]
48 ? S 0:00 \_ [idle_inject/5]
49 ? S 0:00 \_ [migration/5]
50 ? S 0:00 \_ [ksoftirqd/5]
51 ? I 0:00 \_ [kworker/5:0-cgroup_destroy]
52 ? I< 0:00 \_ [kworker/5:0H-events_highpri]
53 ? S 0:00 \_ [cpuhp/6]
54 ? S 0:00 \_ [idle_inject/6]
55 ? S 0:00 \_ [migration/6]
56 ? S 0:00 \_ [ksoftirqd/6]
57 ? I 0:00 \_ [kworker/6:0-events]
58 ? I< 0:00 \_ [kworker/6:0H-events_highpri]
59 ? S 0:00 \_ [cpuhp/7]
60 ? S 0:00 \_ [idle_inject/7]
61 ? S 0:00 \_ [migration/7]
62 ? S 0:00 \_ [ksoftirqd/7]
63 ? I 0:00 \_ [kworker/7:0-mm_percpu_wq]
64 ? I< 0:00 \_ [kworker/7:0H-events_highpri]
65 ? S 0:00 \_ [cpuhp/8]
66 ? S 0:00 \_ [idle_inject/8]
67 ? S 0:00 \_ [migration/8]
68 ? S 0:00 \_ [ksoftirqd/8]
69 ? I 0:00 \_ [kworker/8:0-events]
70 ? I< 0:00 \_ [kworker/8:0H-events_highpri]
71 ? S 0:00 \_ [cpuhp/9]
72 ? S 0:00 \_ [idle_inject/9]
73 ? S 0:00 \_ [migration/9]
74 ? S 0:00 \_ [ksoftirqd/9]
75 ? I 0:00 \_ [kworker/9:0-events]
76 ? I< 0:00 \_ [kworker/9:0H-events_highpri]
77 ? S 0:00 \_ [cpuhp/10]
78 ? S 0:00 \_ [idle_inject/10]
79 ? S 0:00 \_ [migration/10]
80 ? S 0:00 \_ [ksoftirqd/10]
81 ? I 0:00 \_ [kworker/10:0-mm_percpu_wq]
82 ? I< 0:00 \_ [kworker/10:0H-events_highpri]
83 ? S 0:00 \_ [cpuhp/11]
84 ? S 0:00 \_ [idle_inject/11]
85 ? S 0:00 \_ [migration/11]
86 ? S 0:00 \_ [ksoftirqd/11]
87 ? I 0:00 \_ [kworker/11:0-events]
88 ? I< 0:00 \_ [kworker/11:0H-events_highpri]
89 ? S 0:00 \_ [kdevtmpfs]
90 ? I< 0:00 \_ [kworker/R-inet_frag_wq]
91 ? I 0:00 \_ [rcu_tasks_kthread]
92 ? I 0:00 \_ [rcu_tasks_rude_kthread]
93 ? I 0:00 \_ [rcu_tasks_trace_kthread]
94 ? S 0:00 \_ [kauditd]
95 ? S 0:00 \_ [khungtaskd]
96 ? I 0:00 \_ [kworker/u48:2-events_unbound]
97 ? S 0:00 \_ [oom_reaper]
98 ? I< 0:00 \_ [kworker/R-writeback]
99 ? S 0:00 \_ [kcompactd0]
100 ? SN 0:00 \_ [ksmd]
101 ? SN 0:00 \_ [khugepaged]
102 ? I 0:00 \_ [kworker/6:1-events]
103 ? I< 0:00 \_ [kworker/R-kblockd]
104 ? I< 0:00 \_ [kworker/R-blkcg_punt_bio]
105 ? I< 0:00 \_ [kworker/R-kintegrityd]
106 ? S 0:00 \_ [irq/9-acpi]
107 ? I 0:00 \_ [kworker/7:1-cgroup_destroy]
108 ? I< 0:00 \_ [kworker/R-tpm_dev_wq]
109 ? I< 0:00 \_ [kworker/R-ata_sff]
110 ? I< 0:00 \_ [kworker/R-edac-poller]
111 ? I< 0:00 \_ [kworker/R-devfreq_wq]
112 ? S 0:00 \_ [watchdogd]
113 ? I< 0:00 \_ [kworker/6:1H-kblockd]
114 ? I 0:00 \_ [kworker/3:1-mm_percpu_wq]
115 ? S 0:00 \_ [kswapd0]
116 ? I< 0:00 \_ [kworker/R-kthrotld]
117 ? S 0:00 \_ [irq/120-aerdrv]
118 ? S 0:00 \_ [irq/120-pcie-dpc]
119 ? S 0:00 \_ [irq/121-pciehp]
120 ? S 0:00 \_ [irq/122-aerdrv]
121 ? S 0:00 \_ [irq/122-pcie-dpc]
122 ? S 0:00 \_ [irq/123-aerdrv]
123 ? S 0:00 \_ [irq/123-pcie-dpc]
124 ? I 0:00 \_ [kworker/8:1-events]
125 ? I< 0:00 \_ [kworker/R-acpi_thermal_pm]
126 ? I 0:00 \_ [kworker/1:1-events]
127 ? I 0:00 \_ [kworker/9:1-mm_percpu_wq]
128 ? I 0:00 \_ [kworker/10:1-mm_percpu_wq]
129 ? I 0:00 \_ [kworker/4:1-cgroup_destroy]
130 ? I 0:00 \_ [kworker/2:1-mm_percpu_wq]
131 ? I 0:00 \_ [kworker/11:1-mm_percpu_wq]
132 ? I 0:00 \_ [kworker/5:1-cgroup_destroy]
133 ? S 0:00 \_ [hwrng]
137 ? S 0:00 \_ [scsi_eh_0]
138 ? I< 0:00 \_ [kworker/R-scsi_tmf_0]
139 ? S 0:00 \_ [scsi_eh_1]
140 ? I< 0:00 \_ [kworker/R-scsi_tmf_1]
141 ? S 0:00 \_ [scsi_eh_2]
142 ? I< 0:00 \_ [kworker/R-scsi_tmf_2]
143 ? S 0:00 \_ [scsi_eh_3]
144 ? I< 0:00 \_ [kworker/R-scsi_tmf_3]
145 ? S 0:00 \_ [scsi_eh_4]
146 ? I< 0:00 \_ [kworker/R-scsi_tmf_4]
147 ? S 0:00 \_ [scsi_eh_5]
148 ? I< 0:00 \_ [kworker/R-scsi_tmf_5]
149 ? I 0:00 \_ [kworker/u48:3-events_unbound]
150 ? I 0:00 \_ [kworker/u48:4-flush-259:0]
151 ? I 0:00 \_ [kworker/u48:5-events_freezable_pwr_efficient]
152 ? I 0:00 \_ [kworker/u48:6-events_unbound]
153 ? I< 0:00 \_ [kworker/R-mld]
154 ? I 0:00 \_ [kworker/u48:7]
155 ? I< 0:00 \_ [kworker/2:1H-kblockd]
156 ? I< 0:00 \_ [kworker/R-ipv6_addrconf]
163 ? I< 0:00 \_ [kworker/R-kstrp]
167 ? I< 0:00 \_ [kworker/R-zswap-shrink]
168 ? I< 0:00 \_ [kworker/u49:0-hci0]
169 ? I< 0:00 \_ [kworker/0:1H-kblockd]
170 ? I 0:00 \_ [kworker/7:2-events]
171 ? I 0:00 \_ [kworker/7:3-events]
200 ? I< 0:00 \_ [kworker/11:1H-kblockd]
201 ? I< 0:00 \_ [kworker/7:1H-kblockd]
203 ? S 0:00 \_ [nv_queue]
204 ? S 0:00 \_ [nv_queue]
205 ? S 0:00 \_ [nv_open_q]
213 ? I 0:00 \_ [kworker/1:2-events]
214 ? I< 0:00 \_ [kworker/1:1H-kblockd]
215 ? S 0:00 \_ [nvidia-modeset/kthread_q]
216 ? S 0:00 \_ [nvidia-modeset/deferred_close_kthread_q]
217 ? I< 0:00 \_ [kworker/10:1H-kblockd]
218 ? S 0:00 \_ [UVM global queue]
219 ? S 0:00 \_ [UVM deferred release queue]
220 ? S 0:00 \_ [UVM Tools Event Queue]
221 ? S 0:00 \_ [irq/133-nvidia]
222 ? S 0:00 \_ [nvidia]
223 ? S 0:00 \_ [nv_queue]
224 ? I< 0:00 \_ [kworker/8:1H-kblockd]
225 ? I 0:00 \_ [kworker/9:2-cgroup_destroy]
239 ? I< 0:00 \_ [kworker/4:1H-kblockd]
249 ? I< 0:00 \_ [kworker/3:1H-kblockd]
250 ? I< 0:00 \_ [kworker/5:1H-kblockd]
251 ? I< 0:00 \_ [kworker/9:1H]
254 ? I 0:00 \_ [kworker/8:2-cgroup_destroy]
255 ? I< 0:00 \_ [kworker/R-nvme-wq]
256 ? I< 0:00 \_ [kworker/R-nvme-reset-wq]
257 ? I< 0:00 \_ [kworker/R-nvme-delete-wq]
258 ? I< 0:00 \_ [kworker/R-nvme-auth-wq]
304 ? S 0:00 \_ [jbd2/nvme0n1p2-8]
305 ? I< 0:00 \_ [kworker/R-ext4-rsv-conversion]
317 ? I 0:00 \_ [kworker/11:2-events]
358 ? I 0:00 \_ [kworker/6:2-events]
389 ? S 0:00 \_ [psimon]
400 ? S 0:00 \_ [psimon]
447 ? I 0:00 \_ [kworker/2:2-events]
462 ? S 0:00 \_ [irq/143-mei_me]
480 ? I 0:00 \_ [kworker/11:3-events]
481 ? I 0:00 \_ [kworker/11:4-mm_percpu_wq]
485 ? I< 0:00 \_ [kworker/R-cryptd]
495 ? I< 0:00 \_ [kworker/u49:1-hci0]
496 ? I< 0:00 \_ [kworker/u49:2]
518 ? S 0:00 \_ [jbd2/nvme0n1p3-8]
519 ? I< 0:00 \_ [kworker/R-ext4-rsv-conversion]
523 ? S 0:00 \_ [jbd2/sda1-8]
524 ? I< 0:00 \_ [kworker/R-ext4-rsv-conversion]
587 ? I 0:00 \_ [kworker/5:2-events_freezable]
591 ? I 0:00 \_ [kworker/9:3]
598 ? S 0:00 \_ [psimon]
634 ? I 0:00 \_ [kworker/4:2-events]
721 ? S 0:00 \_ [nvidia-drm/timeline-a]
744 ? S 0:00 \_ [nvidia-drm/timeline-b]
777 ? S 0:00 \_ [nvidia-drm/timeline-c]
1 ? Ss 0:01 /sbin/init
349 ? Ss 0:00 /usr/lib/systemd/systemd-journald
366 ? Ss 0:00 /usr/lib/systemd/systemd-userdbd
529 ? S 0:00 \_ systemd-userwork: waiting...
530 ? S 0:00 \_ systemd-userwork: waiting...
531 ? S 0:00 \_ systemd-userwork: waiting...
394 ? Ss 0:00 /usr/lib/systemd/systemd-resolved
399 ? Ss 0:00 /usr/lib/systemd/systemd-udevd
542 ? Ss 0:00 /usr/bin/dbus-broker-launch --scope system --audit
543 ? S 0:00 \_ dbus-broker --log 10 --controller 9 --machine-id 454d5bae89da4f2280895424a7da2176 --max-bytes 536870912 --max-fds 4096 --max-matches 1310
544 ? Ssl 0:00 /usr/bin/NetworkManager --no-daemon
545 ? Ss 0:00 /usr/lib/systemd/systemd-logind
580 ? Ss 0:00 /bin/sh /opt/AmneziaVPN/service/AmneziaVPN-service.sh
586 ? Sl 0:00 \_ /opt/AmneziaVPN/service/bin/AmneziaVPN-service
585 ? Ssl 0:00 /usr/bin/sddm
589 tty2 Ssl+ 0:00 \_ /usr/lib/Xorg -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_dPVxwm -noreset -displayfd 16
621 ? S 0:00 \_ /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth-f8a27236-65fc-4e32-910f-38a57ac67ef3 --id 1 --start uwsm start -- hyprland.desktop --us
641 tty1 Ss+ 0:00 \_ systemctl --user start --wait wayland-wm@hyprland.desktop.service
671 tty1 S+ 0:00 \_ waitpid -e 702
627 ? Ss 0:00 /usr/lib/systemd/systemd --user
629 ? S 0:00 \_ (sd-pam)
636 ? Ss 0:00 \_ /usr/bin/dbus-broker-launch --scope user
637 ? S 0:00 | \_ dbus-broker --log 11 --controller 10 --machine-id 454d5bae89da4f2280895424a7da2176 --max-bytes 100000000000000 --max-fds 250000000000
638 ? Ssl 0:00 \_ /usr/bin/pipewire
639 ? Ssl 0:00 \_ /usr/bin/wireplumber
670 ? Ss 0:00 \_ waitpid -e 641
702 ? Ssl 0:01 \_ Hyprland
743 ? S 0:00 | \_ Xwayland :1 -rootless -core -listenfd 67 -listenfd 68 -displayfd 96 -wm 93
727 ? Ssl 0:00 \_ /usr/lib/dconf-service
749 ? Ssl 0:00 \_ /usr/lib/hyprpolkitagent/hyprpolkitagent
775 ? Sl 0:00 \_ kitty
778 ? Sl 0:00 \_ /usr/bin/kitten __atexit__
780 pts/0 Ss 0:00 \_ /usr/bin/bash --posix
795 pts/0 R+ 0:00 \_ ps fax
755 ? Ssl 0:00 /usr/lib/polkit-1/polkitd --no-debug --log-level=noticeOffline
627 ? Ss 0:00 /usr/lib/systemd/systemd --user
629 ? S 0:00 \_ (sd-pam)
636 ? Ss 0:00 \_ /usr/bin/dbus-broker-launch --scope user
637 ? S 0:00 | \_ dbus-broker --log 11 --controller 10 --machine-id 454d5bae89da4f2280895424a7da2176 --max-bytes 100000000000000 --max-fds 250000000000
638 ? Ssl 0:00 \_ /usr/bin/pipewire
639 ? Ssl 0:00 \_ /usr/bin/wireplumber
670 ? Ss 0:00 \_ waitpid -e 641
702 ? Ssl 0:01 \_ Hyprland
743 ? S 0:00 | \_ Xwayland :1 -rootless -core -listenfd 67 -listenfd 68 -displayfd 96 -wm 93
727 ? Ssl 0:00 \_ /usr/lib/dconf-service
749 ? Ssl 0:00 \_ /usr/lib/hyprpolkitagent/hyprpolkitagentStupid question: are you sure that hyprPOLKITagent can serve as pintentry?
echo GETPIN | pinentryOffline
To be honest i don't really understand the difference between them, but thanks a lot for the tip. I tried changing hyprpolkitagent to something else (pinentry-gtk) and it worked
I would be very grateful if you could explain what I did wrong or send me a link where I can read it
Offline
A polkit agent talks to polkit.
A pinentry implements the ASSUAN protocol - they're fundamentally different things.
It's certainly possible to implement a bilingual dialog (since they've similar-ish UI demands) but unless you can cite some hyprland documentation saying that "hyprpolkitagent also talks ASSUAN" there's no reason to believe that it does.
Where did you get the idea?
Offline
I was experimenting with different settings and I accidentally noticed that after some change the password input field changed to another one more similar in style to Hyprland window. I started to remember what exactly I was changing on and decided that it was related to hyprpolkitagent
Offline
It's plausible that this is hyprlands own polkit agent, but there's no reason to assume that it can serve as pinentry unless you found documentaiton saying otherwise.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline