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

Closed
Open
Created Apr 10, 2013 by Administrator@rootOwner

Error 500 After upgrading 4.2 to 5.0.1 and opening a file within an existing repo

Created by: shadowbooker

Went to a project and tried to click on a file, in the UI the file code just doesn't load but if you refresh the page on that tree node, the following error occurs:

Started GET "/app-production/app-name/tree/master/project/myfile.rb" for 127.0.0.1 at 2013-04-10 17:55:20 -0400
Processing by TreeController#show as HTML
  Parameters: {"project_id"=>"app-production/app-name", "id"=>"master/project/myfile.rb"}
  Rendered shared/_ref_switcher.html.haml (1.1ms)
  Rendered tree/_blob_actions.html.haml (13.3ms)
  Rendered tree/_blob.html.haml (86.7ms)
  Rendered tree/_tree.html.haml (89.3ms)
  Rendered tree/show.html.haml within layouts/project_resource (90.9ms)
Completed 500 Internal Server Error in 125ms

ActionView::Template::Error (could not find any magic files!):
    1: .btn-group.tree-btn-group
    2:   -# only show edit link for text files
    3:   - if @tree.text?
    4:     = link_to "edit", edit_project_tree_path(@project, @id), class: "btn btn-tiny", disabled: !allowed_tree_edit?
    5:   = link_to "raw", project_blob_path(@project, @id), class: "btn btn-tiny", target: "_blank"
    6:   -# only show normal/blame view links for text files
  app/models/tree.rb:6:in `text?'
  app/views/tree/_blob_actions.html.haml:3:in `_app_views_tree__blob_actions_html_haml___3512127060336524332_54309640'
  app/views/tree/_blob.html.haml:7:in `_app_views_tree__blob_html_haml___1085113905555561429_51475120'
  app/views/tree/_tree.html.haml:16:in `_app_views_tree__tree_html_haml__532367222967356772_50330560'
  app/views/tree/show.html.haml:4:in `_app_views_tree_show_html_haml__3949863726955125693_50726440'
  app/controllers/tree_controller.rb:17:in `show'
Assignee
Assign to
Time tracking