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
  • #3350

Closed
Open
Created Mar 24, 2013 by Administrator@rootOwner

500 Errors after creating a repo and doing initial commit

Created by: szaydel

I seem to get 500 Errors when I create a repo and then attempt to browse it. However, underlying commits are successful. So, ssh and git obviously work, based on what I am seeing. Hoping maybe this snippet will give a clue.

I see this in production.log:

Started GET "/sparkleshare/szaydel-docs" for 127.0.0.1 at 2013-03-24 15:09:10 -0700
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"sparkleshare/szaydel-docs"}
Completed 500 Internal Server Error in 118ms

NoMethodError (undefined method `>>' for "x":String):
  app/models/commit.rb:22:in `find_or_first'
  app/models/repository.rb:38:in `commit'
  app/models/repository.rb:101:in `has_commits?'
  app/models/repository.rb:107:in `empty?'
  app/controllers/projects_controller.rb:60:in `block (2 levels) in show'
  app/controllers/projects_controller.rb:58:in `show'
Assignee
Assign to
Time tracking