summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristiaan Conover <cconover@gitlab.com>2019-08-21 18:17:17 -0400
committerChristiaan Conover <cconover@gitlab.com>2019-08-21 18:17:17 -0400
commit135935adf80ef680bdb4b7fac85bd7efa298d8fc (patch)
tree7a91fb740f8c01ddd32c1f6bedf2ee4875048b56
parent1d5f5aa896a38104c375ac6ddd168d03d408f05e (diff)
downloadgitlab-ce-docs-gitaly-cli-connect-failed.tar.gz
Document Gitaly CLI connection troubleshootingdocs-gitaly-cli-connect-failed
Provide documentation around possible reasons and solutions to CLI tools not being able to connect to Gitaly nodes.
-rw-r--r--doc/administration/gitaly/index.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/administration/gitaly/index.md b/doc/administration/gitaly/index.md
index 878f0ef842d..908dc0e9323 100644
--- a/doc/administration/gitaly/index.md
+++ b/doc/administration/gitaly/index.md
@@ -655,3 +655,33 @@ To fix this problem, confirm that your [`gitlab-secrets.json` file](#3-gitaly-se
on the Gitaly node matches the one on all other nodes. If it doesn't match,
update the secrets file on the Gitaly node to match the others, then
[reconfigure the node](../restart_gitlab.md#omnibus-gitlab-reconfigure).
+
+### Command line tools cannot connect to Gitaly
+
+If you are having trouble connecting to a Gitaly node with command line (CLI) tools, and certain actions result in a `14: Connect Failed` error message, it means that gRPC cannot reach your Gitaly node.
+
+Verify that you can reach Gitaly via TCP using the `gitlab-rake` command:
+
+```bash
+gitlab-rake gitlab:tcp_check[GITALY_SERVER_IP,GITALY_LISTEN_PORT]
+```
+
+If the TCP connection fails, check your network settings and your firewall rules. If the TCP connection succeeds, your networking and firewall rules are correct.
+
+If you use proxy servers in your command line environment, such as Bash, these can interfere with your gRPC traffic.
+
+If you use Bash or a compatible command line environment, run the following commands to determine whether you have proxy servers configured:
+
+```bash
+echo $http_proxy
+echo $https_proxy
+```
+
+If either of these variables have a value, your Gitaly CLI connections may be getting routed through a proxy which cannot connect to Gitaly.
+
+To remove the proxy setting, run the following commands (depending on which variables had values):
+
+```bash
+unset http_proxy
+unset https_proxy
+``` \ No newline at end of file