首页 > 解决方案 > Gitlab 11.1.4 不兼容的字符编码:ASCII-8BIT 和 UTF-8

问题描述

从晚上开始,在更新与 Github 相关的子域的 SSL 证书后,可能是在自动更新 Centos7 服务器和 mariadb 之后(虽然我确信它与它无关)我的 gitlab 停止工作。

我尝试重新配置并重新启动几次,没有机会。

这是尾部的确切错误

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/users/sign_in" for 196.229.241.110 at 2018-08-15 01:26:28 +0000
Processing by SessionsController#new as HTML
Encoding::CompatibilityError (incompatible character encodings: ASCII-8BIT and UTF-8):
  app/views/layouts/_head.html.haml:26:in `_app_views_layouts__head_html_haml___4353105439635492698_70226876228260'
  app/views/layouts/devise.html.haml:3:in `_app_views_layouts_devise_html_haml__4146057416282651987_70226896429000'
  app/controllers/sessions_controller.rb:29:in `new'
  lib/gitlab/i18n.rb:51:in `with_locale'
  lib/gitlab/i18n.rb:57:in `with_user_locale'
  app/controllers/application_controller.rb:370:in `set_locale'
  lib/gitlab/middleware/multipart.rb:97:in `call'
  lib/gitlab/request_profiler/middleware.rb:14:in `call'
  ee/lib/gitlab/jira/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:17:in `call'
  lib/gitlab/etag_caching/middleware.rb:11:in `call'
  lib/gitlab/middleware/read_only/controller.rb:38:in `call'
  lib/gitlab/middleware/read_only.rb:16:in `call'
  lib/gitlab/request_context.rb:18:in `call'
  lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
  lib/gitlab/middleware/release_env.rb:10:in `call'

Completed 500 Internal Server Error in 13ms (Views: 0.4ms | ActiveRecord: 0.9ms | Elasticsearch: 0.0ms)

配置检查(gitlab-rake)返回一切都很好..我根本找不到与此问题相关的任何内容,特别是针对 10 以上的 gitlab 版本(我的是 11.1.4,最新版本)

任何人都可以帮忙吗?我在 Centos7 Plesk 服务器上运行它,通过带有 SSL 的 Nginx

标签: rubygitlab

解决方案


推荐阅读