I am updating my question. I fixed my original issue by upgrading Gitlab. When I run a
gitlab-rake gitlab:geo:check, I am running into an error that says.
GitLab Geo HTTP(S) connectivity ...
* Can connect to the primary node ... no
but when I run
gitlab-rake gitlab:tcp_check[ip of primary,5432] is shows that the connection succeeded. I believe this is why I am getting the error down below.