git-crypt
git-crypt copied to clipboard
Connection refused error from gpg
Hello,
I'm trying to add another person to use git crypt in the same git repo and it fails.
git crypt add-gpg-user 0xF7095169AB363115
can't connect to 'socket:///home/XXX/.gnupg/log-socket': Connection refused
can't connect to 'socket:///home/XXXX/.gnupg/log-socket': Connection refused
git-crypt: GPG error: Failed to encrypt
Any ideas on how to fix this?
My versions are bellow.
uname -a
Linux daos-495 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13) x86_64 GNU/Linux
➜ git:(develop) ✗ gpg --version
gpg (GnuPG) 2.2.19
libgcrypt 1.8.5
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /home/XXX/.gnupg
Algoritmuri suportate:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cifru: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compresie: Necompresat, ZIP, ZLIB, BZIP2
➜ git:(develop) ✗ gpg-agent
gpg-agent[58042]: gpg-agent running and available
I've added the same user to git-secret in another project and it worked so I think it is related to how git-crypt interacts with my system