Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Fix exit status 1 on Ensure a GPG agent is running #1622

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Vashiru
Copy link

@Vashiru Vashiru commented Aug 11, 2019

Fixes #1521.

When running Streisand against a self-hosted Ubuntu 16.04 machine as a regular user it will fail on "Ensure a GPG agent is running". This can be fixed by running the command using sudo. This pull request fixes that issue.

When running the command manually I was able to reproduce the issue, the exact error was:

gpgconf: error running '/usr/bin/gpg-connect-agent': exit status 1
gpgconf: error running '/usr/bin/gpg-connect-agent NOP': General error

@nopdotcom
Copy link
Member

I did a scratch install of an Ubuntu 16.04.6 Server, HWE kernel on KVM on libvirt. The only non-default installation option I took was to add "OpenSSH server" to the list of roles. (It starts out with "standard system packages" checked; I did not uncheck that.) I installed Streisand to localhost as a standard user, and the run completed successfully.

The bug that this is purporting to fix can't be reproduced from the information given. But I can see how if somebody was screwing around with their Ubuntu box before running a Streisand install, they might have running gpg-agents that need to be killed, and we should cope with that.

@nopdotcom
Copy link
Member

The thing that really puzzles me is: how could the rest of the file work without become while this action needs it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TASK [gpg : Ensure a GPG agent is running] fails
5 participants