I moved gpg from an old server to a new one. I exported and imported the key ring. I tested under my account and it works but when I run the production job which runs under a different account it fails with “no default secret key: No secret key”. I’m on Windows Server 2008. Is this an permissions issue?
maybe GnuPG ist not able to find your keyring.
See the last section of http://wiki.gnupg.org/TroubleShooting
how to set the homedirectory.