500 Error when attempting to traverse file tree online. Version 6.0.
Created by: vagari
I've seen a LOT of old issues where people could not view files while clicking through a repository. None of those helped. Especially the ones from months and months ago where pieces don't even exist anymore. The system Python is 2.4 (I'm on RHEL 5 and this isn't really upgradeable) but I did successfully get Python 2.7.5 installed and linked to "python2". So I'm not sure why I'm getting an error similar to the old but involving an outdated Python install. =/
I briefly tried to switch to Ruby 2.0, I did have 1.9 but switched on a whim while trying to fix this issue (I'm getting desparate). It's now switched back. Here's my config output... and the error from the log...
System information
System: unknown
Current User: git
Using RVM: yes
RVM Version: 1.22.5
Ruby Version: 1.9.3p448
Gem Version: 2.0.7
Bundler Version:1.3.5
Rake Version: 10.1.0
GitLab information
Version: 6.0.0
Revision: 6c1c284
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://git.domain.com
HTTP Clone URL: http://git.domain.com/some-project.git
SSH Clone URL: [email protected]: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
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.0 ? ... 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
post-receive hook up-to-date? ... can't check because of previous errors
post-receive hooks in repos are links: ... can't check because of previous errors
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 satellites? ...
Google Search Appliance / GSA Configuration ... yes
Google Search Appliance / Web Server Configurations ... yes
Amphenol Artwork / Logo ... 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
[git@...]$ python2 -V
Python 2.7.5
Started GET "/google-search-appliance/configuration/blob/master/Entity%20Recognition/divisions.xml" for 107.1.2.162 at 2013-09-09 09:32:03 -0500
Processing by Projects::BlobController#show as HTML
Parameters: {"project_id"=>"google-search-appliance/configuration", "id"=>"master/Entity Recognition/divisions.xml"}
Rendered shared/_ref_switcher.html.haml (1.9ms)
Rendered projects/blob/_actions.html.haml (9.8ms)
Rendered projects/blob/_text.html.haml (105.1ms)
Rendered projects/blob/_blob.html.haml (117.5ms)
Rendered projects/blob/show.html.haml within layouts/projects (120.0ms)
Completed 500 Internal Server Error in 177ms
ActionView::Template::Error (Failed to get header.):
9: .file-content.code
10: - unless blob.empty?
11: %div{class: user_color_scheme_class}
12: = raw blob.colorize(formatter: :gitlab)
13: - else
14: %p.nothing_here_message Empty file
app/views/projects/blob/_text.html.haml:12:in `_app_views_projects_blob__text_html_haml___2577852079132147711_220964280'
app/views/projects/blob/_blob.html.haml:28:in `_app_views_projects_blob__blob_html_haml___1348906583295103811_219495060'
app/views/projects/blob/show.html.haml:4:in `_app_views_projects_blob_show_html_haml___4390302078269564387_219379220'
Does anyone have any clues?
p.s. It does display readme files and do the download binary files thing as well as display images.