Gitlabs升级:在某些页面上出现500错误

时间:2014-03-22 20:24:05

标签: git unicorn gitlab

我在某些网页上收到500错误。以下是一些示例:/ u / root,/ merge_requests?assignee_id =& label_name =& milestone_id =& scope = created-by-me& sort = newest& state = closed,/ admin

更新

以下是两个表格列的图片: http://imageupper.com/gi/?galID=S0200010053W139568325644090&n=1&m=1

更新 我已经进入日志并发现这个视图之一,我得到500错误:

Started GET "/admin" for 127.0.0.1 at 2014-03-24 14:26:02 -0400
Processing by Admin::DashboardController#index as HTML
  Rendered admin/dashboard/index.html.haml within layouts/admin (16.3ms)
Completed 500 Internal Server Error in 19ms

ActionView::Template::Error (undefined method `path' for nil:NilClass):
    36:       %hr
    37:       - @projects.each do |project|
    38:         %p
    39:           = link_to project.name_with_namespace, [:admin, project], class: 'str-truncated'
    40:           %span.light.pull-right
    41:             #{time_ago_with_tooltip(project.created_at)}
    42:
  app/models/project.rb:250:in `to_param'
  app/views/admin/dashboard/index.html.haml:39:in `block in _app_views_admin_dashboard_index_html_haml__4544594                                                                                                                                                                248014738902_70143663654700'
  app/views/admin/dashboard/index.html.haml:37:in `_app_views_admin_dashboard_index_html_haml__4544594248014738                                                                                                                                                                902_70143663654700'
  app/controllers/application_controller.rb:58:in `set_current_user_for_thread'

1 个答案:

答案 0 :(得分:2)

如果NULL表中的路径有namespaces,请不要删除它。可能有项目引用它id。 给path一个你觉得舒服的价值。当我们进行切换时,我们只将公司名称放在我们的公司名称中。 类似的东西:

update namespaces set path = 'sixfoot' where path is null;

这可能会解决您的问题。

如果NULL的项目表中有namespace_id个值,则在GitLab中创建一个名称空间,然后update projects set namespace_id={id the new namespace};

这可能无法解决您的所有升级问题,但它应该会在视图中再次显示链接,而不会显示500。