You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/mybatou/.batou/f1e41f9f/bin/batou", line 33, in <module>
sys.exit(load_entry_point('batou==2.2.4', 'console_scripts', 'batou')())
File "/mybatou/.batou/f1e41f9f/lib/python3.9/site-packages/batou/main.py", line 149, in main
args.func(**func_args)
File "/mybatou/.batou/f1e41f9f/lib/python3.9/site-packages/batou/secrets/manage.py", line 109, in summary
for e in Environment.all():
File "/mybatou/.batou/f1e41f9f/lib/python3.9/site-packages/batou/secrets/manage.py", line 30, in all
yield Environment(path=e)
File "/mybatou/.batou/f1e41f9f/lib/python3.9/site-packages/batou/secrets/manage.py", line 19, in __init__
self.f = EncryptedConfigFile(
File "/mybatou/.batou/f1e41f9f/lib/python3.9/site-packages/batou/secrets/encryption.py", line 137, in __init__
self.main_file = self.add_file(encrypted_file)
File "/mybatou/.batou/f1e41f9f/lib/python3.9/site-packages/batou/secrets/encryption.py", line 148, in add_file
f.read()
File "/mybatou/.batou/f1e41f9f/lib/python3.9/site-packages/batou/secrets/encryption.py", line 70, in read
self.cleartext = self._decrypt()
File "/mybatou/.batou/f1e41f9f/lib/python3.9/site-packages/batou/secrets/encryption.py", line 96, in _decrypt
return subprocess.check_output(args, stderr=NULL).decode("utf-8")
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['gpg', '-q', '--no-tty', '--batch', '--decrypt', 'secrets/vagrant.cfg']' returned non-zero exit status 2.
The text was updated successfully, but these errors were encountered:
ctheune
changed the title
./batou secrets summary failes when one cannot decrypt a secret file
./batou secrets summary fails when one cannot decrypt a secret file
May 21, 2021
On CLI I'd use something like
gpg --pinentry-mode cancel --list-packets secrets/vagrant.cfg
The text was updated successfully, but these errors were encountered: