问题
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