-
Notifications
You must be signed in to change notification settings - Fork 157
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
gpg: decryption failed: Bad session key #853
Comments
@uklimaschewski how did you encrypt your files? You should have done it with this command:
right? |
Exactly, I used this for all three files, just as you have described it in your blog. |
@uklimaschewski that's strange... I just checked, this GPG mechanism works fine, see yegor256/rultor-remote#5 |
@uklimaschewski I suspect it's an issue with GPG agent. It basically is caching the key between executions. somebody else was using |
@uklimaschewski trying to fix it in #854 |
@uklimaschewski try again please, maybe it will work |
Thank you for your efforts, but it failed again, same error.
Looks absolutely OK, but decrypting on your side seems to still fail:
|
@uklimaschewski this is a definitely a bug on our side, but I can't figure how to solve it. I'm sure that if you rename your |
You mean, for example, rename
|
@uklimaschewski rename |
Not very much difference:
|
@uklimaschewski you didn't rename the file, see:
You should name your local file as |
I did.
|
@uklimaschewski I still see |
I now also changed my
So, what am I doing wrong? What else can I change? |
@uklimaschewski looks like something is definitely wrong on our side :( I'm investigating... |
Thanks, if I can assist, drop me a notice. |
@uklimaschewski posted a question on SO: http://stackoverflow.com/questions/30318041/gpg-decryption-failed-bad-session-key |
There's a comment on SO |
@uklimaschewski some links I found about this problem:
None of them help so far... I'll try to provide what that person is asking for, on SO.. |
@uklimaschewski in the mean time, could you please update rultor gem (latest version is 0.4), encrypt your |
I have updated the gem to 0.4 and encrypted all files again, same result.
|
@uklimaschewski I'm not sure, but just guessing. This is what you have locally:
This is what the server has:
Maybe that's the problem? Maybe you can try to upgrade your gpg? |
@uklimaschewski this is what I have on my Mac, btw:
|
OK, some good news: I managed to release and upload to sonatype using rultor now. The gpg version was the solution, I installed gpg2. I needed to tweek my linux a bit, so that it uses gpg2 instead of gpg. Your rultor gem strictly uses the gpg command, there was no possibility to specify gpg2. After this, only a few corrections were needed to get it running.
Thank you for your support! |
@uklimaschewski glad you found the problem and fixed it! Now, I think, it's reasonable to add this version check into rultor gem, to prevent similar problems from happening in the future. Do you know whether it's possible to detect (from command line) whether it's gpg or gpg2? |
hm, I guess most newer Linux installations should have the latest gpg installed. I would say simply check |
After tweaking around with settings.xml, .rultor.yml and pom.xml, I finally made it to maven central. Thanks for your great tool. Some more complete examples would be nice for java coders like me, who are new to this whole maven central area. |
@uklimaschewski Sorry to bother, but how exactly did you update the I would also like to not update to the newest version of gpg (not greater than 2.0.22, I think) because then I have the issue that there is no pubring and secring files anymore, there's just pubring.kbx |
@uklimaschewski fixed it.... I was using |
Sorry for the delay, @amihaiemil ... Home: ~/.gnupg |
@uklimaschewski No worries, thanks for answering :D |
I don't know, what I'm doing wrong, I think I followed all the steps you mentioned, but I am getting that error.
You can see the conversation at: ezylang/EvalEx#26
The first error was because of a missing .rultor.yml in my project, after adding one, I now am getting that gpg error and am totally stuck now.
The text was updated successfully, but these errors were encountered: