Jira development panel cannot retrieve repos for Jira Hosted

Summary

It was working in the past. But after we upgraded to Jira 8.0.0 and Gitlab 11.8 in February Jira cannot acces repos anymore. Did also an update to most recent gitlab ee 11.9.1 with no difference

Steps to reproduce

  1. Setup JDP like described in docs
  2. The authentication succeeds, but repositories cannot be load: Failed adding the account: [Error retrieving list of repositories]

I deleted all jira dvcs account and also the gitlab jira application account multiple times but with no success.

What is the current bug behavior?

Gitlab returns 404

/var/log/gitlab/nginx/gitlab_access.log

178.250.XXX.XXX - - [27/Mar/2019:20:47:26 +0100] "GET /api/v3/orgs/osv/repos?per_page=100&page=1 HTTP/1.1" 404 27 "" "Jira DVCS Connector/5.1.3"
178.250.XXX.XXX - - [27/Mar/2019:20:47:26 +0100] "GET /api/v3/users/osv/repos?per_page=100&page=1 HTTP/1.1" 404 27 "" "Jira DVCS Connector/5.1.3"

/var/log/gitlab/gitlab-rails/api_json.log

{"time":"2019-03-27T20:05:50.107Z","severity":"INFO","duration":0.53,"db":0,"view":0.53,"status":404,"method":"GET","path":"/api/v3/orgs/marketing_pioneers/repos","params":[{"key":"per_page","value":"100"},{"key":"page","value":"1"}],"host":"gitlab.DOMAIN.eu","ip":"178.250.XXX.XXX, 178.250.XXX.XXX","ua":"Jira DVCS Connector/5.1.3","route":"/api/:version/orgs/:namespace/repos","queue_duration":11.1,"gitaly_calls":0,"correlation_id":"X0VNWXBO5p2"}
{"time":"2019-03-27T20:05:50.127Z","severity":"INFO","duration":0.74,"db":0,"view":0.74,"status":404,"method":"GET","path":"/api/v3/users/marketing_pioneers/repos","params":[{"key":"per_page","value":"100"},{"key":"page","value":"1"}],"host":"gitlab.DOMAIN.eu","ip":"178.250.XXX.XXX, 178.250.XXX.XXX","ua":"Jira DVCS Connector/5.1.3","route":"/api/:version/users/:namespace/repos","queue_duration":5.31,"gitaly_calls":0,"correlation_id":"AAh9owIzYc5"}

What is the expected correct behavior?

The repos in Jira but instead just the group name with no repos

Relevant logs and/or screenshots

Screenshot_2019-03-27_at_21.06.08

Screenshot_2019-03-27_at_21.19.07

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Ubuntu 16.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.5.3p105 Gem Version: 2.7.6 Bundler Version:1.16.6 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.5 Go Version: unknown

GitLab information Version: 11.9.1-ee Revision: b50dc44 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.11 URL: https://gitlab.cts-media.eu HTTP Clone URL: https://gitlab.cts-media.eu/some-group/some-project.git SSH Clone URL: git@gitlab.cts-media.eu:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: bitbucket

GitLab Shell Version: 8.7.1 Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check

(Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 8.7.1 ? ... OK (8.7.1) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK

Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Gitaly ...

Gitaly: ... default ... OK

Checking Gitaly ... Finished

Checking Sidekiq ...

Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Checking Reply by email ...

IMAP server credentials are correct? ... yes Init.d configured correctly? ... skipped MailRoom running? ... skipped

Checking Reply by email ... Finished

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab App ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... no Try fixing it: sudo chown -R git /var/opt/gitlab/gitlab-rails/uploads sudo find /var/opt/gitlab/gitlab-rails/uploads -type f -exec chmod 0644 {} ; sudo find /var/opt/gitlab/gitlab-rails/uploads -type d -not -path /var/opt/gitlab/gitlab-rails/uploads -exec chmod 0700 {} ; For more information see: doc/install/installation.md in section "GitLab" Please fix the error above and rerun the checks. 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: ... 3/2 ... yes 3/4 ... yes 4/5 ... yes 5/6 ... yes 2/8 ... yes 2/9 ... yes 4/13 ... yes 2/14 ... yes 26/15 ... yes 28/16 ... yes 28/17 ... yes 29/18 ... yes 30/19 ... yes 33/20 ... yes 34/21 ... yes 34/22 ... yes 34/23 ... yes 51/25 ... yes 34/26 ... yes 2/28 ... yes 30/29 ... yes 3/30 ... yes 3/31 ... yes 3/32 ... yes 37/33 ... yes 2/34 ... yes 2/35 ... yes 5/36 ... yes 41/37 ... yes 2/38 ... yes 51/39 ... yes 15/40 ... yes 43/41 ... yes 43/42 ... yes 2/43 ... yes 51/45 ... yes 51/46 ... yes 51/47 ... yes 2/48 ... yes 51/49 ... yes 51/50 ... yes 51/51 ... yes 51/53 ... yes 60/54 ... yes 60/55 ... yes 63/56 ... yes 63/58 ... yes 51/59 ... yes 51/60 ... yes 37/62 ... yes 26/63 ... yes 4/64 ... yes 26/65 ... yes 2/66 ... yes 51/67 ... yes 51/68 ... yes 28/70 ... yes 63/71 ... yes 30/72 ... yes 88/74 ... yes 88/75 ... yes 88/76 ... yes 2/77 ... yes 94/78 ... yes 2/79 ... yes 60/80 ... yes 113/81 ... yes 102/82 ... yes 26/84 ... yes 107/85 ... yes 15/86 ... yes 113/87 ... yes 114/88 ... yes 114/89 ... yes 114/90 ... yes 114/91 ... yes 114/92 ... yes 114/93 ... yes 114/94 ... yes 114/95 ... yes 114/96 ... yes 114/97 ... yes 107/98 ... yes 113/99 ... yes 113/100 ... yes 107/101 ... yes 123/102 ... yes 113/103 ... yes 15/104 ... yes 43/105 ... yes 107/106 ... yes 129/107 ... yes 129/108 ... yes 126/109 ... yes 129/110 ... yes 129/111 ... yes 129/112 ... yes 130/113 ... yes 132/114 ... yes 132/115 ... yes 2/116 ... yes 129/117 ... yes 135/118 ... yes 137/119 ... yes 136/120 ... yes 141/121 ... yes 141/122 ... yes 107/123 ... yes 129/124 ... yes 144/125 ... yes 141/126 ... yes 141/127 ... yes 147/128 ... yes 133/129 ... yes 135/130 ... yes 133/131 ... yes 135/132 ... yes 135/133 ... yes 135/134 ... yes 135/135 ... yes 135/136 ... yes 141/137 ... yes 154/138 ... yes 155/139 ... yes 155/140 ... yes 156/141 ... yes 157/142 ... yes 141/143 ... yes 107/144 ... yes 132/145 ... yes 135/146 ... yes 135/147 ... yes 37/148 ... yes 162/149 ... yes 141/150 ... yes 163/151 ... yes 141/152 ... yes 141/153 ... yes 141/154 ... yes 141/155 ... yes 133/156 ... yes 164/157 ... yes 135/158 ... yes 135/159 ... yes 135/160 ... yes 141/161 ... yes 135/162 ... yes 135/163 ... yes 135/164 ... yes 135/165 ... yes 135/166 ... yes 135/167 ... yes 144/168 ... yes 135/169 ... yes 144/170 ... yes 167/177 ... yes 147/178 ... yes 26/179 ... yes 170/180 ... yes 170/181 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.5.3) Git version >= 2.18.0 ? ... yes (2.18.1) Git user has default SSH configuration? ... no Try fixing it: mkdir ~/gitlab-check-backup-1553717689 sudo mv /var/opt/gitlab/.ssh/bitbucket_rsa.pub ~/gitlab-check-backup-1553717689 sudo mv /var/opt/gitlab/.ssh/bitbucket_rsa ~/gitlab-check-backup-1553717689 sudo mv /var/opt/gitlab/.ssh/config ~/gitlab-check-backup-1553717689 For more information see: doc/ssh/README.md in section "SSH on the GitLab server" Please fix the error above and rerun the checks. Active users: ... 49 Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Possible fixes

no 🙁

Assignee Loading
Time tracking Loading