Hey,
I’ve modified my gitlab.rb to have a new data directory, using another machine as our file server:
git_data_dirs({
"default" => {
"path" => "/media/ShareName/git-data"
}
})
I’ve mounted this using fstab
//192.168.123.456/ShareName /media/ShareName cifs _netdev,uid=git,gid=git,iocharset=utf8 0 0
When running reconfigure I get the following assertion:
Failed asserting that mode permissions on "/media/ShareName/git-data" is 0700
If I modify my fstab to mount with these permissions, I get a new error:
Failed asserting that mode permissions on "/media/ShareName/git-data/repositories" is 2770
Is it possible to mount a share and use this for data?.. If I have to set the permissions in fstab I’m not sure how I can get different permissions for git-data and git-data/repositories…
Hi,
Did you find a resolution to this? I’m currently stuck with the same issue.
Cheers,
Jon
A year later and I have also been battling with this too. Quite stressful.
I’m not 100% sure yet, but I think I have found the answer.
In the docs on the config options:
https://docs.gitlab.com/omnibus/settings/configuration.html
There is a setting in the gitlab config to disable storage directories management. As soon as I set this to false, gitlab-ctl reconfigure completed.
For now, I have mounted the cifs share with uid and gid git:git, and with file and dir mode set to 0770. I have then added my user account to the git group.
I have only just done this but Gitlab is back up and running. I guess only time will tell if this config ends up becoming a problem.
FS
Nope. Doesn’t work.
Won’t let me create repos.
FML.
Would be great if someone from Gitlab could chime in. There must be a way to make this work properly.
Any help or advice would be greatly appreciated.
Thanks,
FS