I need some help configuring a samba share as gitlab data folder.
I've tried following suggestions here:
change the data directory gitlab to store repos elsewhere
and the official documentation to no avail. Here is what I did:
1] I've installed gitlab 7.6.2 using the omnibus package and I've also checked that everything worked using the preconfigured /var/opt/gitlab/git-data folder
2] I've mounted my samba share (located on a nas server) on /media/gitlab-data by modifying my /etc/fstab file.
Here is the fstab line:
//xxx.xxx.x.xx/test /media/gitlab-data cifs username=xxx,password=xxx 0 0
the user I'm using to connect has full permissions on the share. After the mount operation the permissions on that folder are the following:
3] I've modified the configuration of gitlab in /etc/gitlab/gitlab.rb changing the gitlab_user_data parameter to
/media/gitlab-data
I've then proceeded with a
sudo gitlab-ctl reconfigure
At the end of the reconfigure script the privileges of my share are:
and the initial gitlab-satellites and repositories folder have been created succesfull.
Now, the gitlab web interface is fully operational but I'm unable to create a new project (or add a new user). As soon as I click 'Create project' the web interface returns with the following error:
Failed to create repository
I'm quite sure it is a permission problem but I don't know how to solve this. I also add 2 strange things:
1] I wasn't able to find any error inside the logs related to this operation. The only related message I see is inside the gitlab-shell log:
I, [2015-01-13T14:27:50.408394 #1658] INFO -- : Adding project root/test.git at .
2] The test.git folder inside /media/gitlab-data is indeeed created but, doing an ls -la on my mounted folder returns this permissions:
drwxrwxrwx 3 1024 users 0 Jan 13 14:27 .
drwxrwxrwx 3 git git 0 Jan 13 14:27 ..
drwxrwxrwx 7 1024 users 0 Jan 13 14:27 test.git
Probably something is trying to make a chown on these folder and that command ultimately fails.
I also don't know who is the owner of this 1024 uid.
Any help is appreciated. Thanks in advance!