Failed to Create Repository

Just did a clean install of GitLab 7.8.1. I was successfully able to import repositories using the rake command. However, when I try to use the GUI to create a new project, I receive an error that says “Failed to Create Repository”. I don’t anything in the log files.

I can successfully create a new group and I see that new directory reflected in the repositories folder, so I don’t think it’s a permissions issue (but that what it seems like).

Any help would be appreciated. This is what is in the logs when I try to create a project (in this case I called it test-proj).

Started GET "/projects/new" for 192.168.0.33 at 2015-03-05 13:45:16 +0000
Processing by ProjectsController#new as HTML
Completed 200 OK in 144ms (Views: 102.1ms | ActiveRecord: 22.9ms)
Started POST "/projects" for 192.168.0.33 at 2015-03-05 13:45:27 +0000
Processing by ProjectsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"XTeV4weLogEBu27kW5YV4du3JDY15T6o+f5Hf1Zy17Y=", "project"=>{"path"=>"test-proj", "namespace_id"=>"8", "import_url"=>"", "description"=>"", "visibility_level"=>"0"}}
Completed 200 OK in 1335ms (Views: 39.1ms | ActiveRecord: 19.9ms)

I have the same problem. Have you found any solution?
My GitLab version: 7.13.1

Also having the same problem. Gitlab 7.13 on Gentoo x64 with bundled Unicorn and Sidekiq, system Redis and Postgres. Log files look exactly the same as OP’s, and my permissions look okay.

FWIW I redid my install with MySQL instead of Postgres this time so I know the issue isn’t related to the database.

I found a solution to the issue. In my case, the config wasn’t set up for gitlab-shell. I had to copy /var/lib/gitlab-shell/config.yml.example to /var/lib/gitlab-shell/config.yml then restart gitlab. Now I can create projects successfully.

1 Like

I’ve recently clean installed Gitlab latest version 16


Facing the same error, and struck here,
The above-mentioned solution isn’t working for me.
Can someone help on this.