上周我更新到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安装是一个默认安装,除了我使用unicorn与Apache代理而不是nginx。
更新:在此期间,我发现没有创建回购。 澄清了错误消息,但为什么没有创建存储库?
Last week i updated to GitLab 5.0. All previous existing projects are working fine when trying to edit them.
Today i created a new one and everything also seemed to work fine. Then i wanted to add a member to my project and checked the settings page and everything i got was An Internal Server Error (500).
The only log i've found was in 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'But what does this mean?
I already tried to recreate the project but this leads to the same error. My Gitlab installation is a default one except that i'm using unicorn with Apache Proxy instead of nginx.
UPDATE: In the meantime i figured out that the repo wasn't created. The clarifies the error message but why is the repository not created?
最满意答案
一个月前有一个类似的错误 。
对不起,我觉得sidekiq失败了...我重新启动了gitlab和nginx - >现在它可以工作了。
所以:
检查你的sidekiq是否已启动 如果您有一个非常新版本的GitLab,请检查您的GitLab init.d脚本( 最近为puma更改了unicorn )在这种情况下,sidekiq已关闭,但是必须重新启动服务器本身才能使项目的设置页面再次可用。
There was a recent similar bug a month ago.
Sorry, I think sidekiq was down... I've restart gitlab and nginx -> Now it works.
so:
check if your sidekiq is up if you have a really recent version of GitLab, check your GitLab init.d script (which recently changed unicorn for puma)In this case, sidekiq was down, but a complete restart of the server itself was necessary for the setting page of the project to be available again.
更多推荐
发布评论