Gitlab Teamcity Project services Not working
Summary
Error 403 Forbiden
Configure JetBrains TeamCity CI and then press button "Test Settings" Output is (from log /var/log/gitlab/gitlab-rails/production) Completed 500 Internal Server Error in 236ms (ActiveRecord: 22.8ms)
Net::HTTPServerException (403 "Forbidden"):
app/models/project_services/teamcity_service.rb:86:in execute' app/models/service.rb:129:in test'
app/controllers/projects/services_controller.rb:31:in test' lib/gitlab/middleware/multipart.rb:93:in call'
lib/gitlab/request_profiler/middleware.rb:14:in call' lib/gitlab/middleware/go.rb:16:in call'
lib/gitlab/etag_caching/middleware.rb:10:in call' lib/gitlab/request_context.rb:18:in call'
Version: GitLab 9.1.1 GitLab Shell 5.0.2 GitLab Workhorse v1.4.3 GitLab API v4 Git 2.11.1 Ruby 2.3.3p222 Rails 4.2.8 postgresql
Steps to reproduce
Configure Team city under Project Services (Inside a project -> Settings-> Integrations -> JetBrains Teamcity CI)
Example Project
Any project. Inside a project -> Settings-> Integrations -> JetBrains Teamcity CI)
What is the current bug behavior?
Not able to integrate Gitlab to TeamCity CI.
What is the expected correct behavior?
Correct beaviour when pressing button "Test Settings"
Relevant logs and/or screenshots
/var/log/gitlab/gitlab-rails/production
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
gitlab-rake gitlab:env:info
System information System: Current User: git Using RVM: no Ruby Version: 2.3.3p222 Gem Version: 2.6.6 Bundler Version:1.13.7 Rake Version: 10.5.0 Redis Version: 3.2.5 Git Version: 2.11.1 Sidekiq Version:4.2.7
GitLab information Version: 9.1.1 Revision: d3123f6 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.countercept.mwr HTTP Clone URL: https://gitlab.countercept.mwr/some-group/some-project.git SSH Clone URL: git@gitlab.countercept.mwr:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 5.0.2 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
gitlab-rake gitlab:check SANITIZE=trueChecking GitLab Shell ...
GitLab Shell version >= 5.0.2 ? ... OK (5.0.2) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 12/1 ... ok 13/3 ... ok 3/4 ... ok 3/5 ... ok 5/9 ... ok 7/10 ... ok 17/12 ... ok 18/13 ... ok 18/14 ... ok 3/16 ... ok 32/18 ... ok 2/20 ... ok 31/22 ... ok 31/24 ... ok 39/25 ... ok 31/26 ... ok 6/27 ... ok 23/28 ... ok 3/29 ... ok 48/30 ... ok 44/31 ... ok 21/32 ... ok 21/34 ... ok 46/35 ... ok 48/36 ... ok 48/38 ... ok 47/39 ... ok 48/40 ... ok 48/41 ... ok 21/42 ... ok 48/43 ... ok 21/44 ... ok 6/45 ... ok 7/46 ... ok 21/47 ... ok 47/48 ... ok 53/49 ... ok 53/50 ... ok 44/51 ... ok 47/53 ... ok 47/54 ... ok 47/55 ... ok 47/56 ... ok 34/57 ... ok 34/58 ... ok 59/59 ... ok 47/60 ... ok 6/61 ... ok 41/76 ... ok 50/79 ... ok 59/80 ... ok 65/82 ... ok 38/83 ... ok 59/84 ... ok 38/85 ... ok 38/86 ... ok 63/88 ... ok 35/89 ... ok 21/90 ... ok 21/92 ... repository is empty 6/93 ... ok 54/94 ... ok 67/95 ... repository is empty 6/96 ... ok 64/97 ... ok 69/99 ... ok 62/101 ... ok 34/102 ... ok 63/103 ... ok 69/104 ... ok 21/105 ... ok 21/106 ... ok 59/107 ... ok 59/109 ... ok 61/111 ... ok 59/112 ... ok 61/114 ... ok 69/116 ... ok 51/117 ... ok 59/118 ... ok 61/119 ... ok 59/120 ... ok 7/121 ... repository is empty 7/123 ... ok 69/126 ... ok 35/127 ... ok 63/128 ... ok 69/131 ... ok 29/134 ... ok 74/135 ... ok 76/136 ... ok 68/137 ... ok 50/138 ... ok 51/139 ... ok 74/140 ... ok 51/141 ... ok 69/145 ... ok 6/146 ... ok 77/147 ... ok 63/148 ... ok 69/149 ... ok 69/150 ... ok 63/151 ... ok 51/152 ... ok 75/153 ... ok 75/154 ... ok 59/155 ... ok 59/156 ... ok 59/157 ... ok 29/159 ... ok 61/160 ... ok 59/161 ... ok 59/162 ... ok 34/166 ... ok 82/167 ... ok 75/168 ... ok 41/169 ... ok 82/170 ... ok 82/171 ... ok 82/172 ... ok 69/173 ... ok 41/174 ... ok 59/175 ... ok 59/176 ... ok 75/177 ... ok 82/178 ... ok 69/179 ... ok 63/181 ... ok 77/182 ... ok 69/183 ... ok 63/184 ... ok 51/185 ... ok 69/186 ... ok 69/187 ... ok 54/188 ... ok 63/189 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Access to /var/opt/gitlab/.ssh/authorized_keys: OK Send ping to redis server: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory setup correctly? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) projects have namespace: ... 12/1 ... yes 13/3 ... yes 3/4 ... yes 3/5 ... yes 5/9 ... yes 7/10 ... yes 17/12 ... yes 18/13 ... yes 18/14 ... yes 3/16 ... yes 32/18 ... yes 2/20 ... yes 31/22 ... yes 31/24 ... yes 39/25 ... yes 31/26 ... yes 6/27 ... yes 23/28 ... yes 3/29 ... yes 48/30 ... yes 44/31 ... yes 21/32 ... yes 21/34 ... yes 46/35 ... yes 48/36 ... yes 48/38 ... yes 47/39 ... yes 48/40 ... yes 48/41 ... yes 21/42 ... yes 48/43 ... yes 21/44 ... yes 6/45 ... yes 7/46 ... yes 21/47 ... yes 47/48 ... yes 53/49 ... yes 53/50 ... yes 44/51 ... yes 47/53 ... yes 47/54 ... yes 47/55 ... yes 47/56 ... yes 34/57 ... yes 34/58 ... yes 59/59 ... yes 47/60 ... yes 6/61 ... yes 41/76 ... yes 50/79 ... yes 59/80 ... yes 65/82 ... yes 38/83 ... yes 59/84 ... yes 38/85 ... yes 38/86 ... yes 63/88 ... yes 35/89 ... yes 21/90 ... yes 21/92 ... yes 6/93 ... yes 54/94 ... yes 67/95 ... yes 6/96 ... yes 64/97 ... yes 69/99 ... yes 62/101 ... yes 34/102 ... yes 63/103 ... yes 69/104 ... yes 21/105 ... yes 21/106 ... yes 59/107 ... yes 59/109 ... yes 61/111 ... yes 59/112 ... yes 61/114 ... yes 69/116 ... yes 51/117 ... yes 59/118 ... yes 61/119 ... yes 59/120 ... yes 7/121 ... yes 7/123 ... yes 69/126 ... yes 35/127 ... yes 63/128 ... yes 69/131 ... yes 29/134 ... yes 74/135 ... yes 76/136 ... yes 68/137 ... yes 50/138 ... yes 51/139 ... yes 74/140 ... yes 51/141 ... yes 69/145 ... yes 6/146 ... yes 77/147 ... yes 63/148 ... yes 69/149 ... yes 69/150 ... yes 63/151 ... yes 51/152 ... yes 75/153 ... yes 75/154 ... yes 59/155 ... yes 59/156 ... yes 59/157 ... yes 29/159 ... yes 61/160 ... yes 59/161 ... yes 59/162 ... yes 34/166 ... yes 82/167 ... yes 75/168 ... yes 41/169 ... yes 82/170 ... yes 82/171 ... yes 82/172 ... yes 69/173 ... yes 41/174 ... yes 59/175 ... yes 59/176 ... yes 75/177 ... yes 82/178 ... yes 69/179 ... yes 63/181 ... yes 77/182 ... yes 69/183 ... yes 63/184 ... yes 51/185 ... yes 69/186 ... yes 69/187 ... yes 54/188 ... yes 63/189 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.1.0 ? ... yes (2.3.3) Your git bin path is "/opt/gitlab/embedded/bin/git" Git version >= 2.7.3 ? ... yes (2.11.1) Active users: 61
Checking GitLab ... Finished
Possible fixes
No fixes.