Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab Development Kit GitLab Development Kit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 65
    • Issues 65
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

Do not update/delete: Banner broadcast message test data

Admin message

Do not update/delete: Notification broadcast message test data

  • GitLab.orgGitLab.org
  • GitLab Development KitGitLab Development Kit
  • Issues
  • #44
Closed
Open
Issue created Aug 07, 2015 by username-removed-99119@artem-sidorenkoContributor

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

Assignee
Assign to
Time tracking