Graphs lost after upgrading to Gitlab 6.0

旧巷老猫 提交于 2020-01-13 05:35:51

问题


Yesterday I've upgraded my Gitlab installation from 5.3 to 6.0 (technically from 5.3 to 5.4 and 5.4 to 6.0), and I can't display Network and other Graphs since then.

On the network page it seems some Javascript is not loaded, as I got a 'Network is not defined' error. Graphs seems to be a different issue, but I can't find anything in the logs.

Is it a bug or I did something wrong? Both functions were working fine before the upgrade.


回答1:


This seems to be a bug in GitLab. It breaks when it encounters a commit that doesn't change any files, such as when creating a branch.

It is in the issue tracker as issue #4867 and has been fixed in master.




回答2:


Try to precompile your assets:

sudo service gitlab stop
sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production 
sudo service gitlab start



回答3:


Can you try running

bundle exec rake cache:clear RAILS_ENV=production

as per https://github.com/gitlabhq/gitlabhq/issues/4874



来源:https://stackoverflow.com/questions/18407922/graphs-lost-after-upgrading-to-gitlab-6-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!