When I was creating a merge commit in gitea for Windows, the following error occurred: server error: 500

I’m using gitea 1.23.1 for Windows , and add a Branch protection rule .

  • I have set “Require Signed Commits” for the rule.
  • I installed gpg4win-4.3.1 , generated rsa key, and set SIGNING_KEY / SIGNING_NAME / SIGNING_EMAIL in app.ini .
  • I have set GNUPGHOME=C:\Users\benc\AppData\Roaming\gnupg
    But when I created a new branch , and tried to “Create merge commit” ,
    error occurred “server error: 500” on web page , and the following error occurred in logs.

Did I make any mistakes in my settings?

btw: the following lockfile path seems so strange :
‘C:\Users\benc\AppData\Roaming\gnupg/gnupg_spawn_keyboxd_sentinel.lock’

error: gpg failed to sign the data:
gpg: invalid size of lockfile ‘C:\Users\benc\AppData\Roaming\gnupg/gnupg_spawn_keyboxd_sentinel.lock’
gpg: cannot read lockfile
gpg: can’t connect to the keyboxd: Invalid argument
gpg: error opening key DB: No Keybox daemon running
gpg: skipped “B34EC68C64F34486”: Input/output error
[GNUPG:] INV_SGNR 0 B34EC68C64F34486
[GNUPG:] FAILURE sign 33587249
gpg: signing failed: Input/output error