sameersbn / sameersbn/docker-gitlab

Boot2Docker - Creating new project shows "Failed to create repository via gitlab-shell"

Open
#964 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

I'm using Windows OS and Docker Toolbox (Boot2Docker) to run Docker.

When run the docker-compose, I can not create new project. It says "Failed to create repository via gitlab-shell". If I comment out this volume mount point, it can create new project. But I can not keep my repo data.

volumes:
- /srv/docker/gitlab/gitlab:/home/git/data:Z

The log in the gitlab-rails production.log says:

Started POST "/projects" for 76.97.7.217 at 2016-02-23 22:42:50 -0500
Processing by ProjectsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "project"=>{"namespace_id"=>"4", "path"=>"android", "import_url"=>"", "description"=>"test", "visibility_level"=>"0"}}
Unable to save project: Failed to create repository
Completed 200 OK in 678ms (Views: 88.0ms | ActiveRecord: 8.6ms)

Here is the same issue, but I can not find the solution. I can access into the container and create the symbolic links.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the docker-compose volume mapping for /home/git/data and the gitlab-rails production.log entry showing the failed repository creation. Compare behavior with and without that mount, then investigate the referenced GitLab issue and the container's symbolic-link state. Done means a new project can be created while the repository data remains persisted in the mounted volume.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, git, gitlab
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.