Comments (9)
I can confirm @jamesboswell's comment, it fixed my issue. The only error now is: Failed to restore terminal: errno 0
from gopass.
I'm facing this bug as well. My setup is identical to @mrcrilly
I also tried the FAQ, change signingkey in git config and change gpg email as @hartzell mentioned as well but no luck.
➜ ~ gopass insert foo/bar1
Enter password for foo/bar1:
Failed to restore terminal: errno 0
Retype password for foo/bar1:
Failed to restore terminal: errno 0
gopass: Encrypting foo/bar1 for these recipients:
- 0x09674B0D7D0EDA9C - John <[email protected]>
Do you want to continue? [Y/n]: y
error: gpg failed to sign the data
fatal: failed to write commit object
Error: failed to committ files to git: exit status 128
from gopass.
Please take a look at the FAQ.
https://www.justwatch.com/gopass/faq/
I think that's exactly the problem, right?! 😊
from gopass.
@metalmatze the FAQ solves part of the problem, thanks for that.
but the error Failed to restore terminal: errno 0
still remains
from gopass.
I can confirm this bug. It happend to me right now on ArchLinux.
$ gopass insert foo
Enter password for foo:
Failed to restore terminal: errno 0
Retype password for foo:
Failed to restore terminal: errno 0
gopass: Encrypting foo for these recipients:
- 0xB1C7DF661ABB2C1A - Matthias Loibl <[email protected]>
Do you want to continue? [Y/n]:
[master bd0cf1f] Save secret to foo.
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 foo.gpg
from gopass.
The bug is the same i discover on #17
Change the .git/config solve the probleme
from gopass.
[edit for clarity]
I was seeing the same problem:
Error: failed to committ files to git: exit status 128
(ps, #27 fixes the typo...)
In addition to the FAQ cited above, it turned out that I had used one form of my company email when creating the GPG key ([email protected]
) and had a different form in my ~/.gitconfig
[user]
section ([email protected]
).
Changing the email address in my ~/.gitconfig
to match the one I used in the key allowed things to complete successfully.
Seems like I should pick one form and stick with it...
from gopass.
OSX 10.11.6 El Capitan
FYI, for anyone like me who didn't read the homebrew output of installing pinentry-mac
as required in the FAQ
You need to create a gpg-agent.conf
file and set the pinentry-program
vim ~/.gnupg/gpg-agent.conf
# insert
pinentry-program /usr/local/bin/pinentry-mac
# save
This fixes a lot of errors, as by default GPG is trying to use the pinentry-ncurses and gopass can't use it as of 1.0.1. Setting the pinentry-program uses the Mac pop-up window to prompt for password
This cleared the show
and insert
(exit status 128) errors I was having.
gopass show bar
You need a passphrase to unlock the secret key for
user: "James Boswell <removed>@.com>"
2048-bit ELG key, ID <removed>, created 2017-02-21 (main key ID 4422B82B)
<pinentry-mac pop up happens outside terminal>
1234
gopass insert foo
Enter password for foo:
Failed to restore terminal: errno 0
Retype password for foo:
Failed to restore terminal: errno 0
gopass: Encrypting foo for these recipients:
- 0x<removed> - James Boswell <removed@com>
Do you want to continue? [Y/n]: y
You need a passphrase to unlock the secret key for
user: "James Boswell <[email protected]>"
2048-bit DSA key, ID <removed>, created 2017-02-21
<pinentry-mac pop up happens outside terminal>
[master 403299c] Save secret to foo: Inserted user supplied password
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 foo.gpg
Warning: git has not remote. Ignoring auto-push option
Run: gopass git remote add origin ...
from gopass.
This issue was fixed in #85 and commented on in #80.
from gopass.
Related Issues (20)
- deb package doesn't come with completions or a man page HOT 1
- gopass unable to find PGP keys when running in Github Actions
- Trailing whitespace removed when copying password to clipboard HOT 1
- some checks fail on void linux HOT 1
- [FR] Allow selecting the line to copy HOT 3
- Expired GPG Keys should not be ignored silently + there seems to be no gopass command to refresh life-extended keys
- [Question] Is there anyway to add a pin before showing the password HOT 1
- Hooks not firing HOT 1
- Idea: `config: [mounts] path` should be set using `~` if `GOPASS_HOMEDIR` set. HOT 1
- gopass fsck --decrypt should mention filename where decryption fails HOT 3
- "recipients add" does not add the key HOT 1
- age plugin support HOT 1
- Do not create commits during `setup` with specified remote
- gopass windows 10 qt-pinentry needs two calls to startup
- Gopass Releases public GPG key HOT 1
- config file relies on tabs and spaces HOT 4
- `gopass cp` has a different behaviour depending on whether the recursive directory already exist
- bug: Password is encrypted with multiple gpg keys. .gpg-id is ignored. HOT 2
- config: git operations do not work using `~` in `mounts.path`
- Add option to retrieve credentials without git sync HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gopass.