-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 error after upgrade to 4.1 #4073
Comments
Is gpg installed on the system? |
Yes. And this was working until the upgrade to 4.1. Or at least - I only noticed that it was not working at that time. We did have other problems before that regarding the repo, but not this error message. |
Things to check:
|
Yes
Yes
Yes, but...
Question: does Weblate automatically generate a key if you specify the e-mail address in settings.py but it doesn't find a key? |
How do I "clean the cache"? (pip install) |
See https://docs.weblate.org/en/latest/admin/optionals.html#gpg-sign, it generates the key if not found. You can delete this particular cache entry using:
|
After doing this and deleting the key in question, and also stopping/restarting celery and running collectstatic, the public key shown on the keys/ page is the same one as before. I also killed gpg-agent. I think this means it is still cached? |
Yes, the public key might be still cached, it uses different cache key. But that's just a display issue and should not affect functionality. Is a commit now working for you? |
Okay. Anyway today the new key shows in the UI.
No but now the error is different. Now I get
With new key I still get:
|
So I think the problem could be that when upgrading to 4.1, Weblate lost the setting to sign with GPG. The key is there, and But So I set those manually and now the problem is gone. It also added confusion that:
So I think this is a bug with 4.1. When I upgraded, these settings went away (I guess?) and even changing settings.py did not update .gitconfig. Keeping open as this fix is really just a hack. |
It was never there, it's set on the command line: Lines 171 to 176 in 9976c84
Generally, commit signing works in Weblate, you can see it for example on this commit: ae143d9 The issue with changed configuration not being applied was addressed in c3c6dd0. That probably lead to behavior you've observed. |
Thank you for your report, the issue you have reported has just been fixed.
|
But in this case it was not happening, so my fix was necessary.
Yes it was working for us before an upgrade (maybe to 4.0.4, maybe to 4.1, that is not clear)
How? I upgraded more than 3 days ago and that is a more recent commit. |
This should make it easier to diagnose problems with it. See #4073
Just a heads up for anyone trying this:
|
Describe the bug
After upgrading to 4.1 and working on #4054 (comment), the Version control settings say there is a GPG error.
To Reproduce
Steps to reproduce the behavior:
git+ssh://[email protected]/repository.git
Could not update repository: error: gpg failed to sign the data fatal: failed to write commit object (128)
URL of a repository, use weblate://project/component to share it with other component.
Expected behavior
There should be no error because this repo is good and GPG signing is turned on in settings.py (unless there is a new setting in 4.1 that I missed? But I imported the old GPG setting from 4.0.4)
Server configuration and status
On pip installed Weblate:
Additional context
Using
weblate://project/component
provides:The text was updated successfully, but these errors were encountered: