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

Closed
Open
Created May 17, 2013 by Administrator@rootOwner

HTTP 500 Retrieving commit info after import of existing repo.

Created by: nielsbasjes

[Using branch 5-1-stable] I create a new project called "gitlabhq" (under my own namespace 'niels') and import it from the existing repository https://github.com/gitlabhq/gitlabhq.git

After a minute or so the pull is completed and the project is created. When I then click on the "Files" tab the message "Loading commit data" is 'stuck'.

It turns out that the call to this URL results in a HTTP 500 error: http://blaster.lan.basjes.nl/niels/gitlabhq/refs/master/logs_tree/?_=1368821877421

I checked to see if the repo in /home/git/gitlab-satellites/niels/gitlabhq and this looks fine to me (I can to a "git log" and see the commit info) .

The messages in the log/production.log:

Started GET "/niels/gitlabhq/refs/master/logs_tree/?_=1368821877421" for 127.0.0.1 at 2013-05-17 22:17:55 +0200
Processing by RefsController#logs_tree as JS
  Parameters: {"_"=>"1368821877421", "project_id"=>"niels/gitlabhq", "id"=>"master"}
  Rendered refs/logs_tree.js.haml (0.7ms)
Completed 500 Internal Server Error in 108ms

ActionView::Template::Error (undefined method `committed_date' for nil:NilClass):
    4:
    5:   :plain
    6:     var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}");
    7:     row.find("td.tree_time_ago").html('#{escape_javascript time_ago_in_words(commit.committed_date)} ago');
    8:     row.find("td.tree_commit").html('#{escape_javascript render("tree/tree_commit_column", commit: commit)}');
  app/views/refs/logs_tree.js.haml:7:in `block in _app_views_refs_logs_tree_js_haml___1621523469171468613_70066687766560'
  app/views/refs/logs_tree.js.haml:1:in `each'
  app/views/refs/logs_tree.js.haml:1:in `_app_views_refs_logs_tree_js_haml___1621523469171468613_70066687766560'
Assignee
Assign to
Time tracking