无法保存项目。 (错误500)

时间:2013-12-24 16:49:32

标签: gitlab

当我尝试创建新项目时,gitlab(v 6.3.0)显示了500错误页面。

Gitlab日志:

==> production.log <==
Started POST "/projects" for xx.xx.xx. at 2013-12-22 22:28:29 +0000
Processing by ProjectsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"dJm8MC7Za8d+kJjCdUe88O2nzS1g7bW8uHLpQ08h+Y8=", "project"=>{"name"=>"test2", "path"=>"", "namespace_id"=>"1", "import_url"=>"", "description"=>""}, "commit"=>"Create project"}
Completed 500 Internal Server Error in 136.5ms

NoMethodError (undefined method errors' for nil:NilClass):
app/contexts/projects/create_context.rb:60:inrescue in execute'
app/contexts/projects/create_context.rb:9:in execute'
app/controllers/projects_controller.rb:23:increate'
app/controllers/application_controller.rb:54:in `set_current_user_for_thread'

我知道,gitlab正试图执行这一行:

@project.errors.add(:base, "Can't save project. Please try again later")

Gitlab不会在存储库路径中创建存储库。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

通过将gitlab升级到版本6.4.3

来解决此问题