Gitlab-点击;“分行”;从项目中返回404

Gitlab-点击;“分行”;从项目中返回404,gitlab,Gitlab,我在管理GitLab方面相对较新,我继承了十几个承载git repos的实例。我听到有人抱怨说,在项目中点击“分支”会抛出404。看起来它在production.log中抛出了一个500。不过,这只是在一些项目上。其他项目表现良好,但我无法找到一种模式来解释为什么它会发生在某些项目上,而不会发生在其他项目上。就我所知,我们没有在名称或两个“/”中带有“#”的分支机构 从nginx访问日志: 129.46.71.24 - - [31/Oct/2013:14:18:49 -0700] "GET /t

我在管理GitLab方面相对较新,我继承了十几个承载git repos的实例。我听到有人抱怨说,在项目中点击“分支”会抛出404。看起来它在production.log中抛出了一个500。不过,这只是在一些项目上。其他项目表现良好,但我无法找到一种模式来解释为什么它会发生在某些项目上,而不会发生在其他项目上。就我所知,我们没有在名称或两个“/”中带有“#”的分支机构

从nginx访问日志:

129.46.71.24 - - [31/Oct/2013:14:18:49 -0700] "GET /thirdparty/llvm-static-
artifacts/branches HTTP/1.1" 404 249 "https://gitlab.someurl.com/thirdparty/llvm-
static-artifacts/branches" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/30.0.1599.114 Safari/537.36"

129.46.71.24 - - [31/Oct/2013:14:18:49 -0700] "GET /thirdparty/llvm-static-
artifacts/branches HTTP/1.1" 404 249 "https://gitlab.someurl.com/thirdparty/llvm-
static-artifacts/branches" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/30.0.1599.114 Safari/537.36"
从production.log:

Started GET "/thirdparty/llvm-static-artifacts/branches" for 127.0.0.1 at 2013-10-31 
14:19:58 -0700
Processing by Projects::BranchesController#index as HTML
  Parameters: {"project_id"=>"thirdparty/llvm-static-artifacts"}
  Rendered shared/_ref_switcher.html.haml (1.8ms)
  Rendered projects/commits/_head.html.haml (4.5ms)
  Rendered projects/branches/_filter.html.haml (1.6ms)
  Rendered projects/branches/_branch.html.haml (4.3ms)
  Rendered projects/branches/_branch.html.haml (2.3ms)
  Rendered projects/branches/index.html.haml within layouts/projects (13.5ms)
Completed 500 Internal Server Error in 85ms

ActionController::RoutingError (No route matches {:action=>"destroy",   
:controller=>"projects/branches", :project_id=>#<Project id: 107, name:    
"llvm.static.artifacts", path: "llvm-static-artifacts", description: "", created_at: 
"2013-09-23 21:15:36", updated_at: "2013-10-07 21:56:28", creator_id: 7, default_branch: 
"feature/NEO-10669_clang_and_static_libcxx", issues_enabled: true, wall_enabled: false, 
merge_requests_enabled: true, wiki_enabled: true, namespace_id: 18, public: false, 
issues_tracker: "gitlab", issues_tracker_id: nil, snippets_enabled: false, 
last_activity_at: "2013-10-07 21:56:30", imported: false, import_url: "">, 
:id=>"feature/NEO-5388_update_nst_to_compile_with_llvm/clang32"}):
  app/views/projects/branches/_branch.html.haml:17:in  
`_app_views_projects_branches__branch_html_haml___758623504167079734_70006805062880'

  app/views/projects/branches/index.html.haml:9:in `block in 
_app_views_projects_branches_index_html_haml___1230313324773652987_70006835956360'
  app/views/projects/branches/index.html.haml:8:in `each'
  app/views/projects/branches/index.html.haml:8:in  
`_app_views_projects_branches_index_html_haml___1230313324773652987_70006835956360'


Started GET "/thirdparty/llvm-static-artifacts/branches" for 127.0.0.1 at 2013-10-31  
14:19:58 -0700
Processing by Projects::BranchesController#index as HTML
  Parameters: {"project_id"=>"thirdparty/llvm-static-artifacts"}
  Rendered shared/_ref_switcher.html.haml (1.8ms)
  Rendered projects/commits/_head.html.haml (4.4ms)
  Rendered projects/branches/_filter.html.haml (1.6ms)
  Rendered projects/branches/_branch.html.haml (4.2ms)
  Rendered projects/branches/_branch.html.haml (2.3ms)
  Rendered projects/branches/index.html.haml within layouts/projects (13.4ms)
Completed 500 Internal Server Error in 84ms

ActionController::RoutingError (No route matches {:action=>"destroy",  
:controller=>"projects/branches", :project_id=>#<Project id: 107, name:  
"llvm.static.artifacts", path: "llvm-static-artifacts", description: "", created_at:  
"2013-09-23 21:15:36", updated_at: "2013-10-07 21:56:28", creator_id: 7, default_branch: 
"feature/NEO-10669_clang_and_static_libcxx", issues_enabled: true, wall_enabled: false,  
merge_requests_enabled: true, wiki_enabled: true, namespace_id: 18, public: false, 
issues_tracker: "gitlab", issues_tracker_id: nil, snippets_enabled: false, 
last_activity_at: "2013-10-07 21:56:30", imported: false, import_url: "">, 
:id=>"feature/NEO-5388_update_nst_to_compile_with_llvm/clang32"}):
  app/views/projects/branches/_branch.html.haml:17:in  
`_app_views_projects_branches__branch_html_haml___758623504167079734_70006805062880'
  app/views/projects/branches/index.html.haml:9:in `block in   
_app_views_projects_branches_index_html_haml___1230313324773652987_70006835206340'
  app/views/projects/branches/index.html.haml:8:in `each'
  app/views/projects/branches/index.html.haml:8:in  
`_app_views_projects_branches_index_html_haml___1230313324773652987_70006835206340'
我意识到上面说我们落后了一步。更新会像只做一个“git拉动”然后重新启动nginx和gitlab一样简单吗


提前谢谢。对于gitlab的新手体验,我深表歉意。

您可以运行:
sudo-u git-H bundle exec rake gitlab:check RAILS\u ENV=production


请告诉我您是否看到红色支票?

我刚刚使用以下非常详细的说明从6.0.0-ee升级到6.2.0-ee:


事情进展得很顺利,令人怀疑。但是现在返回404的项目现在返回一个分支列表。

感谢您的回复。运行那个命令似乎没问题。没有红色的检查,只有一些紫色的检查,因为存储库是空的。这解决了问题。但提供的链接已断开。用这个代替:是的,链接又断了。在此处找到您的升级变体:
$ cat VERSION 
6.0.0-ee

$ git branch
  6-0-stable
* master

$ git status
# On branch master
# Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
#   (use "git pull" to update your local branch)
#
nothing to commit, working directory clean