3

上周我更新到 GitLab 5.0。尝试编辑它们时,所有以前的现有项目都可以正常工作。

今天我创建了一个新的,一切似乎也运行良好。然后我想在我的项目中添加一个成员并检查设置页面,我得到的一切都是内部服务器错误(500)。

我发现的唯一日志在 production.log 中:

Completed 500 Internal Server Error in 95ms

ActionView::Template::Error (undefined method `heads' for nil:NilClass):
    36:                   .input
    37:                     = f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250
    38: 
    39:                 - unless @repository.heads.empty?
    40:                   .clearfix
    41:                     = f.label :default_branch, "Default Branch"
    42:                     .input= f.select(:default_branch, @repository.heads.map(&:name), {}, style: "width:210px;")
  app/views/projects/_form.html.haml:39:in `block in _app_views_projects__form_html_haml__2678582515483350008_62614560'
  app/views/projects/_form.html.haml:17:in `_app_views_projects__form_html_haml__2678582515483350008_62614560'
  app/views/projects/edit.html.haml:6:in `_app_views_projects_edit_html_haml___3552883863573912945_62197460'

但是,这是什么意思?

我已经尝试重新创建项目,但这会导致同样的错误。我的 Gitlab 安装是默认安装,除了我使用 Apache Proxy 而不是 nginx 的独角兽。

更新: 与此同时,我发现没有创建回购。澄清了错误消息,但为什么没有创建存储库?

4

2 回答 2

3

一个月前最近有一个类似的错误。

抱歉,我认为 sidekiq 已关闭...我已重新启动 gitlab 和 nginx -> 现在它可以工作了。

所以:


在这种情况下,sidekiq 已关闭,但需要完全重新启动服务器本身才能使项目的设置页面再次可用。

于 2013-04-10T07:45:23.297 回答
1

我们遇到了权限错误的类似问题。

您应该检查 /home/git/repositories 的权限。也许 git 进程不允许在那里创建文件夹/文件。

于 2013-04-10T09:01:28.890 回答