Make sure the GPG agent is running and the required sockets exist.