Page MenuHome GnuPG

gpg encryption/decryption on Windows encounters occasional issues
Closed, InvalidPublic

Description

Overview:
The batch script for running gpg encryption/decryption on Windows encounters occasional issues,

  1. waiting gpg lock file, "gpg: waiting for lock ../path/gnupg_spawn_agent_sentinel.lock..."
  2. unable to connect to GPG-agent, "gpg: can't connect to the gpg-agent: IPC connect call failed"
  3. encounter gpg locking with files
  4. no response after calling in batch script

Environment:
Window Server 2016
Kleopatra Gpg4win-4.1.0
GnuPG 2.4.0
libgcrypt 1.10.1

The following actions have been taken but have not resolved the problems persist:

  1. Added an environment variable, GNUPGHOME, for gpg home directory.
  2. Added --homedir in batch script file.
  3. Reboot the server and remove the gpg lock file in daily basis to release the lock.

I would greatly appreciate your advice please. Thank you very much.

Event Timeline

aheinecke added a subscriber: aheinecke.

Hi,

without understanding more of your setup, which user starts it with which rights and when and so on we cannot really help you here. This is a classical support question. You might want to check the permissions on the lock file. Maybe they are created by a user with higher privileges e.g. to interactively manage the keys, and then the batch user comes along and does not have the permission to obtain or create the lock file. My suggestion would indeed be to use the --homedir parameter in the batch script and ensure that the user has full access rights to that folder and no "Adminstrator" messes with the files / permissions in there.

But this is not really a bug report and more of a user question for these please use one of our public channels under: https://www.gpg4win.org/community.html