==== What is the problem?
I have just tried to tally [[https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1545|this election]] with the `tally.php` script.
It failed after about 5 minutes with:
```
Tally error: Error executing GPG:
Command: #Command: 'gpg' '--homedir' '/tmp/securepoll-55dbaf2a56a8c7b2f947a4eaca87897c8c9fa39a' '--trust-model' 'always' '--batch' '--yes' '--decry
pt' '-o' '/tmp/securepoll-55dbaf2a56a8c7b2f947a4eaca87897c8c9fa39a/output' '/tmp/securepoll-55dbaf2a56a8c7b2f947a4eaca87897c8c9fa39a/input'
Error:
<pre>gpg: encrypted with 3072-bit RSA key, ID 3009C0891705D47F, created 2021-02-01
  "betavotewiki_encrypt"
gpg: public key decryption failed: End of file
gpg: decryption failed: No secret key
</pre>
```
It is an encrypted STV election with 5000 votes.
I have checked that the decryption key I am using is correct. Besides, if I had uploaded the wrong key I would assume it would fail much sooner.
So far, I have only reproduced this locally.
==== Steps to reproduce problem
# Get the dump for the election here https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/dump/1545
# Add the gpg key from here https://www.mediawiki.org/wiki/Anti-Harassment_Tools/SecurePoll_Improvements/gpg_keys to the dump file (inside of a `<property name="gpg-decrypt-key">`)
# Run: `php extensions/SecurePoll/cli/tally.php 1545-20210812150223.securepoll`
==== Environment
**Wiki(s):**
- local docker SecurePoll 3.0.0 (543f6f0) 04:43, 12 August 2021.