创建新项目后,GitLab 5.0在项目设置页面上生成错误500(GitLab 5.0 produces Error 500 on Project settings page after creati

编程入门 行业动态 更新时间:2024-10-25 17:16:32
创建新项目后,GitLab 5.0在项目设置页面上生成错误500(GitLab 5.0 produces Error 500 on Project settings page after creating new Project)

上周我更新到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.

更多推荐

本文发布于:2023-08-07 18:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465521.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:新项目   错误   页面   项目   GitLab

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!