git push origin feature,but GetBranchCommit, packfile not found #13183

Closed
opened 2025-11-02 10:33:57 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @sunjun0207 on GitHub (Jun 21, 2024).

Description

gitea 管理后台的代码仓库无法访问

Gitea Version

1.21.10

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

http://192.168.3.234:3000

Screenshots

Snipaste_2024-06-21_11-38-11

Git Version

2.28.0.windows.1

Operating System

windows10 enterprise

How are you running Gitea?

gitea.exe

Database

None

Originally created by @sunjun0207 on GitHub (Jun 21, 2024). ### Description gitea 管理后台的代码仓库无法访问 ### Gitea Version 1.21.10 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist http://192.168.3.234:3000 ### Screenshots ![Snipaste_2024-06-21_11-38-11](https://github.com/go-gitea/gitea/assets/65707064/a5cc87df-719d-4125-b5ea-0a989324685c) ### Git Version 2.28.0.windows.1 ### Operating System windows10 enterprise ### How are you running Gitea? gitea.exe ### Database None
GiteaMirror added the issue/needs-feedbacktype/bugtype/upstreamissue/workaround labels 2025-11-02 10:33:57 -06:00
Author
Owner

@lunny commented on GitHub (Aug 18, 2024):

Can you try upgrade to a new version like 1.22.1 and you can also try sync branches on the admin panel.

@lunny commented on GitHub (Aug 18, 2024): Can you try upgrade to a new version like 1.22.1 and you can also try `sync branches` on the admin panel.
Author
Owner

@ikvm commented on GitHub (Sep 3, 2024):

出现了同样的问题,版本是1.21.4,升级到1.22.1并执行 "将缺少的分支从 git 数据同步到数据库" 还是一样的错误

2024/09/03 11:59:43 ...ices/context/repo.go:944:func89() [E] GetBranchCommit: packfile not found
2024/09/03 11:59:43 ...eb/routing/logger.go:102:func1() [I] router: completed GET /xx/xxxx for 192.168.1.146:64255, 500 Internal Server Error in 25.9ms @ context/repo.go:889(web.registerRoutes.RepoRef.RepoRefByType)

@ikvm commented on GitHub (Sep 3, 2024): 出现了同样的问题,版本是1.21.4,升级到1.22.1并执行 "将缺少的分支从 git 数据同步到数据库" 还是一样的错误 2024/09/03 11:59:43 ...ices/context/repo.go:944:func89() [E] GetBranchCommit: packfile not found 2024/09/03 11:59:43 ...eb/routing/logger.go:102:func1() [I] router: completed GET /xx/xxxx for 192.168.1.146:64255, 500 Internal Server Error in 25.9ms @ context/repo.go:889(web.registerRoutes.RepoRef.RepoRefByType)
Author
Owner

@lunny commented on GitHub (Sep 3, 2024):

What's the Gitea's installation details? Which OS and DB and etc.?

@lunny commented on GitHub (Sep 3, 2024): What's the Gitea's installation details? Which OS and DB and etc.?
Author
Owner

@ikvm commented on GitHub (Sep 3, 2024):

Git Version
2.9.3.windows.1

Operating System
windows 2019 server datacenter

How are you running Gitea?
gitea.exe as windows service

Database
Sqlite

@ikvm commented on GitHub (Sep 3, 2024): Git Version 2.9.3.windows.1 Operating System windows 2019 server datacenter How are you running Gitea? gitea.exe as windows service Database Sqlite
Author
Owner

@lunny commented on GitHub (Sep 3, 2024):

Some refs

https://github.com/go-gitea/gitea/issues/8330#issuecomment-538737514
https://github.com/src-d/go-git/issues/1223
https://github.com/src-d/go-git/pull/1153

In summary, you can try to run the command git gc in the bare repositories to fix it.

This should be fixed by https://github.com/go-git/go-git/pull/6 but I don't know why it occupied again.

@lunny commented on GitHub (Sep 3, 2024): Some refs https://github.com/go-gitea/gitea/issues/8330#issuecomment-538737514 https://github.com/src-d/go-git/issues/1223 https://github.com/src-d/go-git/pull/1153 In summary, you can try to run the command `git gc` in the bare repositories to fix it. This should be fixed by https://github.com/go-git/go-git/pull/6 but I don't know why it occupied again.
Author
Owner

@GiteaBot commented on GitHub (Oct 4, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Oct 4, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13183