-
Notifications
You must be signed in to change notification settings - Fork 686
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
No source key being generated 1.1.0-rc2 #4909
Comments
I could not reproduce the error described above, with cron-apt upgrade from 1.0.0 to 1.1.0 in VMs and the STR provided above. When I submit the file through the source interface, I did not get the "flag for reply" flow. The upgrade works as expected, and the Journalist can reply to the Source, and I can see the source's private keys in Are your VMs still available? If so, could you dig up the application server logs? |
two other questions for @kushaldas regarding this scenario:
|
No, I created more source to test
Yes, I am wondering if I should remove that VM in the morning and try again via upgrade path. I have a snapshot of the 1.0.0 release state. |
Adding source error logging (to the source apache config) so that we can inspect what is happening via this log line would be a good next step. Don't delete the VM as we might not be able to understand this situation if this is a rare event that's hard to reproduce. |
While submitting as a source, I can see the following log. I will dig more.
|
interesting, that is coming from the handler for the |
can you confirm the version of gnupg being used here? |
another step to debug would be to also confirm via inspecting the gpg keyring directly: is the source key not getting created? you could try applying this patch https://github.com/isislovecruft/python-gnupg/pull/264/files and see if it resolves (it handles the 'ERROR' key so a |
Even with that upstream patch I am getting the ValueError.
|
hm, since |
Oh yes, gpg2 is also present on the system.
|
Finally some error log. The following command is causing the error while generating the source keys.
|
interesting.. do you get this same error for other gpg actions? (i assume no and that it's just key generation). what happens if you delete the lockfile? |
Only for that one key generation command. I will test in the morning (after the vm restore) what happens when I remove the lock file. |
I tried making an invalid size lockfile (looks like from the gnupg 2.1 source code that a valid size for the lockfile is 11 bytes) and killing gpg-agent, but this did not reproduce the issue: I was still able to generate keys without issue. |
Moved to rc4 from 1.0.0 snapshot, the error still persists. But, if I remove the lock file, all problem is solved. |
ok this must be an upstream gnupg bug (though I didn't see anything currently filed), specifically with I'm going to close this for now and we can reopen if we see it again and file upstream if/when we have more info. If any SecureDrop users see this issue, let us know (and as a temporary stopgap you can try to delete the lock). |
I've seen this now for myself in a staging environment when testing something unrelated, reopening. |
Bumping priority until we have more clarity whether this can arise in prod or not. |
Next steps:
@zenmonkeykstop will investigate today |
btw yesterday I scanned through the bugtracker and the only ticket that I found was https://dev.gnupg.org/T4146 which doesn't seem directly related |
Haven't had any success in reproducing this, or in finding similar cases in bugtracker. Relevant code (checking for lock, not creating it per se) is here. There is a FIXME note indicating that the dotlock_take() function needs a timeout added. |
For the 11/6-11/20 sprint, we've agreed that @zenmonkeykstop will continue to attempt to get a clean repro (time-box 3-4 hours), and @redshiftzero will help w/ upstream coordination as needed. |
We've not done formal investigation on this since but we'll consider it as part of QA for 1.2.0. Keeping this on the board for visibility for now. |
This was part of the test plan for 1.2.0, but we've not been able to reproduce the issue. Closing for now. |
Description
The encryption keys for any source is not being generated.
Upgraded from 1.0.0 to 1.1.0-rc2 package
Steps to Reproduce
Expected Behavior
The journalist should be able to reply to any new source.
Actual Behavior
No option to the reply to the source. There is no key generated for the source.
The text was updated successfully, but these errors were encountered: