'Sign in to gitlab repository in TeamCity
TeamCity server and GitLab CE Server on other VM.
Problem: **Can't authenticate and get access to GitlabCE repository through TeamCity to select available repositories on page VSC Roots. **
I got the message: Empty error response from https://gitlab.prod.com/oauth/token, status code: 504 (teamcity_invalid_response) Connection: GitLab CE/EE (project: XTestConnection)
Manually, if i paste a reference to the repository Fetch URL Gitlab CE, i can run builds, all works.
And it only works if the [email protected]:project/test.git, but not https://gitlab.prod.com/project/test.git, and works only with uploaded SSH key authentication, not login/pass GitlabCE
If attach GitLab.com everything works, i get a list of repositories, with any kind of URL and authorization.
Between servers I don’t have a proxy, open full access. If i use a browser or command line, then successful connection to Gitlab (and Api included) GitLab API is available from the browser or CLT
However, there is a NGINX proxy from the gitlab ce omnybus installation.
Maybe in NGINX settings gitlab.rb i need to write something, I did not find a solve that... How to reproduce:
TeamCity, I authorize using LDAP (Windows AD), but I tried to create a local internal account for the test. GitLab authorizes using created credentials inside, without using third-party OAuth
gitlab-rake gitlab:check LDAP: ... LDAP is disabled in config/gitlab.yml Checking LDAP ... Finished
Original link https://gitlab.com/gitlab-org/gitlab/-/issues/360787
Solution 1:[1]
thanks for your time, but you can close the task. The problem was in the proxy server used in the company, not the NGINX in GitLab Omnibus package. On the server TeamCity in system variables (TEAMCITY_SERVER_OPTS) settings did not specify an exception for resources that do not use the domain, namely the value of -Dhttp.nonProxyHosts=*.prod.com since the site with GitLab https://gitlab.prod.com
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ?????????? |
