Last week i updated to GitLab 5.0. All previous existing projects are working fine when trying to edit them.
上周我更新到了GitLab 5.0。在尝试编辑之前的所有项目时都运行良好。
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).
今天我创造了一个新的,一切似乎都很顺利。然后我想在我的项目中添加一个成员并检查设置页面,我得到的一切都是一个内部服务器错误(500)。
The only log i've found was in production.log:
我找到的唯一的日志是在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.
我已经尝试重新创建项目,但这导致了相同的错误。我的Gitlab安装是默认的,只是我使用的是带有Apache代理的unicorn,而不是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?
更新:与此同时,我发现repo并没有创建。澄清了错误消息,但是为什么没有创建存储库?
2 个解决方案
#1
3
There was a recent similar bug a month ago.
一个月前有一个类似的错误。
Sorry, I think sidekiq was down... I've restart gitlab and nginx -> Now it works.
对不起,我想sidekiq网站已经瘫痪了……我重新启动了gitlab和nginx ->,现在它工作了。
so:
所以:
- check if your sidekiq is up
- 检查一下你的餐具是否准备好了
- if you have a really recent version of GitLab, check your GitLab
init.d
script (which recently changedunicorn
forpuma
) - 如果你有一个最新版本的GitLab,检查你的GitLab init。d脚本(最近将unicorn换成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.
在这种情况下,sidekiq已经关闭,但是要使项目的设置页面再次可用,必须完全重新启动服务器本身。
#2
1
We encountered a similer problem with wrong permissions.
我们遇到了一个权限错误的类似问题。
You should check the permissions of /home/git/repositories. Maybe the git process is not allowed to create folders/files in there.
您应该检查/home/git/ repository的权限。可能git进程不允许在其中创建文件夹/文件。
#1
3
There was a recent similar bug a month ago.
一个月前有一个类似的错误。
Sorry, I think sidekiq was down... I've restart gitlab and nginx -> Now it works.
对不起,我想sidekiq网站已经瘫痪了……我重新启动了gitlab和nginx ->,现在它工作了。
so:
所以:
- check if your sidekiq is up
- 检查一下你的餐具是否准备好了
- if you have a really recent version of GitLab, check your GitLab
init.d
script (which recently changedunicorn
forpuma
) - 如果你有一个最新版本的GitLab,检查你的GitLab init。d脚本(最近将unicorn换成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.
在这种情况下,sidekiq已经关闭,但是要使项目的设置页面再次可用,必须完全重新启动服务器本身。
#2
1
We encountered a similer problem with wrong permissions.
我们遇到了一个权限错误的类似问题。
You should check the permissions of /home/git/repositories. Maybe the git process is not allowed to create folders/files in there.
您应该检查/home/git/ repository的权限。可能git进程不允许在其中创建文件夹/文件。