Files tab log+view problem
Closed
Files tab log+view problem
Created by: Mika56
Hi,
I'm having some problems with my GitLab installation. Indeed, the files tab is not working very well.
When I go on that tab, it says "Loading commit data" but never loads anything. Logs says an error, but I don't know how to deal with it:
Started GET "/vgn/blog/refs/master/logs_tree/?_=1368221705998" for 79... at 2013-05-10 23:34:35 +0200
Processing by RefsController#logs_tree as JS
Parameters: {"_"=>"1368221705998", "project_id"=>"vgn/blog", "id"=>"master"}
Rendered refs/logs_tree.js.haml (0.6ms)
Completed 500 Internal Server Error in 128ms
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__208013548118956428_31246880'
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__208013548118956428_31246880'
Also, when I click any file or folder, the page doesn't load, and I get these errors in logs:
Started GET "/vgn/blog/tree/master/app?_=1368221812959" for 79... at 2013-05-10 23:36:22 +0200
Processing by TreeController#show as JS
Parameters: {"_"=>"1368221812959", "project_id"=>"vgn/blog", "id"=>"master/app"}
Rendered errors/not_found.html.haml within layouts/errors (0.2ms)
Rendered layouts/_head.html.haml (2.7ms)
Rendered layouts/_search.html.haml (24.9ms)
Rendered layouts/_init_auto_complete.html.haml (4.4ms)
Rendered layouts/_head_panel.html.haml (35.0ms)
Rendered layouts/_flash.html.haml (0.1ms)
Filter chain halted as :assign_ref_vars rendered or redirected
Completed 404 Not Found in 61ms (Views: 38.7ms | ActiveRecord: 2.5ms)
I'm using GitLab 5.1 and in sync with that branche (not master, sorry if it has been fixed in there)
I don't know if that problem is from my installation or GitLab related, so I posted it here since I'm not a Ruby developer
Mika.
Created by: hiroponz
Please see https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide.
By Administrator on 2013-05-11T00:18:02 (imported from GitLab project)
Created by: Mika56
Thanks for your answer! So, sorry, the problem was on my side, using an older version of Git, I had to use Debian backports, as I'm still running Debian 6.
You may want sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production to warn about the Git version.
Mika.
By Administrator on 2013-05-11T09:17:21 (imported from GitLab project)