2

私は GitLab の管理に比較的慣れていないため、git リポジトリをホストするインスタンスを 12 個ほど継承しました。プロジェクト内から「ブランチ」をクリックすると 404 がスローされるという不満を聞いています。production.log で 500 がスローされるようです。ただし、一部のプロジェクトのみです。他のプロジェクトは正常に動作しますが、一部のプロジェクトでは発生し、他のプロジェクトでは発生しない理由についてのパターンを見つけることができません。私が見る限り、名前に「#」または 2 つの「/」が含まれるブランチはありません。

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'

実行しているものは次のとおりです。

$ 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

コミットが 1 つ遅れていると表示されていることに気付きました。更新は、「git pull」を実行してから nginx と gitlab を再起動するのと同じくらい簡単ですか?

前もって感謝します。また、初心者の gitlab の経験についてお詫び申し上げます。

4

2 に答える 2

2

https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/6.0-to-6.2.mdの非常に詳細な手順を使用して、6.0.0-ee から 6.2.0-ee にアップグレードしました。

それは疑わしいほどスムーズに進みました。しかし今では、404 を返していたプロジェクトがブランチのリストを返すようになりました。

于 2013-11-08T20:07:30.313 に答える
0

実行してください:sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

赤いチェックマークがあれば教えてください。

于 2013-11-01T13:24:20.600 に答える