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.

GPG commit error message

See original GitHub issue

Please summarise the issue in the title, and then use the template below to fill out the details so we can reproduce the issue on our end.

Description

I use GPG key in my commits, and when i commit through the app it gives an error.

Version

What version of GitHub Desktop are you running? This is displayed under the About GitHub Desktop menu item. If you are running from source, include the commit by running git rev-parse HEAD from your local repository.

GitHub Desktop version: 0.6.0

The operating system you are running on may also help with reproducing the issue:

  • If you are on macOS, launch About This Mac and write down the OS version listed.
  • If you are on Windows, open Command Prompt and attach the output of this command*: cmd /c ver

OS version: 10.12.5

Steps to Reproduce

  1. write a commit message
  2. commit to master

If the issue involves a specific public repository, including the information about that repository will make it is easier to recreate the issue.

If you think screenshots or a GIF recording will help demonstrate the issue better, feel free to add them here.

Expected behaviour: commit message and ask for password

Actual behaviour: Commit failed - exit code 128 received, with output: 'error: gpg failed to sign the data fatal: failed to write commit object'

Reproduces how often: every time i have a repository with gpg enabled

Logs

There may be some relevant information in log files generated by GitHub Desktop:

  • If you are on macOS, attach the most recent log file from: ~/Library/Application Support/GitHub Desktop/logs/*.desktop.production.log
  • If you are on Windows, attach the most recent log file from: %APPDATA%\\GitHub Desktop\\logs\\*.desktop.production.log

The log files are organized by date, so see if anything was generated for today’s date.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

If you are dealing with a performance issue or regression, attaching a Timeline profile of the task will help the developers understand the runtime behaviour of the application on your machine.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shiftkeycommented, Jul 28, 2017

As this is dependent on the work in #78, I’ve added a comment about this flow to that issue and will close this out. Thanks for the report, please follow along with #78 for implementing this as a first-class feature!

0reactions
shiftkeycommented, Jul 28, 2017

As a workaround, I’d recommend looking at serving up the password using gpg-agent with a setup like this until we can get to this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to understand the `gpg failed to sign the data` problem in ...
It means that is not finding the key that was set. You would need to set up the GPG key in Git (again):....
Read more >
gpg failed to sign the data fatal: failed to write commit object ...
I ran into this issue with OSX. Original answer: It seems like a gpg update (of brew) changed to location of gpg to...
Read more >
error: gpg failed to sign the data fatal: failed to write commit ...
Solution work for me is : Firstly I tried to get details about why this is NOT working. Try below cmd on terminal....
Read more >
Git commit fails if GPG signing is enabled : IDEA-127802
To reproduce enable auto-signing of all commits in Git config file with: [commit] gpgsign = true. Now all commits fail with this error:...
Read more >
How to fix 'GPG failed to sign the data' error?
How to fix 'GPG failed to sign the data' error? · Check GPG version · Check the GPG environment variable · Restart the...
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