2016-04-11 14 views
1
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' 
    app/models/repository.rb:8:in `initialize' 
    app/models/project.rb:253:in `new' 
    app/models/project.rb:253:in `repository' 
    app/models/project.rb:404:in `avatar_in_git' 
    app/models/project.rb:413:in `avatar_url' 
    app/helpers/application_helper.rb:61:in `project_icon' 
    app/views/shared/_project.html.haml:5:in `block (2 levels) in _app_views_shared__project_html_haml___4171809592989195492_70176660229160' 
    app/helpers/application_helper.rb:269:in `link_to' 
    app/views/shared/_project.html.haml:2:in `block in _app_views_shared__project_html_haml___4171809592989195492_70176660229160' 
    app/views/shared/_project.html.haml:1:in `_app_views_shared__project_html_haml___4171809592989195492_70176660229160' 
    app/views/shared/_projects_list.html.haml:7:in `block in _app_views_shared__projects_list_html_haml___3310974999606980684_70176659407820' 
    app/views/shared/_projects_list.html.haml:5:in `_app_views_shared__projects_list_html_haml___3310974999606980684_70176659407820' 
    app/views/dashboard/_projects.html.haml:10:in `_app_views_dashboard__projects_html_haml__3957146042345681353_70176659279280' 
    app/views/dashboard/_sidebar.html.haml:1:in `_app_views_dashboard__sidebar_html_haml___3949888724273406580_70176659220240' 
    app/views/dashboard/show.html.haml:6:in `_app_views_dashboard_show_html_haml__1251679391223568048_70176658638540' 
    app/controllers/dashboard_controller.rb:11:in `show' 
+0

Sorunuz bir soru değil adımları tekrarlayın. Spam gibi görünüyor. Yani, lütfen düzenleyin ya da moderatörler için kapatılmadan önce kaldırın. Http://stackoverflow.com/help/how-to-ask adresine bakın. –

cevap

4

500 hatayı gösteren aşağıdaki

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 !!!