Errors while adding the ALM config for Gitlab

Hello Everyone:
I am running sonarqube as a container (developer edition: Try Out SonarQube | SonarQube Docs), and I am trying to add the ALM configuration for the Gitlab server. Both of the servers are running on the same instance AWS EC2 instance. So issues:
1- But everytime I add the ALM configuration I get “Could not validate GitLab url. Got an unexpected answer.” and the logs " Fail to process request http://ip_address:9000/api/alm_integrations/check_pat?almSetting=Gitlab_Webhook"
2- I tried to run sonarqube directly (no container) and I got this Failed to initialize connector Connector[HTTP/1.1-9000]
Do you have an idea please?

Hi @nihel ,

Welcome to SonarSource Community! :sonarsource: Sorry for the late reply.

Are you still having these issues? Let’s tackle problem 2 first since that may help understand problem 1 more.

Can you please change the sonar.log.level to DEBUG in your file, attempt startup of SonarQube, then check the $SONARQUBE_HOME/logs folder and check those files? You should see relevant information there that can tell you the issue. Please share this information when you get a chance.


Hello @Joe,

Thank you for your reply!! Appreciate it :slight_smile:
The problem was related to the token I was using when I first generated it, when I added the right scopes SonarQube was able to contact Gitlab.
Thanks a lot!

1 Like

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