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

Closed
Open
Created Jan 08, 2014 by Administrator@rootOwner

Encoding Error showing a commit

Created by: opensource21

Hi,

today I upgraded to GitLab 6.4.3 38397dbe. After that we have trouble in on a project to see any diffs. I call .../commit/0580618e521966eb3939ed89f4ce4d40691120c7 and get a return code 500 encoding error.

I checked the postgres db it was UTF-8.

bundle exec rake gitlab:check RAILS_ENV=production was fine too - everything is green except some empty -repos.

I reinstall charlock_holmes following #679

Here the exception from production.log

Started GET "/xxxx/xxxxx/commit/0580618e521966eb3939ed89f4ce4d40691120c7" for 127.0.0.1 at 2014-01-08 15:11:07 +0100
Processing by Projects::CommitController#show as HTML
  Parameters: {"project_id"=>"xxxx/xxxx", "id"=>"0580618e521966eb3939ed89f4ce4d40691120c7"}
  Rendered projects/commit/_commit_box.html.haml (16.2ms)
  Rendered projects/commit/show.html.haml within layouts/projects (18.2ms)

Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
  app/views/projects/commit/_commit_box.html.haml:47:in `_app_views_projects_commit__commit_box_html_haml___4214662759525494363_69876567631520'
  app/views/projects/commit/show.html.haml:1:in `_app_views_projects_commit_show_html_haml___3130193472454801325_69876567493800'
  app/controllers/application_controller.rb:57:in `set_current_user_for_thread'

  Rendered errors/encoding.html.haml within layouts/errors (1.3ms)
  Rendered layouts/_head.html.haml (1.2ms)
  Rendered layouts/_search.html.haml (33.3ms)
  Rendered layouts/_head_panel.html.haml (38.8ms)
  Rendered layouts/_flash.html.haml (0.2ms)
Completed 500 Internal Server Error in 11205ms (Views: 39.8ms | ActiveRecord: 20.0ms)

Here the output from bundle exec rake gitlab:env:info RAILS_ENV=production

[git@igit gitlab]$ 

System information
System:         CentOS release 6.5 (Final)
Current User:   git
Using RVM:      no
Ruby Version:   2.0.0p353
Gem Version:    2.0.14
Bundler Version:1.3.5
Rake Version:   10.1.0

GitLab information
Version:        6.4.3
Revision:       38397db
Directory:      /export/home/git/gitlab
DB Adapter:     postgresql
URL:            http://igit.xxx.int
HTTP Clone URL: http://igit.xx.int/some-project.git
SSH Clone URL:  [email protected]:some-project.git
Using LDAP:     yes
Using Omniauth: no

GitLab Shell
Version:        1.8.0
Repositories:   /export/home/git/repositories/
Hooks:          /export/home/git/gitlab-shell/hooks/
Git:            /usr/bin/git

Any suggestions are appreciated. Niels

Assignee
Assign to
Time tracking