Gitaly cannot mix local and remote gitaly servers
As discovered in #2140 (comment 247046643), gitaly breaks when the following setup is used:
git_data_dirs({
"default" => {
"path" => "/var/opt/gitlab/git-data"
},
"second-gitaly" => {
"gitaly_address" => "tcp://10.168.0.18:8075"
}
})
The reason is, during an inter gitaly operation, rails will pass the local socket for default
as the address to second-gitaly
, which then tries to access that socket locally and errors.
We need to document this limitation of gitaly, or update omnibus so it throws an error when it detects this setup.
Edited by Zeger-Jan van de Weg