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

Closed
Open
Created Oct 23, 2013 by Administrator@rootOwner

Can't view files (500 Error / blank editor)

Created by: kill-9-me

When viewing files by using the 'Files' tree, some files generate a 500 error, others generate a file viewer with no file content (no lines are displayed but a 200 is generated). I can't find any pattern to the variation in result.

However, when viewing files in a commit, I can view the files just fine. Reading other issues ranging from a month to year ago suggest updating 'pygments.rb'. However the version being used is: Using gitlab-pygments.rb (0.3.2) . Not sure if that's the culprit here.

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___3745997881890700954_25978560'
  app/views/projects/blob/_blob.html.haml:28:in `_app_views_projects_blob__blob_html_haml___4037643431311126703_47084080'
  app/views/projects/blob/show.html.haml:4:in `_app_views_projects_blob_show_html_haml___4567802337712192490_26002980'
  app/controllers/application_controller.rb:54:in `set_current_user_for_thread'

Host: Ubuntu 13.04 64bit. Python 2.7.4 & Python 3 both exist. Python 3 cannot be removed as the system package manager (apt) requires it.

Python binaries:

root@hangar:/home/git/gitlab# ls -alh `which python`
lrwxrwxrwx 1 root root 9 Apr  7  2013 /usr/bin/python -> python2.7
root@hangar:/home/git/gitlab# ls -alh `which python2`
lrwxrwxrwx 1 root root 9 Apr  7  2013 /usr/bin/python2 -> python2.7
root@hangar:/home/git/gitlab# python --version
Python 2.7.4
root@hangar:/home/git/gitlab# python2 --version
Python 2.7.4

Ruby Version: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

GitLab Version: 6-2 Stable (5123d706) GitLab Check:

root@hangar:/home/git/gitlab# sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
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.1 ? ... 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
update hook up-to-date? ... yes
update hooks in repos are links: ... 
[REDACTED] = All OK
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files: 
    /home/git/repositories: OK
    /home/git/.ssh/authorized_keys: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

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 namespace: ... 
[REDACTED] = All Yes
Projects have satellites? ... 
[REDACTED] = All Yes
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.1)

Checking GitLab ... Finished
Assignee
Assign to
Time tracking