上週我更新了GitLab 5.0。所有以前的現有項目在嘗試編輯時都能正常工作。創建新項目後,GitLab 5.0在Project settings頁面上產生Error 500
今天我創建了一個新的,一切似乎也正常工作。然後,我想添加一個成員到我的項目,並檢查設置頁面,我得到的一切都是內部服務器錯誤(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代理而不是nginx使用獨角獸。
更新: 在此期間,我發現回購沒有創建。澄清錯誤消息,但爲什麼庫未創建?
那麼你是對的,sidekiq被關閉(它有時會關閉,我不知道爲什麼),但重新啓動sidekiq後它也無法正常工作。我使用Gitlab 5.0並檢查了init腳本 - 它使用獨角獸,而不是美洲獅。 – 2013-04-10 08:49:48
@ mr.VVoo 5.0仍然使用獨角獸。你現在可以進行更多的測試,看看你的sidekiq了嗎?你可以關閉並重新啓動一切,看看問題是否依然存在?你可以嘗試在新項目中添加一個成員嗎? – VonC 2013-04-10 08:57:48
與此同時,我發現回購沒有創建。 – 2013-04-10 08:59:55