gitlab change git data path in gitlab 11
1. Mount the partition or external hark disk on the system. It should be accessible by absolute path like /home/partition or /mnt/nfs etc
2. Open file /etc/gitlab/gitlab.rb and data dir path in it.
It depends on your path.
Reconfigure gitlab.
Now you will not get 500 or 502 error and Repositories will be accessed from defined path.
Note : gitlab completely deprecated git_data_dir "/git-data/path" parameter in gitlab 11.
You need to use path like mentioned above. If you do not change the attribute, you will not be able to reconfigure gitlab successfully.
1. Mount the partition or external hark disk on the system. It should be accessible by absolute path like /home/partition or /mnt/nfs etc
2. Open file /etc/gitlab/gitlab.rb and data dir path in it.
git_data_dirs({
"default" => { "path" => "/mnt/nfs/gitlab/git-data" },
"storage" => { "path" => "/mnt/nfs/gitlab/git-data" },
})
It depends on your path.
Reconfigure gitlab.
gitlab-ctl reconfigure
Now you will not get 500 or 502 error and Repositories will be accessed from defined path.
Note : gitlab completely deprecated git_data_dir "/git-data/path" parameter in gitlab 11.
You need to use path like mentioned above. If you do not change the attribute, you will not be able to reconfigure gitlab successfully.
No comments:
Post a Comment