Permission denied @ dir_s_mkdir

(I must have changed something in my configuration because this was working recently)

When I try to go to any of the gitlab projects’ settings (i.e. http://MYGITLABINSTALL/group/project/edit )

I get a server error (500). On inspecting the logs, I can see:

Started GET "/group/project/edit" for 172.18.0.5 at 2018-08-18 13:19:25 -0400
Processing by ProjectsController#edit as HTML
  Parameters: {"namespace_id"=>"group", "id"=>"project"}
Completed 500 Internal Server Error in 55ms (ActiveRecord: 6.8ms)

ActionView::Template::Error (Permission denied @ dir_s_mkdir - /home/git/data/shared/tmp/project_exports):
    31:           %li Any encrypted tokens
    32:     %p
    33:       Once the exported file is ready, you will receive a notification email with a download link, or you can download it from this page.
    34:     - if project.export_status == :finished
    35:       = link_to 'Download export',  download_export_project_path(project),
    36:               rel: 'nofollow', download: '', method: :get, class: "btn btn-default"
    37:       = link_to 'Generate new export',  generate_new_export_project_path(project),
  lib/gitlab/import_export/command_line_util.rb:15:in `mkdir_p'
  lib/gitlab/import_export/after_export_strategies/base_after_export_strategy.rb:60:in `lock_file_path'
  lib/gitlab/import_export/shared.rb:58:in `after_export_lock_file'
  lib/gitlab/import_export/shared.rb:40:in `after_export_in_progress?'
  app/models/project.rb:1728:in `after_export_in_progress?'
  app/models/project.rb:1714:in `export_status'
  app/views/projects/_export.html.haml:34:in `_app_views_projects__export_html_haml___4143709254426535990_151199860'
  app/views/projects/edit.html.haml:102:in `_app_views_projects_edit_html_haml___3254972907685454396_154877380'
  app/controllers/projects_controller.rb:35:in `edit'
  lib/gitlab/i18n.rb:51:in `with_locale'
  lib/gitlab/i18n.rb:57:in `with_user_locale'
  app/controllers/application_controller.rb:362:in `set_locale'
  lib/gitlab/middleware/multipart.rb:97:in `call'
  lib/gitlab/request_profiler/middleware.rb:14:in `call'
  lib/gitlab/middleware/go.rb:17:in `call'
  lib/gitlab/etag_caching/middleware.rb:11:in `call'
  lib/gitlab/middleware/read_only/controller.rb:38:in `call'
  lib/gitlab/middleware/read_only.rb:16:in `call'
  lib/gitlab/request_context.rb:18:in `call'
  lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
  lib/gitlab/middleware/release_env.rb:10:in `call'

I can see the directory in question (I’m using https://github.com/sameersbn/docker-gitlab so this directory is mounted to my host machine at /srv/docker/gitlab/gitlab/shared/). What should the permissions be?

I’m working to setup CI/CD stuff, so perhaps I messed something up as I began to work to deploy the gitlab registry?

So i wonder if the gitlab registry service maybe chowns? I did chown -R git:git /home/git/data/shared/tmp/ from the gitlab container and it seems to have resolved the issue.