Migration with empty Projects fails!
Created by: kitingChris
Some of my users did unfortunatelly not initialized their git repository yet. So this here happened:
$ sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...
gitlab user is in git group? ... yes
Has no "-e" in ~git/.profile ... yes
Git configured for gitlab user? ... yes
Has python2? ... yes
python2 is supported version? ... yes
Checking Environment ... Finished
Checking Gitolite ...
Using recommended version ... yes
Repo umask is 0007 in .gitolite.rc? ... yes
Allow all Git config keys in .gitolite.rc ... yes
Config directory exists? ... yes
Config directory owned by git:git ... yes
Config directory access is drwxr-x---? ... yes
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwsrws---? ... yes
Can clone gitolite-admin? ... yes
Can commit to gitolite-admin? ... yes
post-receive hook exists? ... yes
post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ...
example01 ... ok
example02 ... ok
example03 ... ok
example04 ... missing
Try fixing it:
sudo -u git ln -sf /home/git/.gitolite/hooks/common/post-receive /home/git/repositories/example04.git/hooks/post-receive
For more information see:
lib/support/rewrite-hooks.sh
Please fix the error above and rerun the checks.
example05 ... ok
example06 ... ok
example07 ... missing
Try fixing it:
sudo -u git ln -sf /home/git/.gitolite/hooks/common/post-receive /home/git/repositories/example07.git/hooks/post-receive
For more information see:
lib/support/rewrite-hooks.sh
Please fix the error above and rerun the checks.
example08 ... ok
example09 ... missing
Try fixing it:
sudo -u git ln -sf /home/git/.gitolite/hooks/common/post-receive /home/git/repositories/example09.git/hooks/post-receive
For more information see:
lib/support/rewrite-hooks.sh
Please fix the error above and rerun the checks.
example10 ... ok
Git config in repos: ...
example01 ... ok
example02 ... ok
example03 ... ok
example04 ... wrong or missing
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
example05 ... ok
example06 ... ok
example07 ... wrong or missing
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
example08 ... ok
example09 ... wrong or missing
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
example10 ... ok
Checking Gitolite ... Finished
Checking Resque ...
Running? ... no
Try fixing it:
sudo service gitlab restart
or
sudo /etc/init.d/gitlab restart
For more information see:
doc/install/installation.md in section "Install Init Script"
see log/resque.log for possible errors
Please fix the error above and rerun the checks.
Checking Resque ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... no
Try fixing it:
sudo -u gitlab -H bundle exec rake db:migrate
Please fix the error above and rerun the checks.
GitLab config exists? ... yes
GitLab config outdated? ... yes
Try fixing it:
Backup your config/gitlab.yml
Copy config/gitlab.yml.example02 to config/gitlab.yml
Update config/gitlab.yml to match your setup
For more information see:
doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... no
Try fixing it:
Redownload the init script
For more information see:
doc/install/installation.md in section "Install Init Script"
Please fix the error above and rerun the checks.
Projects have satellites? ...
example01 ... no
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:satellites:create
If necessary, remove the tmp/repo_satellites directory ...
... and rerun the above command
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
example02 ... no
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:satellites:create
If necessary, remove the tmp/repo_satellites directory ...
... and rerun the above command
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
example03 ... can't create, repository is empty
example04 ... can't create, repository is empty
example05 ... no
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:satellites:create
If necessary, remove the tmp/repo_satellites directory ...
... and rerun the above command
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
example06 ... no
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:satellites:create
If necessary, remove the tmp/repo_satellites directory ...
... and rerun the above command
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
example07 ... can't create, repository is empty
example08 ... no
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:satellites:create
If necessary, remove the tmp/repo_satellites directory ...
... and rerun the above command
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
example09 ... can't create, repository is empty
example10 ... no
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:satellites:create
If necessary, remove the tmp/repo_satellites directory ...
... and rerun the above command
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
Checking GitLab ... Finished
Need fast help it is a live system!!