Gitlab on FreeNAS jail?

I am trying to install Gitlab in a FreeNAS jail. I followed this guide with a few tweaks:

When I attempted to create a new repository, the web interface provided the non-descriptive error message that it could not create a new repository. The logs said this:

==> production.log <==
Started POST “/projects” for 2001:470:8:209:7d9f:3383:f6a2:49b6 at 2016-04-10 16:48:41 -0400
Processing by ProjectsController#create as HTML
Parameters: {“utf8”=>“�”, “authenticity_token”=>"[FILTERED]", “project”=>{“namespace_id”=>“2”, “path”=>“test123”, “import_url”=>"", “description”=>"", “visibility_level”=>“0”}}
Unable to save project: Failed to create repository
Completed 200 OK in 705ms (Views: 31.7ms | ActiveRecord: 90.7ms)
Started POST “/projects” for 2001:470:8:209:7d9f:3383:f6a2:49b6 at 2016-04-10 16:49:40 -0400
Processing by ProjectsController#create as HTML
Parameters: {“utf8”=>“�”, “authenticity_token”=>"[FILTERED]", “project”=>{“namespace_id”=>“2”, “path”=>“test123”, “import_url”=>"", “description”=>"", “visibility_level”=>“0”}}
Unable to save project: Failed to create repository
Completed 200 OK in 848ms (Views: 114.2ms | ActiveRecord: 19.1ms

==> production.log <==
Started POST “/projects” for 2001:470:8:209:7d9f:3383:f6a2:49b6 at 2016-04-10 16:48:41 -0400
Processing by ProjectsController#create as HTML
Parameters: {“utf8”=>“�”, “authenticity_token”=>"[FILTERED]", “project”=>{“namespace_id”=>“2”, “path”=>“test123”, “import_url”=>"", “description”=>"", “visibility_level”=>“0”}}
Unable to save project: Failed to create repository
Completed 200 OK in 705ms (Views: 31.7ms | ActiveRecord: 90.7ms)
Started POST “/projects” for 2001:470:8:209:7d9f:3383:f6a2:49b6 at 2016-04-10 16:49:40 -0400
Processing by ProjectsController#create as HTML
Parameters: {“utf8”=>“�”, “authenticity_token”=>"[FILTERED]", “project”=>{“namespace_id”=>“2”, “path”=>“test123”, “import_url”=>"", “description”=>"", “visibility_level”=>“0”}}
Unable to save project: Failed to create repository
Completed 200 OK in 848ms (Views: 114.2ms | ActiveRecord: 19.1ms

Been on this for several days now, no success.

I had this problem, and there were some permissions missing from the doc.

If you run this as root

su git
rake gitlab:check RAILS_ENV=production

it will show the permissions missing and you can go and fix them. I did this and it now works
Sorry I did not make a note of what was missing while I fixed them so cant remember what they were