I am using gitlab ci for connecting sonarqube to my code.
Followed the same instructions as given in sonarqube portal to connect with gitlab CI.
but getting the following error.
Hi!
Is your gitlab build agent running on the same machine as SonarQube?
You are using localhost:9000 so if SonarQube runs on another machine you should use the correct hostname.
Even if i try to put that ip i am getting same issue..
SonarQube server [http://18.183.117.92:9000] can not be reached
If i try to run the docker image of sonarqube i am getting following error..
root@ip-172-31-11-139:/# docker run -it a5403b12a988
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.8.0.2856
INFO: Java 11.0.18 Alpine (64-bit)
INFO: Linux 5.15.0-1028-aws amd64
INFO: User cache: /opt/sonar-scanner/.sonar/cache
ERROR: SonarQube server [http://localhost:9000] can not be reached
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.769s
INFO: Final Memory: 3M/15M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
org.sonarsource.sc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does the firewall allow the connections?
Or maybe you need to use some proxy settings?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Everything seems to be fine...
can u suggest any other way
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried using curl to test the connection to SonarQube from the same build agent? Maybe it will give you a better error.
It's difficult for me or other community members to troubleshoot network related issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.