Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

gpg-agent is already running #11

Open
pogossian opened this issue Jul 12, 2022 · 7 comments · Fixed by Cox-Automotive/terraform-provider-data-platform-kafka#2
Open

gpg-agent is already running #11

pogossian opened this issue Jul 12, 2022 · 7 comments · Fixed by Cox-Automotive/terraform-provider-data-platform-kafka#2

Comments

@pogossian
Copy link

Hi there!
Something is going wrong with the action

Run hashicorp/ghaction-import-gpg@v2.1.0
Run gpg-agent --daemon --default-cache-ttl 7200
gpg-agent[1632]: directory '/home/runner/.gnupg' created
gpg-agent[1632]: directory '/home/runner/.gnupg/private-keys-v1.d' created
gpg-agent: a gpg-agent is already running - not starting a new one
Error: Process completed with exit code 2.

here is the failed job

https://github.com/netrisai/terraform-provider-netris/runs/7299622825?check_suite_focus=true

@msalman899
Copy link

is there any work around available?

@ernestre
Copy link

ernestre commented Jul 12, 2022

For a temporary workaround you can create a local github action with the contents if this github-action without the gpg-agent --daemon part.

This is not the best solution, but worked as a quick fix for me 🤷 .

@Magnitus-
Copy link

Did the same as ernestre. I guess as long as your build takes less than 10 minutes, it is a viable workaround.

@ekampf
Copy link

ekampf commented Jul 13, 2022

Happens here too... whats changed to trigger this?

penta515 added a commit to penta515/terraform-provider-cloudautomator that referenced this issue Jul 13, 2022
@pogossian
Copy link
Author

I didn't wait for a fix, and switched to crazy-max action

         name: Import GPG key
         id: import_gpg
         uses: crazy-max/ghaction-import-gpg@v5
         with:
           # These secrets will need to be configured for the repository:
           gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
           passphrase: ${{ secrets.PASSPHRASE }}

netrisai/terraform-provider-netris@a9d23bf

NikolaLohinski added a commit to NikolaLohinski/terraform-provider-jinja that referenced this issue Jul 14, 2022
NikolaLohinski added a commit to NikolaLohinski/terraform-provider-jinja that referenced this issue Jul 14, 2022
@mdeggies
Copy link
Member

mdeggies commented Jul 15, 2022

Hey everyone- Thanks for bringing this to our attention, and sorry for the inconvenience this has caused. As of 2-3 days ago, GitHub's runners now run gpg-agent by default which is causing the error you've reported.

Instead of cutting a new release and asking users to pin to latest, we recommend switching over to the upstream directly - crazy-max/ghaction-import-gpg (v5.0.0). This HashiCorp action was originally created to get around this known limitation in the crazy-max upstream. Since that issue has been resolved, and the author of the upstream has continued to maintain it and a number of other well-known, well-documented, and well-used actions, we will be officially deprecating this action and archiving the repo.

Update: Note that there are a few small changes between this action and the upstream. You'll need to change the snippet of yaml from this:

uses: hashicorp/ghaction-import-gpg@v2.1.0
env:
  GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
  PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} 

To this:

uses: crazy-max/ghaction-import-gpg@v5.0.0
with:
  gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
  passphrase: ${{ secrets.GPG_PASSPHRASE }}

matthewcummings added a commit to cloudtruth/terraform-provider-cloudtruth that referenced this issue Jul 15, 2022
l-with added a commit to l-with/terraform-provider-mailcow that referenced this issue Jul 15, 2022
bflad added a commit to hashicorp/ghaction-terraform-provider-release that referenced this issue Jul 15, 2022
Reference: hashicorp/ghaction-import-gpg#11

The GitHub hosted runners are now running `gpg-agent` by default, which can cause the following error:

```text
Run hashicorp/ghaction-import-gpg@v2.1.0
Run gpg-agent --daemon --default-cache-ttl 7200
gpg-agent[1632]: directory '/home/runner/.gnupg' created
gpg-agent[1632]: directory '/home/runner/.gnupg/private-keys-v1.d' created
gpg-agent: a gpg-agent is already running - not starting a new one
Error: Process completed with exit code 2.
```

The `hashicorp` fork of the `ghaction-import-gpg` action is not maintained and the recommendation is to switch to the upstream action.
dmitrykruglov added a commit to TiVo/terraform-provider-splunk-itsi that referenced this issue Jul 15, 2022
dmitrykruglov added a commit to TiVo/terraform-provider-splunk-itsi that referenced this issue Jul 15, 2022
bflad added a commit to hashicorp/ghaction-terraform-provider-release that referenced this issue Jul 15, 2022
Reference: hashicorp/ghaction-import-gpg#11

The GitHub hosted runners are now running `gpg-agent` by default, which can cause the following error:

```text
Run hashicorp/ghaction-import-gpg@v2.1.0
Run gpg-agent --daemon --default-cache-ttl 7200
gpg-agent[1632]: directory '/home/runner/.gnupg' created
gpg-agent[1632]: directory '/home/runner/.gnupg/private-keys-v1.d' created
gpg-agent: a gpg-agent is already running - not starting a new one
Error: Process completed with exit code 2.
```

The `hashicorp` fork of the `ghaction-import-gpg` action is not maintained and the recommendation is to switch to the upstream action.
jon-ruckwood added a commit to juju/terraform-provider-juju that referenced this issue Jul 18, 2022
Hashicorp's ghaction-import-gpg has been deprecated in favour of this
action - additionally their action has a bug which they are not intending
on fixing and recommend people switch.

Reference: hashicorp/terraform-provider-scaffolding#127
Reference: hashicorp/ghaction-import-gpg#11
jon-ruckwood added a commit to juju/terraform-provider-juju that referenced this issue Jul 18, 2022
Hashicorp's ghaction-import-gpg has been deprecated in favour of this
action - additionally their action has a bug which they are not intending
on fixing and recommend people switch.

Reference: hashicorp/terraform-provider-scaffolding#127
Reference: hashicorp/ghaction-import-gpg#11
Tristan971 added a commit to mangadex-pub/terraform-provider-cloudns that referenced this issue Jul 19, 2022
schirevko added a commit to vk-cs/terraform-provider-vkcs that referenced this issue Jul 19, 2022
hashicorp/ghaction-import-gpg has been deprecated in favor of crazy-max/ghaction-import-gpg
Reference: hashicorp/ghaction-import-gpg#11
alexhung added a commit to jfrog/terraform-provider-project that referenced this issue Jul 25, 2022
HashiCorp's version is deprecated. Now uses its original upstream repo.

hashicorp/ghaction-import-gpg#11
alexhung added a commit to jfrog/terraform-provider-pipeline that referenced this issue Jul 25, 2022
HashiCorp's version is deprecated. Now uses its original upstream repo.

hashicorp/ghaction-import-gpg#11
kbadk added a commit to clearhaus/terraform-provider-humio that referenced this issue Jul 26, 2022
…@v2.1.0` is broken (and now deprecated)

Instead use `crazy-max/ghaction-import-gpg@v5.0.0` as suggested in hashicorp/ghaction-import-gpg#11.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants