Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
sunjun0207 opened this issue Jun 21, 2024 · 6 comments
Closed

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

sunjun0207 opened this issue Jun 21, 2024 · 6 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail issue/workaround it is or has a workaround type/bug type/upstream This is an issue in one of Gitea's dependencies and should be reported there

Comments

@sunjun0207
Copy link

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

@lunny
Copy link
Member

lunny commented 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 lunny added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Aug 18, 2024
@ikvm
Copy link

ikvm commented 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)

@lunny
Copy link
Member

lunny commented Sep 3, 2024

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

@ikvm
Copy link

ikvm commented 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

@lunny
Copy link
Member

lunny commented Sep 3, 2024

Some refs

#8330 (comment)
src-d/go-git#1223
src-d/go-git#1153

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

This should be fixed by go-git/go-git#6 but I don't know why it occupied again.

@lunny lunny added type/upstream This is an issue in one of Gitea's dependencies and should be reported there issue/workaround it is or has a workaround labels Sep 3, 2024
@GiteaBot
Copy link
Collaborator

GiteaBot commented Oct 4, 2024

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

@GiteaBot GiteaBot closed this as completed Oct 4, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jan 2, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail issue/workaround it is or has a workaround type/bug type/upstream This is an issue in one of Gitea's dependencies and should be reported there
Projects
None yet
Development

No branches or pull requests

4 participants