mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-09 04:25:18 -05:00
GPG Commit Signatures by Gitea not working anymore in dev builds #9064
Closed
opened 2025-11-02 08:27:51 -06:00 by GiteaMirror
·
17 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1.16.0
v1.15.11
v1.17.0-dev
v1.16.0-rc1
v1.15.10
v1.15.9
v1.15.8
v1.15.7
v1.15.6
v1.15.5
v1.15.4
v1.15.3
v1.15.2
v1.15.1
v1.14.7
v1.15.0
v1.15.0-rc3
v1.14.6
v1.15.0-rc2
v1.14.5
v1.16.0-dev
v1.15.0-rc1
v1.14.4
v1.14.3
v1.14.2
v1.14.1
v1.14.0
v1.13.7
v1.14.0-rc2
v1.13.6
v1.13.5
v1.14.0-rc1
v1.15.0-dev
v1.13.4
v1.13.3
v1.13.2
v1.13.1
v1.13.0
v1.12.6
v1.13.0-rc2
v1.14.0-dev
v1.13.0-rc1
v1.12.5
v1.12.4
v1.12.3
v1.12.2
v1.12.1
v1.11.8
v1.12.0
v1.11.7
v1.12.0-rc2
v1.11.6
v1.12.0-rc1
v1.13.0-dev
v1.11.5
v1.11.4
v1.11.3
v1.10.6
v1.12.0-dev
v1.11.2
v1.10.5
v1.11.1
v1.10.4
v1.11.0
v1.11.0-rc2
v1.10.3
v1.11.0-rc1
v1.10.2
v1.10.1
v1.10.0
v1.9.6
v1.9.5
v1.10.0-rc2
v1.11.0-dev
v1.10.0-rc1
v1.9.4
v1.9.3
v1.9.2
v1.9.1
v1.9.0
v1.9.0-rc2
v1.10.0-dev
v1.9.0-rc1
v1.8.3
v1.8.2
v1.8.1
v1.8.0
v1.8.0-rc3
v1.7.6
v1.8.0-rc2
v1.7.5
v1.8.0-rc1
v1.9.0-dev
v1.7.4
v1.7.3
v1.7.2
v1.7.1
v1.7.0
v1.7.0-rc3
v1.6.4
v1.7.0-rc2
v1.6.3
v1.7.0-rc1
v1.7.0-dev
v1.6.2
v1.6.1
v1.6.0
v1.6.0-rc2
v1.5.3
v1.6.0-rc1
v1.6.0-dev
v1.5.2
v1.5.1
v1.5.0
v1.5.0-rc2
v1.5.0-rc1
v1.5.0-dev
v1.4.3
v1.4.2
v1.4.1
v1.4.0
v1.4.0-rc3
v1.4.0-rc2
v1.3.3
v1.4.0-rc1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
No Label
issue/workaround
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#9064
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @spirkaa on GitHub (Jun 13, 2022).
Description
Latest builds showing earlier merged signed commits as
No known key found for this signature in database.New merged commits are unsigned.
New initialized repositories are created unsigned with
SIGNING_KEY = defaultand not created at all with error 500 when specifying KEYID instead of default and adding SIGNING_NAME, SIGNING_EMAIL as per docs.Server GPG key without expiry date not changed in last two years, git or gitea relevant config parameters either.
When i create manual test commits inside container they are signed.
Gitea Version
1.17.0+dev-709-gff82a1831
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Docker image gitea/gitea:dev
Database
PostgreSQL
@wxiaoguang commented on GitHub (Jun 14, 2022):
These ones:
@wxiaoguang commented on GitHub (Jun 14, 2022):
The document will be updated by
@spirkaa commented on GitHub (Jun 14, 2022):
Ok, thanks. I changed command to
and now gitea-signed commits showing as "Signed with default key by: Gitea".
But creation of new signed commits (merge or new repo init) still failing with the same error in log.
In
/data/gitea/gitea-repositoriesthere.gnupgdir with only filepubring.kbx. When i copy.gnupgfrom current user's{UserHome}(/data/gitin container) all started working as before. Is this intentional behavior?@wxiaoguang commented on GitHub (Jun 14, 2022):
I think it's the intentional behavior (which should be documented as well) because the Git's home directory is changed. And when Gitea runs as a server, it shouldn't use user's config.
@spirkaa commented on GitHub (Jun 14, 2022):
Now when i create new unitialized repo in gitea ui and push to main or new branch, there error in
git pushlog:but
RepoRootPathset in app.ini@wxiaoguang commented on GitHub (Jun 14, 2022):
It should be fixed by #19930
The problem is that the git command is called before git.Init in a post hook.
@wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf commented on GitHub (Jun 15, 2022):
it might have already been said, but I'd argue that when Gitea runs as a server it should pick up user's gitconfig.
I, for one, am running Gitea with a dedicated user, even the docs used to endorse that, if I recall well.
never mind, decisions have been made to change it, so be it, would a symlink in
REPO_ROOT_PATHdo fine, or do I have to copy the.gitconfigfrom user's home toREPO_ROOT_PATH?@wxiaoguang commented on GitHub (Jun 15, 2022):
The problem is that there will be more and more options be put in the gitconfig in the future, some may affect git's behavior, even security. I believe most developers themselves won't like their own
~/.gitconfigbe polluted when developing Gitea. 😊So, the gitconfig is isolated from the user's personal config file.
Either of them should work.
@wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf commented on GitHub (Jun 15, 2022):
turns out a
.gitconfighas already been created inREPO_ROOT_PATH, looking like this:which is a little different after the changes I did to
.gitconfig..so I just copied those over.
further, I see a
.sshfolder inREPO_ROOT_PATHbut it's empty. are there plans to also move files such asauthorized_keystoREPO_ROOT_PATH?same applies to GPG (for commit/push signing): there is a new folder in
REPO_ROOT_PATH:these changes could potentially break some deployments, I'm just saying.
in fact they already did.
actually I have to thank you for replying to me, because I have just "fixed" another issue I've been having with Gitea for upwards of a week (not the mirror stuff mentioned elsewhere - #19928): I could not merge in the webUI, I was receiving a bunch of
500s every time I attempted to merge via webUI, couldn't be bothered to closely look at the logs - that is, until now: it was a GPG signing issue thanks to recent changes to.gitconfig:log of GPG signing issue thanks to recent changes to
.gitconfigJun 15 14:08:23 nebula gitea[3326830]: 2022/06/15 14:08:23 ...rvices/pull/merge.go:660:commitAndSignNoAuthor() [E] git commit [wanderer/another-test-repo:renovate/renovate-renovate-32.x -> wanderer/another-test-repo:development]: exit status 128 Jun 15 14:08:23 nebula gitea[3326830]: Jun 15 14:08:23 nebula gitea[3326830]: error: gpg failed to sign the data Jun 15 14:08:23 nebula gitea[3326830]: fatal: failed to write commit object Jun 15 14:08:23 nebula gitea[3326830]: Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/services/pull/merge.go:660 (0x1b94ece) Jun 15 14:08:23 nebula gitea[3326830]: commitAndSignNoAuthor: log.Error("git commit [%s:%s -> %s:%s]: %v\n%s\n%s", pr.HeadRepo.FullName(), pr.HeadBranch, pr.BaseRepo.FullName(), pr.BaseBranch, err, outbuf.String(), errbuf.String()) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/services/pull/merge.go:402 (0x1b8c924) Jun 15 14:08:23 nebula gitea[3326830]: rawMerge: if err := commitAndSignNoAuthor(ctx, pr, message, signArg, tmpBasePath, env); err != nil { Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/services/pull/merge.go:170 (0x1b894d5) Jun 15 14:08:23 nebula gitea[3326830]: Merge: pr.MergedCommitID, err = rawMerge(mergeCtx, pr, doer, mergeStyle, expectedHeadCommitID, message) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/web/repo/pull.go:989 (0x202d6a7) Jun 15 14:08:23 nebula gitea[3326830]: MergePullRequest: if err := pull_service.Merge(ctx, pr, ctx.Doer, ctx.Repo.GitRepo, repo_model.MergeStyle(form.Do), form.HeadCommitID, message);err != nil { Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap_convert.go:47 (0x1f42296) Jun 15 14:08:23 nebula gitea[3326830]: convertHandler.func3: t(ctx) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:41 (0x1f404c9) Jun 15 14:08:23 nebula gitea[3326830]: wrapInternal.func1: done, deferrable := handler(resp, req, others...) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:442 (0x17339f5) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/middleware/get_head.go:37 (0x1fa67c4) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/context/context.go:800 (0x1b1993a) Jun 15 14:08:23 nebula gitea[3326830]: Contexter.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:71 (0x173182c) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:314 (0x17331db) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:442 (0x17339f5) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/web/base.go:173 (0x2178bb1) Jun 15 14:08:23 nebula gitea[3326830]: Recovery.func1.1: next.ServeHTTP(w, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/gitea.com/go-chi/session@v0.0.0-20211218221615-e3605d8b28b8/session.go:257 (0x152437d) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:110 (0x1f413e8) Jun 15 14:08:23 nebula gitea[3326830]: WrapWithPrefix.func1.1: next.ServeHTTP(resp, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:71 (0x173182c) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:314 (0x17331db) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:442 (0x17339f5) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/common/middleware.go:79 (0x1fabdc2) Jun 15 14:08:23 nebula gitea[3326830]: Middlewares.func2.1: next.ServeHTTP(resp, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/routing/logger_manager.go:123 (0x1f3c1ef) Jun 15 14:08:23 nebula gitea[3326830]: (*requestRecordsManager).handler.func1: next.ServeHTTP(w, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/middleware/strip.go:30 (0x1fa9538) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/chi-middleware/proxy@v1.1.1/middleware.go:37 (0x1fa5e36) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/common/middleware.go:32 (0x1fabc12) Jun 15 14:08:23 nebula gitea[3326830]: Middlewares.func1.1: next.ServeHTTP(context.NewResponse(resp), req.WithContext(ctx)) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:88 (0x17317e1) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/route.go:200 (0x1f3f90d) Jun 15 14:08:23 nebula gitea[3326830]: (*Route).ServeHTTP: r.R.ServeHTTP(w, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2916 (0x9428da) Jun 15 14:08:23 nebula gitea[3326830]: serverHandler.ServeHTTP: handler.ServeHTTP(rw, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:1966 (0x93dd96) Jun 15 14:08:23 nebula gitea[3326830]: (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/runtime/asm_amd64.s:1571 (0x474260) Jun 15 14:08:23 nebula gitea[3326830]: goexit: BYTE $0x90 // NOP Jun 15 14:08:23 nebula gitea[3326830]: Jun 15 14:08:23 nebula gitea[3326830]: 2022/06/15 14:08:23 ...rvices/pull/merge.go:403:rawMerge() [E] Unable to make final commit: git commit [wanderer/another-test-repo:renovate/renovate-renovate-32.x -> wanderer/another-test-repo:development]: exit status 128 Jun 15 14:08:23 nebula gitea[3326830]: Jun 15 14:08:23 nebula gitea[3326830]: error: gpg failed to sign the data Jun 15 14:08:23 nebula gitea[3326830]: fatal: failed to write commit object Jun 15 14:08:23 nebula gitea[3326830]: Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/services/pull/merge.go:403 (0x1b8c93e) Jun 15 14:08:23 nebula gitea[3326830]: rawMerge: log.Error("Unable to make final commit: %v", err) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/services/pull/merge.go:170 (0x1b894d5) Jun 15 14:08:23 nebula gitea[3326830]: Merge: pr.MergedCommitID, err = rawMerge(mergeCtx, pr, doer, mergeStyle, expectedHeadCommitID, message) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/web/repo/pull.go:989 (0x202d6a7) Jun 15 14:08:23 nebula gitea[3326830]: MergePullRequest: if err := pull_service.Merge(ctx, pr, ctx.Doer, ctx.Repo.GitRepo, repo_model.MergeStyle(form.Do), form.HeadCommitID, message);err != nil { Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap_convert.go:47 (0x1f42296) Jun 15 14:08:23 nebula gitea[3326830]: convertHandler.func3: t(ctx) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:41 (0x1f404c9) Jun 15 14:08:23 nebula gitea[3326830]: wrapInternal.func1: done, deferrable := handler(resp, req, others...) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:442 (0x17339f5) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/middleware/get_head.go:37 (0x1fa67c4) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/context/context.go:800 (0x1b1993a) Jun 15 14:08:23 nebula gitea[3326830]: Contexter.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:71 (0x173182c) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:314 (0x17331db) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:442 (0x17339f5) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/web/base.go:173 (0x2178bb1) Jun 15 14:08:23 nebula gitea[3326830]: Recovery.func1.1: next.ServeHTTP(w, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/gitea.com/go-chi/session@v0.0.0-20211218221615-e3605d8b28b8/session.go:257 (0x152437d) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:110 (0x1f413e8) Jun 15 14:08:23 nebula gitea[3326830]: WrapWithPrefix.func1.1: next.ServeHTTP(resp, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:71 (0x173182c) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:314 (0x17331db) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:442 (0x17339f5) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/common/middleware.go:79 (0x1fabdc2) Jun 15 14:08:23 nebula gitea[3326830]: Middlewares.func2.1: next.ServeHTTP(resp, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/routing/logger_manager.go:123 (0x1f3c1ef) Jun 15 14:08:23 nebula gitea[3326830]: (*requestRecordsManager).handler.func1: next.ServeHTTP(w, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/middleware/strip.go:30 (0x1fa9538) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/chi-middleware/proxy@v1.1.1/middleware.go:37 (0x1fa5e36) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/common/middleware.go:32 (0x1fabc12) Jun 15 14:08:23 nebula gitea[3326830]: Middlewares.func1.1: next.ServeHTTP(context.NewResponse(resp), req.WithContext(ctx)) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:88 (0x17317e1) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/route.go:200 (0x1f3f90d) Jun 15 14:08:23 nebula gitea[3326830]: (*Route).ServeHTTP: r.R.ServeHTTP(w, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2916 (0x9428da) Jun 15 14:08:23 nebula gitea[3326830]: serverHandler.ServeHTTP: handler.ServeHTTP(rw, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:1966 (0x93dd96) Jun 15 14:08:23 nebula gitea[3326830]: (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/runtime/asm_amd64.s:1571 (0x474260) Jun 15 14:08:23 nebula gitea[3326830]: goexit: BYTE $0x90 // NOP Jun 15 14:08:23 nebula gitea[3326830]: Jun 15 14:08:23 nebula gitea[3326830]: 2022/06/15 14:08:23 ...ers/web/repo/pull.go:1051:MergePullRequest() [E] Merge: git commit [wanderer/another-test-repo:renovate/renovate-renovate-32.x -> wanderer/another-test-repo:development]: exit status 128 Jun 15 14:08:23 nebula gitea[3326830]: Jun 15 14:08:23 nebula gitea[3326830]: error: gpg failed to sign the data Jun 15 14:08:23 nebula gitea[3326830]: fatal: failed to write commit object Jun 15 14:08:23 nebula gitea[3326830]: Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/web/repo/pull.go:1051 (0x202dc55) Jun 15 14:08:23 nebula gitea[3326830]: MergePullRequest: ctx.ServerError("Merge", err) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap_convert.go:47 (0x1f42296) Jun 15 14:08:23 nebula gitea[3326830]: convertHandler.func3: t(ctx) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:41 (0x1f404c9) Jun 15 14:08:23 nebula gitea[3326830]: wrapInternal.func1: done, deferrable := handler(resp, req, others...) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:442 (0x17339f5) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/middleware/get_head.go:37 (0x1fa67c4) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:63 (0x1f4094f) Jun 15 14:08:23 nebula gitea[3326830]: Middle.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/context/context.go:800 (0x1b1993a) Jun 15 14:08:23 nebula gitea[3326830]: Contexter.func1.1: next.ServeHTTP(ctx.Resp, ctx.Req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:71 (0x173182c) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:314 (0x17331db) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:442 (0x17339f5) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/web/base.go:173 (0x2178bb1) Jun 15 14:08:23 nebula gitea[3326830]: Recovery.func1.1: next.ServeHTTP(w, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/gitea.com/go-chi/session@v0.0.0-20211218221615-e3605d8b28b8/session.go:257 (0x152437d) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/wrap.go:110 (0x1f413e8) Jun 15 14:08:23 nebula gitea[3326830]: WrapWithPrefix.func1.1: next.ServeHTTP(resp, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:71 (0x173182c) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:314 (0x17331db) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:442 (0x17339f5) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/common/middleware.go:79 (0x1fabdc2) Jun 15 14:08:23 nebula gitea[3326830]: Middlewares.func2.1: next.ServeHTTP(resp, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/routing/logger_manager.go:123 (0x1f3c1ef) Jun 15 14:08:23 nebula gitea[3326830]: (*requestRecordsManager).handler.func1: next.ServeHTTP(w, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/middleware/strip.go:30 (0x1fa9538) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/chi-middleware/proxy@v1.1.1/middleware.go:37 (0x1fa5e36) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/routers/common/middleware.go:32 (0x1fabc12) Jun 15 14:08:23 nebula gitea[3326830]: Middlewares.func1.1: next.ServeHTTP(context.NewResponse(resp), req.WithContext(ctx)) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2084 (0x93f2ee) Jun 15 14:08:23 nebula gitea[3326830]: HandlerFunc.ServeHTTP: f(w, r) Jun 15 14:08:23 nebula gitea[3326830]: /home/buildusr/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.7/mux.go:88 (0x17317e1) Jun 15 14:08:23 nebula gitea[3326830]: /opt/gitea/gitea-src/modules/web/route.go:200 (0x1f3f90d) Jun 15 14:08:23 nebula gitea[3326830]: (*Route).ServeHTTP: r.R.ServeHTTP(w, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:2916 (0x9428da) Jun 15 14:08:23 nebula gitea[3326830]: serverHandler.ServeHTTP: handler.ServeHTTP(rw, req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/net/http/server.go:1966 (0x93dd96) Jun 15 14:08:23 nebula gitea[3326830]: (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req) Jun 15 14:08:23 nebula gitea[3326830]: /usr/lib/go/src/runtime/asm_amd64.s:1571 (0x474260) Jun 15 14:08:23 nebula gitea[3326830]: goexit: BYTE $0x90 // NOPhad the
.gitconfignot been pulled and created completely anew elsewhere, this wouldn't have happened. at least I was able to "fix" it.to document fully what I did to fix this:
repos/.gnupgandrepos/.gitconfigrepos/.gnupgandrepos/.gitconfig.gitconfig,.gitattributesand the whole.gnupgfolder fromgiteauser's home folder toREPO_ROOT_PATH(which to me is just./repos)@wxiaoguang commented on GitHub (Jun 15, 2022):
That
.sshdirectory at the moment doesn't take effect. The SSH home directory is another complex problem (and it seems more complex than git home directory which has been very complex). Maybe it will take more time to be improved.sadly ... yes, so the PR has been marked as
breaking, there will be a eye-catching notice in the release notes when 1.17 is released.@wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf commented on GitHub (Jun 15, 2022):
right, will be on the lookout for those changes 🦅
well, I am running master in prod so that's on me to deal with it as it happens. 🙈
perhaps a couple of additional points could be added to the release notes on how to resolve the situation, at least for other operators' sake.
@wxiaoguang commented on GitHub (Jul 8, 2022):
Sorry for bothering, I'd like to announce a breaking change between 1.17rc1 and next release.
In 1.17rc1, the Git HOME was
[repository].ROOT, which is not good and may cause problems.So in next release, the PR #20114 introduced a new option
[git].HOME_PATH, which is default to %(APP_DATA_PATH)/home.After upgrading, ⚠️DO REMEMBER⚠️ to backup and remove the legacy
.gitconfig,.ssh,.gnupgfile/directories in the legacy[repository].ROOTpath, and move the.gnupgto the new home, to avoid potential security problems.Sorry for the inconvenience. 🙏
@wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf commented on GitHub (Jul 9, 2022):
so to make sure I understand,
.gitconfiget al. should be moved from[repository].ROOT(where it had to be moved recently) to%(APP_DATA_PATH)/home?that is, from
~/.gitconfiget al. at first sitting plainly in Gitea user's home folder (e.g./home/gitea/or/var/lib/gitea) those now need to be moved into%(APP_DATA_PATH)/home, which for me would bedata/home?what would happen if I set the newly created
[git].HOME_PATHto thegiteauser's$HOME? would that help mimic the old-old behaviour or is it more hassle than it's worth?just as an aside, how have we arrived at this particular (
%(APP_DATA_PATH)/home) path?is there a tl;dr or do I have to sift through the chat logs (might be handy to archive key excerpts of conversations as part(s) of commit messages in case the chat service ever died...)?
I'll probably try my old trick - symlinking relevant files/folders in there, it worked last time.
in case there are any arguments against that, I'd be glad to know.
@wxiaoguang commented on GitHub (Jul 9, 2022):
Yes
That's fine, setting the git.HOME_PATH to the existing git home also works and then you need to do nothing more to upgrade from 1.16.x
symlinking is also fine.
the full story is pretty long:
repository.ROOTis not ideal (indeed, it will be incorrect in the end)git.HOME_PATHcomes@wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf commented on GitHub (Jul 9, 2022):
thanks for the reply @wxiaoguang, that's a rather lengthy process..
still, I am glad it's configurable in the end.
for anyone interested, I just tried replicating the original way of doing things (now I sound old-manish) by simply setting
[git].HOME_PATHto$HOMEof usergitea(/var/lib/giteain my case) and it worked (tried merging w/ signed commits in the webUI) perfectly the first time 🚀did't even need to symlink anything anywhere.
@justusbunsi commented on GitHub (Jul 9, 2022):
That was the plan. 👍
@AstroGD commented on GitHub (Dec 7, 2022):
Hey there,
I'm having the exact same issue described here and I tried everything mentioned here but Ijust can't get signing to work.
I have generated a gpg key (
gpg --list-keysshows the key)I added the last 8 characters of the fingerprint to the git config which looks like this:
I added the respective config to
app.ini:My
[git].HOME_PATHis set to/data/gitea/home/and contains both .gitconfig file and .gnupg folderMy
[repository].ROOTis set to/data/git/repositoriesand contains symlinks to both .gitconfig file and .gnupg folderI also symlinked both to /root so that
git -lshows the correct configI generated the pgp key using
gpg --gen-keywithout a passphrase and the same name and email as set in configEvery time I try to sign something using the Web UI I get an error code 405 and the following error within logs:
I am running gitea using docker and docker-compose. This is my docker-compose.yml:
This is the only issue or mention I could find that somewhat mentions my problem.
Is there something I'm missing or doing wrong?