gitlab shell setup fails in vagrant setup
When I try to follow the readme and invoke cd gitlab && bundle exec rake db:create dev:setup
it fails in the invoked target bundle exec rake gitlab:shell:setup
:
vagrant@vagrant-ubuntu-trusty-64:~/gitlab-development-kit/gitlab$ bundle exec rake gitlab:shell:setup
/home/vagrant/.rvm/gems/ruby-2.1.6/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: already initialized constant Rouge::Lexers::Shell::KEYWORDS
/home/vagrant/.rvm/gems/ruby-2.1.6/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: previous definition of KEYWORDS was here
/home/vagrant/.rvm/gems/ruby-2.1.6/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: already initialized constant Rouge::Lexers::Shell::BUILTINS
/home/vagrant/.rvm/gems/ruby-2.1.6/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: previous definition of BUILTINS was here
This will rebuild an authorized_keys file.
You will lose any data stored in authorized_keys file.
Do you want to continue (yes/no)? yes
........../home/vagrant/gitlab-development-kit/gitlab-shell/lib/gitlab_keys.rb:104:in `initialize': No such file or directory @ rb_sysopen - /home/vagrant/gitlab-development-kit/.ssh/authorized_keys.lock (Errno::ENOENT)
from /home/vagrant/gitlab-development-kit/gitlab-shell/lib/gitlab_keys.rb:104:in `open'
from /home/vagrant/gitlab-development-kit/gitlab-shell/lib/gitlab_keys.rb:104:in `lock'
from /home/vagrant/gitlab-development-kit/gitlab-shell/lib/gitlab_keys.rb:55:in `batch_add_keys'
from /home/vagrant/gitlab-development-kit/gitlab-shell/lib/gitlab_keys.rb:19:in `exec'
from /home/vagrant/gitlab-development-kit/gitlab-shell//bin/gitlab-keys:23:in `<main>'
Failed to add keys...
The reason is the missing .ssh
folder in /home/vagrant/gitlab-development-kit/
, if I create it and repeat the step - it works.
Probably the creation of .ssh
should be covered either by Makefile or described in the docs