Problem with socket : Connection refused

Hi @alexandre0123
this problem seems to be ArchLinux specific.

Here is the page GnuPG - ArchWiki that has a number of hints how ArchLinux’s default configuration looks like.

That message

“can’t connect to ‘socket:///home/user/.gnupg/log-socket’: Connection refused”

relates to logging actions which is optional, so you can turn it off.

Set --log-file to a real file that gpg can write and only you can read in your call on the command line. And add an -v to see a little more details.

You may need to check if other components have this option in their configuration file, if changing the call to gpg is not enough. See the different log-file options in Option Index (Using the GNU Privacy Guard)

Best,
Bernhard

2 Likes