Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8959

Closed
Open
Created Mar 16, 2015 by Administrator@rootOwner

Change git_data_dir to mounted cifs share resolves in error.

Created by: mengine23

Hi there,

i recently tried to set up a gitlab server and wanted the git_data_dir to be on a mounted windows share. So here are the steps i made:

*mount a share with help of cifs-tools (added to /etc/fstab) //8.8.8.8/xxx/GIT-Repos /media/gitrepos cifs uid=git,gid=git,credentials=/home/xxx/.smbcredentials,iocharset=utf8,dir_mode=0770,sec=ntlm 0 0

*Change git_data_dir the mounted folder & run gitlab-ctl reconfigure This does not lead to any errors. Everything seems to be fine. The folder "gitlab-satellites" & "repositories" are created properly.

Now i tried to create a new project via web interface. This always lead to the error message "Failed to create repository". I checked the logs, but there is no entry or hint that something went wrong. I post the related lines from production.log:

Started GET "/projects/new" for 127.0.0.1 at 2015-03-16 12:29:24 +0100 Processing by ProjectsController#new as HTML Completed 200 OK in 85ms (Views: 56.7ms | ActiveRecord: 10.8ms) Started POST "/projects" for 127.0.0.1 at 2015-03-16 12:34:01 +0100 Processing by ProjectsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"WFF01LII0r8HC4EoPUKczdnISHaO9tEWNkzyqNCI90A=", "project"=>{"path"=>"test", "namespace_id"=>"1", "import_url"=>"", "description"=>"", "visibility_level"=>"0"}} Completed 200 OK in 857ms (Views: 70.9ms | ActiveRecord: 17.9ms)

When i now peek inside the mounted folder, the repo has been created. So im confused about what can lead to that error?!

Assignee
Assign to
Time tracking