Gitlab 8.5.1: on viewing some commits I get an error 500
Also seen by customer in Zendesk https://gitlab.zendesk.com/agent/tickets/18980
I found this output in /var/log/gitlab/gitlab-rails/production.log
:
Started PUT "/ci/api/v1/builds/4253.json" for 127.0.0.1 at 2016-02-25 23:19:35 +0100
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2016-02-25 23:19:35 +0100
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2016-02-25 23:19:36 +0100
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2016-02-25 23:19:37 +0100
Started GET "/Lea-Team/LEA/commit/807ed40f10b1046304801b7d25358cc4419e5c14" for 127.0.0.1 at 2016-02-25 23:19:37 +0100
Processing by Projects::CommitController#show as HTML
Parameters: {"namespace_id"=>"Lea-Team", "project_id"=>"LEA", "id"=>"807ed40f10b1046304801b7d25358cc4419e5c14"}
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2016-02-25 23:19:37 +0100
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2016-02-25 23:19:38 +0100
Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
app/views/projects/diffs/_file.html.haml:50:in `_app_views_projects_diffs__file_html_haml___3678880792074500090_52910000'
app/views/projects/diffs/_diffs.html.haml:22:in `block in _app_views_projects_diffs__diffs_html_haml___4493508183704954951_79036740'
app/views/projects/diffs/_diffs.html.haml:17:in `each'
app/views/projects/diffs/_diffs.html.haml:17:in `each_with_index'
app/views/projects/diffs/_diffs.html.haml:17:in `_app_views_projects_diffs__diffs_html_haml___4493508183704954951_79036740'
app/views/projects/commit/show.html.haml:12:in `_app_views_projects_commit_show_html_haml___4060147075512434597_74205640'
app/controllers/projects/commit_controller.rb:29:in `show'
Completed 500 Internal Server Error in 487ms (Views: 13.4ms | ActiveRecord: 12.9ms)
Started GET "/Lea-Team/LEA/commit/807ed40f10b1046304801b7d25358cc4419e5c14" for 127.0.0.1 at 2016-02-25 23:19:38 +0100
Processing by Projects::CommitController#show as HTML
Parameters: {"namespace_id"=>"Lea-Team", "project_id"=>"LEA", "id"=>"807ed40f10b1046304801b7d25358cc4419e5c14"}
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2016-02-25 23:19:38 +0100
Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
app/views/projects/diffs/_file.html.haml:50:in `_app_views_projects_diffs__file_html_haml___3678880792074500090_23175180'
app/views/projects/diffs/_diffs.html.haml:22:in `block in _app_views_projects_diffs__diffs_html_haml___4493508183704954951_66570200'
app/views/projects/diffs/_diffs.html.haml:17:in `each'
app/views/projects/diffs/_diffs.html.haml:17:in `each_with_index'
app/views/projects/diffs/_diffs.html.haml:17:in `_app_views_projects_diffs__diffs_html_haml___4493508183704954951_66570200'
app/views/projects/commit/show.html.haml:12:in `_app_views_projects_commit_show_html_haml___4060147075512434597_30916940'
app/controllers/projects/commit_controller.rb:29:in `show'
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2016-02-25 23:19:39 +0100
Completed 500 Internal Server Error in 997ms (Views: 27.1ms | ActiveRecord: 22.7ms)
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2016-02-25 23:19:40 +0100
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2016-02-25 23:19:40 +0100
Most notable is the Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT)
line.
Any clues? Could I still safely downgrade to 8.5.0 without loss of data?