Jira integration not working after upgrade to 16.x
Summary
(We think) after upgrading to GitLab 16 (Community), the Jira Connect system doesn't seem to be working. Prior to the upgrade, we were able to use it and we linked a repo to Jira successfully, giving us the Development Panel integration.
However, since upgrading, for some reason, OAuth2 seems to be failing. Once the token has been exchanged, Jira is getting invalid_token
errors.
Steps to reproduce
- Install the custom jira connect app following the relevant documentation (the non-GitLab.com one)
- Click on "Get Started" on the app in Jira
- Attempt to sign in to the app with the GitLab instance
- The authentication attempt goes through
- Open browser console
- See that GitLab is giving the user an
invalid_token
error on requests to the API
What is the current bug behavior?
The token provided to Jira is supposedly invalid or the app is not storing it correctly
What is the expected correct behavior?
The token provided to Jira is valid and can be used to authenticate against the API.
Relevant logs and/or screenshots
N/a, no logs are available for this (i.e. no errors seen in the log tail)
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 20.04 Current User: git Using RVM: no Ruby Version: 3.0.6p216 Gem Version: 3.4.13 Bundler Version:2.4.14 Rake Version: 13.0.6 Redis Version: 6.2.11 Sidekiq Version:6.5.7 Go Version: unknown GitLab information Version: 16.1.2 Revision: e60fc11f2d3 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 13.11 URL: https://[redacted] HTTP Clone URL: https://[redacted]/some-group/some-project.git SSH Clone URL: git@[redacted]:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 14.23.0 Repository storages: - default: unix:/var/opt/gitlab/gitaly/gitaly.socket GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
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 >= 14.23.0 ? ... OK (14.23.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: 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 (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Cable config exists? ... yes Resque config exists? ... 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. Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 6/6 ... yes 9/9 ... yes 12/11 ... yes 14/13 ... yes 6/14 ... yes 15/15 ... yes 125/16 ... yes 18/17 ... yes 19/18 ... yes 14/19 ... yes 10/21 ... yes 20/22 ... yes 20/23 ... yes 21/24 ... yes 20/25 ... yes 6/26 ... yes 20/27 ... yes 6/28 ... yes 20/29 ... yes 20/30 ... yes 20/31 ... yes 20/32 ... yes 6/33 ... yes 60/34 ... yes 12/35 ... yes 12/36 ... yes 12/37 ... yes 12/38 ... yes 12/39 ... yes 6/40 ... yes 10/41 ... yes 6/42 ... yes 25/44 ... yes 15/45 ... yes 26/46 ... yes 28/48 ... yes 6/49 ... yes 18/50 ... yes 6/51 ... yes 31/52 ... yes 31/53 ... yes 6/54 ... yes 20/55 ... yes 9/56 ... yes 33/57 ... yes 18/58 ... yes 14/59 ... yes 14/60 ... yes 34/62 ... yes 35/63 ... yes 6/65 ... yes 5/66 ... yes 6/67 ... yes 20/69 ... yes 6/70 ... yes 6/72 ... yes 18/74 ... yes 6/75 ... yes 10/76 ... yes 6/77 ... yes 10/78 ... yes 18/79 ... yes 18/80 ... yes 18/81 ... yes 18/82 ... yes 18/83 ... yes 18/84 ... yes 18/85 ... yes 18/86 ... yes 18/87 ... yes 18/88 ... yes 18/89 ... yes 18/90 ... yes 18/91 ... yes 18/92 ... yes 18/93 ... yes 18/94 ... yes 18/95 ... yes 18/96 ... yes 18/97 ... yes 18/98 ... yes 18/99 ... yes 18/100 ... yes 18/101 ... yes 18/102 ... yes 18/103 ... yes 18/104 ... yes 18/105 ... yes 18/106 ... yes 18/107 ... yes 10/108 ... yes 14/109 ... yes 5/110 ... yes 6/111 ... yes 6/112 ... yes 44/114 ... yes 32/115 ... yes 6/116 ... yes 18/117 ... yes 6/118 ... yes 6/119 ... yes 6/120 ... yes 18/121 ... yes 18/122 ... yes 34/124 ... yes 6/125 ... yes 48/126 ... yes 31/128 ... yes 18/129 ... yes 48/130 ... yes 50/131 ... yes 51/133 ... yes 20/134 ... yes 18/136 ... yes 5/137 ... yes 48/138 ... yes 46/139 ... yes 50/140 ... yes 18/141 ... yes 6/142 ... yes 55/143 ... yes 51/144 ... yes 31/146 ... yes 18/147 ... yes 14/148 ... yes 14/149 ... yes 20/150 ... yes 20/151 ... yes 14/152 ... yes 20/153 ... yes 5/157 ... yes 18/159 ... yes 6/160 ... yes 31/161 ... yes 17/162 ... yes 6/163 ... yes 31/164 ... yes 19/165 ... yes 6/166 ... yes 31/167 ... yes 31/168 ... yes 17/169 ... yes 31/170 ... yes 6/171 ... yes 20/173 ... yes 20/176 ... yes 20/177 ... yes 20/178 ... yes 20/179 ... yes 31/180 ... yes 6/181 ... yes 31/182 ... yes 5/183 ... yes 5/184 ... yes 20/185 ... yes 5/186 ... yes 31/187 ... yes 31/188 ... yes 20/189 ... yes 54/192 ... yes 17/193 ... yes 61/194 ... yes 21/195 ... yes 61/196 ... yes 20/197 ... yes 62/198 ... yes 62/199 ... yes 6/200 ... yes 6/201 ... yes 5/202 ... yes 6/204 ... yes 17/206 ... yes 31/207 ... yes 6/208 ... yes 20/209 ... yes 46/210 ... yes 46/211 ... yes 6/212 ... yes 31/213 ... yes 5/214 ... yes 21/215 ... yes 64/216 ... yes 50/217 ... yes 50/218 ... yes 20/219 ... yes 46/220 ... yes 18/221 ... yes 5/222 ... yes 13/223 ... yes 17/225 ... yes 5/226 ... yes 17/227 ... yes 5/228 ... yes 3/229 ... yes 18/230 ... yes 20/231 ... yes 20/232 ... yes 31/233 ... yes 18/234 ... yes 50/235 ... yes 31/236 ... yes 31/237 ... yes 31/238 ... yes 18/239 ... yes 5/240 ... yes 3/242 ... yes 6/243 ... yes 31/244 ... yes 31/245 ... yes 5/246 ... yes 46/247 ... yes 31/248 ... yes 6/249 ... yes 20/251 ... yes 50/252 ... yes 18/253 ... yes 18/254 ... yes 18/255 ... yes 31/256 ... yes 31/258 ... yes 10/260 ... yes 31/261 ... yes 20/262 ... yes 69/263 ... yes 69/264 ... yes 20/265 ... yes 20/266 ... yes 44/267 ... yes 73/268 ... yes 20/269 ... yes 6/270 ... yes 17/271 ... yes 6/273 ... yes 17/274 ... yes 43/275 ... yes 17/276 ... yes 49/277 ... yes 49/278 ... yes 49/279 ... yes 75/280 ... yes 18/281 ... yes 18/282 ... yes 76/284 ... yes 76/285 ... yes 76/286 ... yes 76/287 ... yes 18/288 ... yes 48/289 ... yes 3/290 ... yes 31/291 ... yes 43/292 ... yes 6/293 ... yes 13/294 ... yes 75/295 ... yes 18/296 ... yes 31/297 ... yes 50/300 ... yes 80/301 ... yes 80/302 ... yes 80/303 ... yes 80/304 ... yes 50/305 ... yes 48/306 ... yes 48/307 ... yes 43/308 ... yes 81/309 ... yes 56/311 ... yes 75/312 ... yes 69/313 ... yes 87/314 ... yes 69/315 ... yes 46/316 ... yes 31/317 ... yes 101/318 ... yes 89/319 ... yes 89/320 ... yes 90/321 ... yes 89/322 ... yes 94/323 ... yes 91/324 ... yes 91/325 ... yes 91/326 ... yes 91/327 ... yes 91/328 ... yes 75/329 ... yes 44/330 ... yes 91/331 ... yes 91/332 ... yes 91/333 ... yes 91/334 ... yes 91/335 ... yes 91/336 ... yes 91/337 ... yes 50/338 ... yes 91/339 ... yes 96/340 ... yes 43/341 ... yes 97/342 ... yes 69/343 ... yes 91/344 ... yes 75/345 ... yes 69/346 ... yes 69/347 ... yes 69/348 ... yes 69/349 ... yes 18/350 ... yes 75/351 ... yes 18/352 ... yes 46/354 ... yes 83/356 ... yes 100/357 ... yes 18/360 ... yes 101/362 ... yes 17/363 ... yes 3/364 ... yes 96/365 ... yes 6/366 ... yes 75/367 ... yes 75/368 ... yes 31/369 ... yes 31/370 ... yes 50/371 ... yes 102/372 ... yes 75/373 ... yes 100/374 ... yes 31/375 ... yes 69/376 ... yes 105/377 ... yes 17/378 ... yes 18/379 ... yes 31/380 ... yes 593/381 ... yes 13/382 ... yes 13/383 ... yes 108/384 ... yes 5/385 ... yes 108/386 ... yes 31/387 ... yes 108/388 ... yes 91/391 ... yes 52/393 ... yes 18/395 ... yes 5/396 ... yes 50/398 ... yes 97/399 ... yes 5/400 ... yes 10/401 ... yes 112/402 ... yes 31/403 ... yes 5/404 ... yes 18/405 ... yes 18/406 ... yes 97/407 ... yes 97/408 ... yes 18/409 ... yes 50/410 ... yes 50/411 ... yes 125/412 ... yes 71/413 ... yes 97/414 ... yes 44/415 ... yes 97/416 ... yes 31/417 ... yes 6/418 ... yes 75/419 ... yes 5/420 ... yes 17/421 ... yes 6/422 ... yes 6/423 ... yes 128/424 ... yes 97/425 ... yes 31/426 ... yes 31/427 ... yes 100/428 ... yes 5/429 ... yes 43/430 ... yes 5/431 ... yes 50/432 ... yes 31/433 ... yes 6/434 ... yes 18/435 ... yes 60/436 ... yes 18/438 ... yes 125/439 ... yes 96/440 ... yes 125/441 ... yes 6/442 ... yes 13/443 ... yes 31/444 ... yes 5/445 ... yes 56/447 ... yes 93/448 ... yes 125/449 ... yes 75/450 ... yes 555/451 ... yes 75/452 ... yes 6/453 ... yes 6/454 ... yes 50/455 ... yes 563/456 ... yes 568/457 ... yes 568/459 ... yes 43/462 ... yes 563/463 ... yes 568/464 ... yes 6/465 ... yes 128/466 ... yes 572/467 ... yes 568/468 ... yes 572/469 ... yes 572/470 ... yes 5/471 ... yes 128/472 ... yes 6/473 ... yes 6/474 ... yes 606/477 ... yes 610/478 ... yes 96/479 ... yes 625/480 ... yes 6/481 ... yes 43/482 ... yes 31/483 ... yes 6/484 ... yes 17/485 ... yes 5/486 ... yes 604/489 ... yes 75/490 ... yes 130/491 ... yes 75/492 ... yes 100/493 ... yes 128/494 ... yes 635/497 ... yes 639/498 ... yes 50/499 ... yes 50/500 ... yes 75/501 ... yes 10/502 ... yes 128/503 ... yes 51/504 ... yes 649/505 ... yes 102/506 ... yes 77/507 ... yes 102/508 ... yes 649/509 ... yes 98/510 ... yes 655/511 ... yes 660/512 ... yes 660/514 ... yes 96/515 ... yes 6/516 ... yes 43/517 ... yes 655/518 ... yes 655/519 ... yes 97/520 ... yes 128/521 ... yes 681/522 ... yes 683/523 ... yes 683/524 ... yes 683/525 ... yes 683/526 ... yes 683/527 ... yes 683/528 ... yes 608/529 ... yes 46/530 ... yes 683/532 ... yes 608/533 ... yes 128/534 ... yes 6/535 ... yes 683/536 ... yes 98/537 ... yes 683/538 ... yes 46/539 ... yes 6/540 ... yes 6/541 ... yes 128/542 ... yes 31/543 ... yes 6/544 ... yes 128/545 ... yes 6/546 ... yes 6/547 ... yes 42/548 ... yes 102/549 ... yes 31/550 ... yes 6/551 ... yes 128/552 ... yes 652/553 ... yes 716/554 ... yes 43/555 ... yes 722/556 ... yes 10/558 ... yes Redis version >= 6.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (3.0.6) Git user has default SSH configuration? ... yes Active users: ... 96 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
Unknown