[6.1] Error 500 when accessing project.
Created by: Techbrunch
I cannot access one of our project on Gitlab. It throw an error 500.
Error in production log :
Started GET "/applications/******" for 127.0.0.1 at 2013-10-01 15:24:32 +0000
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"applications/*********"}
Rendered shared/_clone_panel.html.haml (0.7ms)
Rendered projects/_clone_panel.html.haml (118.9ms)
Rendered projects/show.html.haml within layouts/projects (119.3ms)
Completed 500 Internal Server Error in 175ms
ActionView::Template::Error (undefined method `[]' for nil:NilClass):
27: %ul.dropdown-menu
28: - if @project.issues_enabled && can?(current_user, :write_issue, @project)
29: %li
30: = link_to url_for_new_issue, title: "New Issue" do
31: Issue
32: - if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
33: %li
app/helpers/issues_helper.rb:34:in `url_for_new_issue'
app/views/projects/_clone_panel.html.haml:30:in `_app_views_projects__clone_panel_html_haml___722232325_78124400'
app/views/projects/show.html.haml:1:in `_app_views_projects_show_html_haml___30325767_82043640'
app/controllers/projects_controller.rb:73:in `block (2 levels) in show'
app/controllers/projects_controller.rb:67:in `show'
Checking Environment ...
Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 1.7.1 ? ... OK (1.7.1)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ...
[...] ok
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Checking Sidekiq ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ...
[...] yes
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.2)
Checking GitLab ... Finished
System information
System: Debian 6.0.7
Current User: git
Using RVM: no
Ruby Version: 1.9.3p392
Gem Version: 1.8.23
Bundler Version:1.3.5
Rake Version: 10.1.0
GitLab information
Version: 6.1.0
Revision: e4ba934
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://*****
HTTP Clone URL: http://****/some-project.git
SSH Clone URL: git@****:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.7.1
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git