# Some branches have disappeared from the GUI

**URL:** <https://forum.gitea.com/t/some-branches-have-disappeared-from-the-gui/8278>\
**Category:** Gitea Usages\
**Created:** [December 12, 2023, 4:37pm UTC](https://forum.gitea.com/t/some-branches-have-disappeared-from-the-gui/8278 "2023-12-12T16:37:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raptyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/raptyk/32/4259_2.png) [@raptyk](https://forum.gitea.com/u/raptyk)\
**Post date:** [December 12, 2023, 4:37pm UTC](https://forum.gitea.com/t/some-branches-have-disappeared-from-the-gui/8278/1 "2023-12-12T16:37:28Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [December 19, 2023, 10:47am UTC](https://forum.gitea.com/t/some-branches-have-disappeared-from-the-gui/8278/2 "2023-12-19T10:47:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [November 14, 2024, 7:42pm UTC](https://forum.gitea.com/t/some-branches-have-disappeared-from-the-gui/8278/3 "2024-11-14T19:42:34Z")

</div>


