We have SonarQube EE trail version (i.e,10.1.0.73491) installed and trying to integrate it with Azure DevOps.
We are facing issue while configuring Azure DevOps in SonarQube server. We are providing correct Azure DevOps Organization URL and PAT with code → read&write permissions, PAT generator has project collection administrator access and still it is unable to connect or fetch repo details and getting below error.
Any assistance would be really helpful.
Error : “Invalid Azure URL or Personal Access Token”
It looks like your SonarQube server is unable to access both Azure DevOps and update.sonarsource.org
2023.08.23 06:41:15 ERROR web[][o.s.a.c.a.AzureDevOpsHttpClient] Unable to contact Azure DevOps server for request [https://dev.azure.com/*******/_apis/projects?api-version=3.0]: [Failed to connect to dev.azure.com/<IP addres>:443]
2023.08.23 06:32:37 ERROR web[AYohF5pjIJfrG/izAAAu][o.s.s.p.UpdateCenterClient] Fail to connect to update center
org.sonar.api.utils.SonarException: Fail to download: https://update.sonarsource.org/update-center.properties
Does your SonarQube server have access to the internet?
No, sonar server does not have full access to internet. It would be restricted for certain sites.
Is it required to have full internet? Any workaround available?
Well… if it’s going to get in touch with Azure DevOps for integration (project onboarding, reporting pull request status)… it’s going to have to have access to Azure DevOps.
ERROR web[o.s.s.p.w.PlatformServletContextListener] Web server startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdk.internal.loader.ClassLoaders$AppClassLoader@659e0bfd-org.sonar.server.platform.db.EmbeddedDatabaseFactory’: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Unable to start database
Hi Colin,
I have tried after doing small workaround like changing sonar.web.javaOpts to Xmx2g, and from the troubleshooting doc I have removed data/es8 directiories. Both ways didnt work, still facing same below error.