You are not logged in.
$ gpg --keyserver pgp.mit.edu --recv-key 1A3C7F70E08FAB1707809B
BF147C39FF9634B72C
gpg: connecting dirmngr at '/run/user/1000/gnupg/d.ot4cfxuphkq816hx13fmk5u9/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
$ find / -type s -name '*dirmngr' 2>/dev/null
/run/user/1000/gnupg/S.dirmngr
$ pkill dirmngr && pgrep -l dirmngr
$ gpg --keyserver pgp.mit.edu --recv-key 1A3C7F70E08FAB1707809B
BF147C39FF9634B72C
gpg: connecting dirmngr at '/run/user/1000/gnupg/d.ot4cfxuphkq816hx13fmk5u9/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
$ find / -type s -name '*dirmngr' 2>/dev/null
/run/user/1000/gnupg/S.dirmngr
Configs:
$ cat $GNUPGHOME/dirmngr.conf
keyserver hkps://keys.openpgp.org
$ cat $GNUPGHOME/gpg-agent.conf
allow-loopback-pinentry
allow-preset-passphrase
disable-scdaemon
pinentry-program /usr/bin/pinentry-tty
max-cache-ttl 60480000
default-cache-ttl 60480000
Looks like dirmngr creates socket at /run/user/1000/gnupg/S.dirmngr but gpg tries /run/user/1000/gnupg/d.ot4cfxuphkq816hx13fmk5u9/S.dirmngr? I didn't find in gpg/dirmngr manuals how to specify the socket location either.
Suggestions for alternatives to gpg that don't break on upgrades would be appreciated as well.
Last edited by nesk (2021-07-12 17:05:20)
Offline
$GNUPGHOME ?
Edit, ie. what's the actual path / variable value.
printenv
Last edited by seth (2021-07-10 16:10:29)
Offline
$GNUPGHOME ?
Edit, ie. what's the actual path / variable value.printenv
echo $GNUPGHOME
/home/me/vault/gnupg
Worked fine for me for years.
Offline
https://bbs.archlinux.org/viewtopic.php … 8#p1925968
So my gut tells me that there might be some dbus-launch involved?
How do you start your session and what does your xinitrc look like?
Offline
Tried reproducing it in tty for a cleaner experiment and inexplicably it started working. Rebooted, went straight into Sway session as usual - also working. No changes to configs/anything. Will revive this thread if it breaks again I guess.
Off-topic:
How do you start your session
tty login -> sh script using dialog called from $HOME/.profile
what does your xinitrc look like?
Doesn't look like anything, I use sx when I need X.org, it's waaay simpler.
Last edited by nesk (2021-07-12 17:08:19)
Offline
Race condition?
"vault" probably gets decrypted, being late could cause the $GNUPGHOME not being available and dirmngr/gpg/something resorting to somethingsomethingdarkside?
Offline
Race condition?
Thought about that too, rebooted 3 times, works fine so far.
"vault" probably gets decrypted, being late
At PAM stage on tty login, using this https://wiki.archlinux.org/title/Pam_mo … encryption.
Offline