Updating from 3.1 to 4.0 when ssh settings other than default (documentation)
Created by: davispuh
In wiki update instructions from 3.1 to 4.0
2. Update GitLab
part:
# Enable namespaces (**Warning!** All projects in groups will be moved to subdirectories)
sudo -u gitlab -H bundle exec rake gitlab:enable_namespaces RAILS_ENV=production
should be after step 4. Replace config with new one
because otherwise old config is being used. And there is host
and port
, but is expected ssh_host
, ssh_port
so it results in defaults and enable_namespaces
may fail with
[...]
Rebuild Gitolite ...
ssh: connect to host localhost port 22: Connection refused
fatal: The remote end hung up unexpectedly
rake aborted!
unable to clone gitolite-admin repo
[...]
Tasks: TOP => gitlab:enable_namespaces
(See full trace by running task with --trace)
I've ssh on different port so it failed. Updating config and then executing enable_namespaces
solves problem.