Error message :
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
[9](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:10)INFO: Project root configuration file: /github/workspace/sonar-project.properties
[10](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:11)INFO: SonarScanner 4.8.0.2856
[11](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:12)INFO: Java 11.0.18 Alpine (64-bit)
[12](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:13)INFO: Linux 5.15.0-1034-azure amd64
[13](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:14)INFO: User cache: /opt/sonar-scanner/.sonar/cache
[14](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:15)ERROR: SonarQube server [***] can not be reached
[15](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:16)INFO: ------------------------------------------------------------------------
[16](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:17)INFO: EXECUTION FAILURE
[17](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:18)INFO: ------------------------------------------------------------------------
[18](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:19)INFO: Total time: 30.422s
[19](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:20)ERROR: Error during SonarScanner execution
[20](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:21)INFO: Final Memory: 3M/14M
[21](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:22)org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
[22](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:23)INFO: ------------------------------------------------------------------------
[23](https://github.com/agricor/RegTech.UI/actions/runs/4563117857/jobs/8051212662#step:4:24) at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
at java.base/java.security.AccessController.doPrivileged(Native Method)
[27](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:28) at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
[28](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:29) at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
[29](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:30) at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:185)
[30](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:31) at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:123)
[31](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:32) at org.sonarsource.scanner.cli.Main.execute(Main.java:74)
[32](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:33) at org.sonarsource.scanner.cli.Main.main(Main.java:62)
[33](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:34)Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
[34](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:35) at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:42)
[35](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:36) at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
[36](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:37) at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
[37](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:38) at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
[38](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:39) ... 7 more
[39](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:40)Caused by: java.net.SocketTimeoutException: connect timed out
[40](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:41) at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
[41](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:42) at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
[42](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:43) at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
[43](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:44) at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
[44](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:45) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[45](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:46) at java.base/java.net.Socket.connect(Socket.java:609)
[46](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:47) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.platform.Platform.connectSocket(Platform.java:130)
[47](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:48)
org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connectSocket(RealConnection.java:263)
[48](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:49) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connect(RealConnection.java:183)
[49](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:50) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
[50](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:51) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
[51](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:52) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
[52](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:53) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.Transmitter.newExchange(Transmitter.java:169)
[53](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:54) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
[54](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:55) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
[55](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:56) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
[56](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:57) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
[57](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:58) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
[58](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:59) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
[59](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:60) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
[60](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:61) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
[61](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:62) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
[62](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:63) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
[63](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:64) at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
[64](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:65) at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
[65](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:66) at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.execute(RealCall.java:81)
[66](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:67) at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:115)
[67](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:68) at org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:99)
[68](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:69) at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:39)
[69](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:70) ... 10 more
[70](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:71)ERROR:
[71](https://github.com/agricor/RegTech.UI/actions/runs/4563713233/jobs/8055152449#step:4:72)ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
We are using the below github actions to run sonar analysis.
name: Sonar-Analysis
on:
push:
branches:
- dev
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
build:
name: Sonar-Analysis
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
sonar-project,propeties file:
sonar.projectKey=**********
sonar.sources=.
sonar.sourceEncoding=UTF-8
sonar.exclusions=src/tests/**
sonar.coverage.exclusions=src/tests/**
We are using : SonarQube Developer Version : 9.4.0.54424
We are running the github actions workflow on react
we have used the " Official SonarQube Scan" github actions workflow.
Official SonarQube Scan · Actions · GitHub Marketplace
Can any one help us how we can resolve the issue.