Unable to get GitLab integration working

Using sonarqube:8.7.1-community docker image.
I’m trying to get sonarqube integrated with our own instance of Gitlab. I’m unable to do so. I followed instructions GitLab Integration | SonarQube Docs and managed to configure the Authentication part. It required providing custom truststore with our internal root certificate for GitLab.
I cannot get SQ to import any projects though. After setting the ALM integration i get the message “Could not validate GitLab url. Got an unexpected answer.”
There are also no errors in logs. The olny thing I see is:
2021.04.06 09:26:20 DEBUG web[AXimXEDnGMiDDIniAAA4][o.s.a.c.g.GitlabHttpClient] get projects : [https://gitlab.address/api/v4/projects]

I don’t even know where to search for the problem.

Hi, if you change SonarQube log level to debug, what do you get in the logs?

Hi, I already posted the one debug log line in original post:
2021.04.06 09:26:20 DEBUG web[AXimXEDnGMiDDIniAAA4][o.s.a.c.g.GitlabHttpClient] get projects : [https://gitlab.address/api/v4/projects]
No more logs are printed. :frowning:

@pierreguillot do these logs help?

I’m with sonarqube 8.9
I have the same problem, with the following output in logs:
2021.05.12 12:31:26 ERROR web[AXlXDTud4dYoXLV7AAMu][o.s.a.c.g.GitlabHttpClient] Gitlab API call to [http://gitlab/api/v4/projects] failed with 403 http code. gitlab response content : [ \n \n \n \n \n \n \n\nhtml,body{height:100%;padding:0;margin:0;}.oc{display:table;width:100%;height:100%;}.ic{display:table-cell;vertical-align:middle;height:100%;}div.msg{display:block;border:1px solid #30c;padding:0;width:500px;font-family:helvetica,sans-serif;margin:10px auto;}h1{font-weight:bold;color:#fff;font-size:14px;margin:0;padding:2px;text-align:center;background: #30c;}p{font-size:12px;margin:15px auto;width:75%;font-family:helvetica,sans-serif;text-align:left;}Access Denied

Access Denied

The page you requested has been blocked by a firewall policy restriction.

\r\n]