Some branches have disappeared from the GUI

I am in the process of migrating from the old gitolite3 repository to gitea.

I have migrated 8 repositories correctly however with 3 I have a problem. The problem is that in the Gitea GUI and in the postgress database in the “branch” table I see only a few of the dozen branches. These branches are present after downloading the code from the new gitea repository however I can’t see them in the GUI.

Running the “Sync missed branches from git data to databases” option doesn’t help, and I only see a few errors in the logs:

2023/12/12 17:32:54 …repository/branch.go:384:handlerBranchSync() [E] syncRepoBranches [32] failed: pq: invalid byte sequence for encoding “UTF8”: 0xea 0x6b 0x73
2023/12/12 17:32:54 …repository/branch.go:384:handlerBranchSync() [E] syncRepoBranches [24] failed: pq: invalid byte sequence for encoding “UTF8”: 0xbf

In a nutshell what I did:

  1. I downloaded the old repository to a local drive along with all the branches.
  2. I added a second origin pointing to the gitea server in the same directory.
  3. I uploaded all the branches to the new gitea repository.
  4. in the GUI I see only a few branches, after downloading from the new repo I see all the branches.

I suspect this has to do with coding some commit or other special character topics. How to solve this problem?

I think 1.21.2 has fixed that? Or maybe you can wait for coming 1.21.3.