Gitlab 8.11.0 升级到 9.1.0 报错 GET "/admin/logs" 500

Started GET "/admin/logs" for 11.20.15.16 at 2017-11-10 21:00:28 +0800  
Processing by Admin::LogsController#show as HTML  
Completed 500 Internal Server Error in 110ms (ActiveRecord: 4.2ms)

ActionView::Template::Error (invalid byte sequence in UTF-8):  
    26:                 Scroll down
    27:           .file-content.logs
    28:             %ol
    29:               - klass.read_latest.each do |line|
    30:                 %li
    31:                   %p= line
  lib/gitlab/logger.rb:19:in `split'
  lib/gitlab/logger.rb:19:in `read_latest'
  app/views/admin/logs/show.html.haml:29:in `block in _app_views_admin_logs_show_html_haml__453744045812584610_70325016697280'
  app/views/admin/logs/show.html.haml:17:in `each'
  app/views/admin/logs/show.html.haml:17:in `_app_views_admin_logs_show_html_haml__453744045812584610_70325016697280'
  lib/gitlab/middleware/multipart.rb:93:in `call'
  lib/gitlab/request_profiler/middleware.rb:14:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'
  lib/gitlab/etag_caching/middleware.rb:10:in `call'
  lib/gitlab/request_context.rb:18:in `call'

解决办法: 不要慌,重启大法好。

升级过程中,可能会有遗留进程消耗大量内存,重启一下机器就好了。