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

Closed
Open
Created Feb 05, 2013 by Administrator@rootOwner

GitLab 4.1.0 doesn't load file content

Created by: steve-todorov

Hey there,

I've currently upgraded from 4.0 to 4.1. Unfortunately I'm experiencing a strange problem when I try to open any file at any repository. In the logs there's an exception:

Started GET "/my_repository.git/tree/master/about.php" for 127.0.0.1 at 2013-02-05 19:51:17 +0000
Processing by TreeController#show as HTML
  Parameters: {"project_id"=>"my_repository.git", "id"=>"master/about.php"}
  Rendered shared/_ref_switcher.html.haml (5.1ms)
  Rendered shared/_clone_panel.html.haml (0.8ms)
  Rendered tree/_head.html.haml (11.3ms)
  Rendered tree/_blob_actions.html.haml (23.5ms)
  Rendered tree/blob/_text.html.haml (285.9ms)
  Rendered tree/_blob.html.haml (318.2ms)
  Rendered tree/_tree.html.haml (330.3ms)
  Rendered tree/show.html.haml within layouts/project_resource (345.9ms)
Completed 500 Internal Server Error in 398ms

ActionView::Template::Error (Traceback (most recent call last):
  File "/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/bundler/gems/pygments.rb-db1da0343adf/lib/pygments/mentos.py", line 303, in start
    res = self.get_data(method, lexer, args, kwargs, text)
  File "/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/bundler/gems/pygments.rb-db1da0343adf/lib/pygments/mentos.py", line 171, in get_data
    res = self.highlight_text(text, lexer, formatter_name, args, _convert_keys(opts))
  File "/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/bundler/gems/pygments.rb-db1da0343adf/lib/pygments/mentos.py", line 122, in highlight_text
    lexer = self.return_lexer(lexer, args, kwargs, code)
  File "/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/bundler/gems/pygments.rb-db1da0343adf/lib/pygments/mentos.py", line 79, in return_lexer
    return lexers.get_lexer_by_name(lexer, **inputs)
  File "/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/bundler/gems/pygments.rb-db1da0343adf/vendor/pygments-main/pygments/lexers/__init__.py", line 74, in get_lexer_by_name
    _load_lexers(module_name)
  File "/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/bundler/gems/pygments.rb-db1da0343adf/vendor/pygments-main/pygments/lexers/__init__.py", line 32, in _load_lexers
    mod = __import__(module_name, None, None, ['__all__'])
UnicodeDecodeError: 'rawunicodeescape' codec can't decode bytes in position 12-0: \Uxxxxxxxx out of range
):
    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/models/tree.rb:6:in `colorize'
  app/views/tree/blob/_text.html.haml:12:in `_app_views_tree_blob__text_html_haml__1017309498_88054090'
  app/views/tree/_blob.html.haml:9:in `_app_views_tree__blob_html_haml___702125131_87958420'
  app/views/tree/_tree.html.haml:19:in `_app_views_tree__tree_html_haml___621344865_87846450'
  app/views/tree/show.html.haml:3:in `_app_views_tree_show_html_haml__267635837_87738890'
  app/controllers/tree_controller.rb:17:in `show'
Assignee
Assign to
Time tracking