Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #188

Closed
Open
Created Dec 12, 2011 by Administrator@rootOwner

Error 500 on dashboard with no projects (master with ruby 1.9.3-p0)

Created by: bjorngylling

Looks like the new(?) dashboard crashes when there are no activity on any projects in the system yet? I did a fresh install and I've added a project but without any activity on it this shows up in my log and a friendly 500 page greets me in the browser.

Rendered dashboard/index.html.haml within layouts/application (6.0ms)
Completed 500 Internal Server Error in 10ms

ActionView::Template::Error (/home/gitlabhq/gitlabhq/app/views/dashboard/index.html.haml:24: syntax error, unexpected keyword_do_block
/home/gitlabhq/gitlabhq/app/views/dashboard/index.html.haml:27: syntax error, unexpected keyword_do_block, expecting keyword_end
 project.updates(3).each do |update|
                           ^
/home/gitlabhq/gitlabhq/app/views/dashboard/index.html.haml:43: syntax error, unexpected keyword_ensure, expecting $end
...:Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer....
...                               ^):
    21:       Dashboard
    22:     - @active_projects.first(3).each do |project|
    23:       .project-box.project-updates.ui-box.ui-box-small.ui-box-big
    24:         = link_to project, do 
    25:           %h3= project.name
    26:           .data
    27:             - project.updates(3).each do |update|
  app/controllers/dashboard_controller.rb:8:in `index'

After pushing a few commits to the project I added this error still seems to show up.

Assignee
Assign to
Time tracking