question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Failed to remove private key

See original GitHub issue

Description:

When attempting to deploy to a maven repository following the configuration documentation [1] the deploy action is successful but the action fails consistently on the “Post” step with output:

Post job cleanup.
Removing private key from keychain
Error: Failed to remove private key

The setup-java code where the attempt to remove the key occurs here: https://github.com/actions/setup-java/blob/v2.0.0/src/cleanup-java.ts. Note that the error is swallowed, making it harder to know why the failure is occurring.

[1] https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-Apache-Maven

Task version:

actions/setup-java@v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.

Github actions workflow: https://github.com/duracloud/duracloud-db/blob/4afd1ac05398ff95c6c3ee88734b0bfa2ad2614f/.github/workflows/deploy-snapshot.yml An example of a failed run: https://github.com/duracloud/duracloud-db/runs/3205773250

Expected behavior: A description of what you expected to happen.

The GPG key would be removed and the job would complete successfully.

Actual behavior: A description of what is actually happening.

An error is printed and the step and job are failed.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dmitry-shibanovcommented, Sep 29, 2021

Hello everyone. Thank you for all your responses ! We appreciate it. We released new version of the action. For now I’m closing the issue. If you have any concerns feel free to ping us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to delete Private Key from FileVaultMaster.keychain
Open System Preferences/Security and Unlock the Preferences pane · Scroll down to Full Disk Access and Highlight it. · Click the Plus (+)...
Read more >
Fix the IIS 7 "No Private Key" Error Message - SSL.com
This article will show you how to correct the "No Private Key" error message in Windows Internet Information Server (IIS).
Read more >
Error Renewing SSL Certificate in IIS 8 - "failed to remove the ...
I am trying to renew a SSL certificate for my server which is running Windows Server 2012 and IIS 8. I have generated...
Read more >
How to recover the private key of an SSL certificate in an IIS ...
1. Click Start, and then search for Run. 2. Type in mmc and click OK. 3. From the File menu, choose Add/Remove Snap-in....
Read more >
Remove private key from Mac OS X keychain using Terminal
The only thing I did not do correctly was specify the -T /usr/bin/codesign flag during import. I've already tried the delete-certificate ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found