summaryrefslogtreecommitdiff
path: root/doc/update/5.4-to-6.0.md
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2013-10-15 14:58:26 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2013-10-15 14:58:26 +0200
commitc69b2856b1baa15f7a6fd98b7d333f5ba0f70c86 (patch)
treeeffca3c99bce576401692bb21bf0e072f42c4ab7 /doc/update/5.4-to-6.0.md
parent17df09b79ee10ef9c1fdeb8593337745768ef6f9 (diff)
downloadgitlab-ce-c69b2856b1baa15f7a6fd98b7d333f5ba0f70c86.tar.gz
Add troubleshooting info to 5.4-to-6.0.md
Diffstat (limited to 'doc/update/5.4-to-6.0.md')
-rw-r--r--doc/update/5.4-to-6.0.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/update/5.4-to-6.0.md b/doc/update/5.4-to-6.0.md
index 0027d91d60a..31379d81aba 100644
--- a/doc/update/5.4-to-6.0.md
+++ b/doc/update/5.4-to-6.0.md
@@ -111,3 +111,21 @@ To make sure you didn't miss anything run a more thorough check with:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
If all items are green, then congratulations upgrade complete!
+
+### Troubleshooting
+The migrations in this update are very sensitive to incomplete or inconsistent data. If you have a long-running GitLab installation and some of the previous upgrades did not work out 100% correct this may bite you now. The following commands can be run in the rails console to look for 'bad' data.
+
+All project owners should have an owner
+```
+Project.all.select { |project| project.owner.blank? }
+```
+
+Every user should have a namespace
+```
+User.all.select { |u| u.namespace.blank? }
+```
+
+Projects in the global namespace should not conflict with projects in the owner namespace
+```
+Project.where(namespace_id: nil).select { |p| Project.where(path: p.path, namespace_id: p.owner.try(:namespace).try(:id)).present? }
+```