升级后gitlab – GUI /界面破裂 – 无法正常工作

我们有一个很大的问题。 由于我们将gitlab从8.11.7-ce.0更新到8.12.1-ce.0,因此我们的webgui被破坏: gitlab – 破坏的gui视图

我们目前不知道为什么会发生这种情况。

我们正在使用Ubuntu 14.04 LTS

有人有同样的问题或想法解决这个问题?

编辑1:

我检查了我的日志文件:

Started GET "/assets/application-891a61baf08dd362204cccb62419682e810754e7b9e657eb3d33897e53d5bd96.css" for 80.149.35.188 at 2016-09-26 12:26:12 +0200 Processing by ProjectsController#show as HTML Parameters: {"namespace_id"=>"assets", "id"=>"application-891a61baf08dd362204cccb62419682e810754e7b9e657eb3d33897e53d5bd96.css"} Filter chain halted as :project rendered or redirected 

并检查这一个404文件和文件存在。 我真的不明白为什么我们得到一个404错误。

编辑2 – 解决scheme :我们已经解决了我们的问题。 问题是我们的apache虚拟主机代理configuration是错误的。

现在这看起来像:

  ProxyPreserveHost On # Ensure that encoded slashes are not decoded but left in their encoded state. # http://doc.gitlab.com/ce/api/projects.html#get-single-project AllowEncodedSlashes NoDecode <Location /> # New authorization commands for apache 2.4 and up # http://httpd.apache.org/docs/2.4/upgrading.html#access Require all granted #Allow forwarding to gitlab-workhorse ProxyPassReverse http://127.0.0.1:8282 ProxyPassReverse https://xxx/ </Location> # Apache equivalent of nginx try files # http://serverfault.com/questions/290784/what-is-apaches-equivalent-of-nginxs-try-files # http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab RewriteEngine on #Don't escape encoded characters in api requests RewriteCond %{REQUEST_URI} ^/api/v3/.* RewriteRule .* http://127.0.0.1:8282%{REQUEST_URI} [P,QSA,NE] #Forward all requests to gitlab-workhorse except existing files like error documents RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_URI} ^/uploads/.* RewriteRule .* http://127.0.0.1:8282%{REQUEST_URI} [P,QSA] RequestHeader set X_FORWARDED_PROTO 'https' RequestHeader set X-Forwarded-Ssl on 

您的静态资源位置已更改,您的Web服务器configuration也没有相应更改。

您需要研究您的Web服务器error.log并查看哪些资源正在返回404 HTTP状态代码,然后查找这些资源所在的位置。 然后你可以修复你的服务器configuration。