gpt4 book ai didi

Gitlab存储库错误找不到包条目

转载 作者:行者123 更新时间:2023-12-03 09:16:50 25 4
gpt4 key购买 nike

Gitlab 存储库已损坏。在前端收到 500 内部服务器错误。

Started GET "/" for 127.0.0.1 at 2016-04-11 16:22:02 +0530
Processing by DashboardController#show as HTML
Read fragment views/projects/44-20160408141103000000000/dashboard/show/cc53ca8d7b83612d3f40df2a690c7950 (0.1ms)
Completed 500 Internal Server Error in 27ms

ActionView::Template::Error (Object not found - failed to find pack entry (509db335d2df02b878c18e1a6fe84393da6978c1)):
2: = link_to project_path(project), class: dom_class(project) do
3: - if avatar
4: .dash-project-avatar
5: = project_icon(project, alt: '', class: 'avatar project-avatar s40')
6: .dash-project-access-icon
7: = visibility_level_icon(project.visibility_level)
8: %span.str-truncated
app/models/repository.rb:8:in `new'

最佳答案

执行以下步骤

1. # cd gitlab/repositories/<namespace>/<reponame>.git 

2. # git fsck
If any error like below
error: object file objects/11/fbf0dfb1a54283e84044b5e99230efbafd77d8 is empty
error: object file objects/11/fbf0dfb1a54283e84044b5e99230efbafd77d8 is empty
fatal: loose object 11fbf0dfb1a54283e84044b5e99230efbafd77d8 (stored in objects/11/fbf0dfb1a54283e84044b5e99230efbafd77d8) is corrupt

3. # find . –size 0 –delete
This will delete all files which has 0 byte size and corrupt

4. # git fsck
Checking object directories: 100% (256/256), done.
Checking objects: 100% (4970/4970), done.
error: HEAD: not a commit
error: refs/heads/master: not a commit
dangling commit de516dd3d99d13147b6e2f946fe5b8c0660e4eed

5. Try to push code from local without add and commit
# git push origin <branch>
If got below error
remote: error: Could not read 5329f756010fad47026f112dc7126bdaa2f9ad7f
remote: fatal: Failed to traverse parents of commit 8eecd866caa916a3b2e8550153f0bb5a54a28919
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

6. Go to cd gitlab/repositories/<namespace>/<reponame>.git
# rm –fr ref/head/<branchname>
# git fsck
notice: HEAD points to an unborn branch (master)
Checking object directories: 100% (256/256), done.
notice: No default references
dangling commit eb84ebc9010ea3d3d5646b4eab1bacd358178fbd

7. Try to push code from local without add and commit
# git push origin <branch>

Done your code updated successfully !!!

关于Gitlab存储库错误找不到包条目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36546774/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com