Not authorized to access sonarqube using gitlab credential

Hi, I follow this document to delegate authentication to gitlab.
https://docs.sonarqube.org/latest/analysis/gitlab-integration/

I browse to server:9000 and enter my gitlab credential, below error screen is shown.

You’re not authorized to access this page. Please contact the administrator.
Reason: ‘gitlab’ users are not allowed to sign up
image

Below is the access.log generated for this issue.

192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET / HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC2"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/main.m.8194591b.js HTTP/1.1" 200 - "http://gitlabrunner2:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC4"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/vendors-main.m.38e7274b.chunk.js HTTP/1.1" 200 - "http://gitlabrunner2:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC3"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /api/navigation/global HTTP/1.1" 401 - "http://gitlabrunner2:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC7"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /api/users/current HTTP/1.1" 401 - "http://gitlabrunner2:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC6"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/10.m.49da0c75.chunk.js HTTP/1.1" 200 - "http://gitlabrunner2:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC9"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /sessions/new?return_to=%2F HTTP/1.1" 200 - "http://gitlabrunner2:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC/"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/app.m.2a0b40d6.chunk.js HTTP/1.1" 200 - "http://gitlabrunner2:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC+"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/vendors-app.m.55149cfa.chunk.js HTTP/1.1" 200 - "http://gitlabrunner2:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC8"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /api/l10n/index?locale=en-US HTTP/1.1" 200 - "http://gitlabrunner2:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAAC5"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /api/navigation/global HTTP/1.1" 401 - "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADA"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/app.m.2a0b40d6.chunk.js HTTP/1.1" 200 - "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADD"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /api/l10n/index?locale=en-US HTTP/1.1" 200 - "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADB"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/vendors-app.m.55149cfa.chunk.js HTTP/1.1" 200 - "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADC"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/362.m.fbe5b2b3.chunk.js HTTP/1.1" 200 549 "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADE"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/310.m.61a709bf.chunk.js HTTP/1.1" 200 8137 "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADG"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /js/13.m.75a2cab5.chunk.js HTTP/1.1" 200 2203 "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADF"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /api/users/identity_providers HTTP/1.1" 200 125 "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADH"
192.168.10.119 - - [21/Jan/2021:16:26:51 +0800] "GET /images/gitlab-icon-rgb.svg HTTP/1.1" 200 2204 "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADI"
192.168.10.119 - - [21/Jan/2021:16:26:52 +0800] "GET /sessions/init/gitlab?return_to=%2F HTTP/1.1" 302 - "http://gitlabrunner2:9000/sessions/new?return_to=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADJ"
192.168.10.119 - - [21/Jan/2021:16:26:56 +0800] "GET /oauth2/callback/gitlab?code=286c15702fd4d5bdbdc5012c4168ce34c4c7c706272a3263cdbc4d9ca824a2be&state=dqc6ad1nmlq4ujmkhgv2lb4ccg HTTP/1.1" 302 - "http://gitlabsvr/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADK"
192.168.10.119 - - [21/Jan/2021:16:26:56 +0800] "GET /sessions/unauthorized HTTP/1.1" 200 - "http://gitlabsvr/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADL"
192.168.10.119 - - [21/Jan/2021:16:26:56 +0800] "GET /api/navigation/global HTTP/1.1" 401 - "http://gitlabrunner2:9000/sessions/unauthorized" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADM"
192.168.10.119 - - [21/Jan/2021:16:26:56 +0800] "GET /api/l10n/index?locale=en-US&ts=2021-01-21T08%3A26%3A51%2B0000 HTTP/1.1" 304 - "http://gitlabrunner2:9000/sessions/unauthorized" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADN"
192.168.10.119 - - [21/Jan/2021:16:26:56 +0800] "GET /js/368.m.8a929b9c.chunk.js HTTP/1.1" 200 834 "http://gitlabrunner2:9000/sessions/unauthorized" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36" "AXcj99Sm1as93P1xAADO"

FYI, I am using:

  • Sonarqube Community Edition * Version 8.6 (build 39681)
  • GitLab Community Edition 13.6.3

Hi,

That’s about this setting, which you’ll find with the ALM integration settings:
Selection_999(376)

Your GitLab account isn’t already recognized by SonarQube, and you’re not being allowed to “sign up”.

 
HTH,
Ann

I just want to log in with gitlab credential and not sign up. Anyway I can log in to sonarqube after setting it to true. Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.