Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected pass store error throw after using docker-credential-pass for hours #121

Closed
callentan opened this issue Aug 24, 2018 · 1 comment

Comments

@callentan
Copy link

Hi,
We followed document #102 and setup the docker-credential-pass, so that we can store the docker login credentials in the pass store.
Everything is going well ( it works for several hours and docker login succeed for hundreds times ), but after that the error throw when docker login again:

Error saving credentials: error storing credentials - err: exit status 1, out: pass store is uninitialized

And then execute docker-credential-pass list, it also returns:

pass store is uninitialized

Check pass list, unexpected 'docker-pass-initialized-check' is inserted by itself:

Password Store
└── docker-credential-helpers
    └── a3jxs543j..................8hda0==
        └── dockerloginusername
    └── docker-pass-initialized-check

Is it possible to be the issue of docker-credential-pass which makes pass store uninitialized?
Please feel free to reach me. Thank you.

Ubuntu Info:

Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial

Pass Version:

v1.7.3

@callentan
Copy link
Author

The root cause is gpg cached entry timeout, which controlled by the option [max-cache-ttl] in ~/.gnupg/gpg-agent.conf

--max-cache-ttl n
Set the maximum time a cache entry is valid to n seconds. After this time a cache entry will be expired even if it has been accessed recently or has been set using gpg-preset-passphrase. The default is 2 hours (7200 seconds)

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

No branches or pull requests

1 participant