SonarQube for VS Code - Error during start up - H2 issue

My log with error in VS Code (Ubuntu 20.04) when initialize:

2025-11-11 12:30:26.963 [info] Executing /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/jre/21.0.9-linux-x86_64.tar/bin/java -jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/server/sonarlint-ls.jar -stdio -analyzers /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonargo.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonarjava.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonarjavasymbolicexecution.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonarjs.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonarphp.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonarpython.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonarhtml.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonarxml.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonartext.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonariac.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint-vscode-4.35.0-linux-x64/analyzers/sonarlintomnisharp.jar /home/matesi/.vscode/extensions/sonarsource.sonarlint_ondemand-analyzers/sonar-cfamily-plugin/6.73.0.90893/sonarcfamily.jar

2025-11-11 12:30:50.177 [info] [Error - 12:30:50.172] [sonarlint : SonarLint Server RPC sequential executor] Flyway migration skipped or failed: Unable to obtain connection from database: Exception opening port “H2 TCP Server (tcp://localhost:35091)” (port may be in use), cause: “timeout; please check your network configuration, specially the file /etc/hosts” [90061-240]

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SQL State  : 90061

Error Code : 90061

Message    : Exception opening port “H2 TCP Server (tcp://localhost:35091)” (port may be in use), cause: “timeout; please check your network configuration, specially the file /etc/hosts” [90061-240]

2025-11-11 12:30:50.402 [info] [Info - 12:30:50.401] [sonarlint : SonarLint Server RPC sequential executor] Started embedded server on port 64120

2025-11-11 12:30:50.700 [info] [Info - 12:30:50.699] [org.jooq.Constants : SonarLint Server RPC sequential executor]

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@  @@        @@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@        @@@@@@@@@@

@@@@@@@@@@@@@@@@  @@  @@    @@@@@@@@@@

@@@@@@@@@@  @@@@  @@  @@    @@@@@@@@@@

@@@@@@@@@@        @@        @@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@        @@        @@@@@@@@@@

@@@@@@@@@@    @@  @@  @@@@  @@@@@@@@@@

@@@@@@@@@@    @@  @@  @@@@  @@@@@@@@@@

@@@@@@@@@@        @@  @  @  @@@@@@@@@@

@@@@@@@@@@        @@        @@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@  @@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  Thank you for using jOOQ 3.19.15 (Build date: 2024-11-04T08:17:43Z)

2025-11-11 12:30:50.700 [info] [Info - 12:30:50.699] [org.jooq.Constants : SonarLint Server RPC sequential executor]

jOOQ tip of the day: In addition to  and , you can also use  and  to generate regular expressions for the code generator! 


2025-11-11 12:31:09.672 [info] [Warn - 12:31:09.671] [org.springframework.context.annotation.AnnotationConfigApplicationContext : SonarLint Server RPC sequential executor] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.sonarlint.core.issue.IssueService’: Unsatisfied dependency expressed through constructor parameter 13: Error creating bean with name ‘org.sonarsource.sonarlint.core.storage.SonarLintDatabaseService’: Invocation of init method failed

2025-11-11 12:31:09.759 [info] [Error - 12:31:09.758] [org.eclipse.lsp4j.jsonrpc.RemoteEndpoint : SonarLint Server RPC sequential executor] Internal error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.sonarlint.core.issue.IssueService’: Unsatisfied dependency expressed through constructor parameter 13: Error creating bean with name ‘org.sonarsource.sonarlint.core.storage.SonarLintDatabaseService’: Invocation of init method failed

2025-11-11 12:31:09.760 [info] [Error - 12:31:09.758] [org.eclipse.lsp4j.jsonrpc.RemoteEndpoint : SonarLint Server RPC sequential executor] java.util.concurrent.CompletionException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.sonarlint.core.issue.IssueService’: Unsatisfied dependency expressed through constructor parameter 13: Error creating bean with name ‘org.sonarsource.sonarlint.core.storage.SonarLintDatabaseService’: Invocation of init method failed

*at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture$Completion.run(Unknown Source)*

*at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)*

*at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)*

*at java.base/java.lang.Thread.run(Unknown Source)*

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.sonarlint.core.issue.IssueService’: Unsatisfied dependency expressed through constructor parameter 13: Error creating bean with name ‘org.sonarsource.sonarlint.core.storage.SonarLintDatabaseService’: Invocation of init method failed

*at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:804)*

*at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:240)*

*at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1395)*

*at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)*

*at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)*

*at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)*

*at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)*

*at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)*

*at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)*

*at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)*

*at org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1228)*

*at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1194)*

*at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1130)*

*at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:990)*

*at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)*

*at org.sonarsource.sonarlint.core.spring.SpringApplicationContextInitializer.<init>(SpringApplicationContextInitializer.java:42)*

*at org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl.lambda$initialize$5(SonarLintRpcServerImpl.java:159)*

... 5 common frames omitted

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.sonarsource.sonarlint.core.storage.SonarLintDatabaseService’: Invocation of init method failed

*at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:222)*

*at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:429)*

*at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1818)*

*at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:607)*

*at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)*

*at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)*

*at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)*

*at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)*

*at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)*

*at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)*

*at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1770)*

*at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1653)*

*at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:913)*

*at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)*

... 21 common frames omitted

Caused by: org.jooq.exception.DataAccessException: Error getting connection from data source org.h2.jdbcx.JdbcConnectionPool@689b7a8d

*at org.jooq_3.19.15.H2.debug(Unknown Source)*

*at org.jooq.impl.DataSourceConnectionProvider.acquire(DataSourceConnectionProvider.java:90)*

*at org.jooq.impl.DefaultExecuteContext.connection(DefaultExecuteContext.java:651)*

*at org.jooq.impl.AbstractQuery.connection(AbstractQuery.java:388)*

*at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:308)*

*at org.jooq.impl.AbstractDelegatingQuery.execute(AbstractDelegatingQuery.java:115)*

*at org.sonarsource.sonarlint.core.commons.storage.SonarLintDatabase.cleanupNonExistingConnections(SonarLintDatabase.java:111)*

*at org.sonarsource.sonarlint.core.storage.SonarLintDatabaseService.postConstruct(SonarLintDatabaseService.java:48)*

*at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)*

*at java.base/java.lang.reflect.Method.invoke(Unknown Source)*

*at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMethod.invoke(InitDestroyAnnotationBeanPostProcessor.java:457)*

*at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:401)*

*at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:219)*

... 34 common frames omitted

Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: Exception opening port “H2 TCP Server (tcp://localhost:39833)” (port may be in use), cause: “timeout; please check your network configuration, specially the file /etc/hosts” [90061-240]

*at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)*

*at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)*

*at org.h2.message.DbException.get(DbException.java:223)*

*at org.h2.tools.Server.start(Server.java:570)*

*at org.h2.engine.Database.startServer(Database.java:692)*

*at org.h2.engine.Database.<init>(Database.java:321)*

*at org.h2.engine.Engine.openSession(Engine.java:92)*

*at org.h2.engine.Engine.openSession(Engine.java:222)*

*at org.h2.engine.Engine.createSession(Engine.java:201)*

*at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:350)*

*at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)*

*at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:322)*

*at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:352)*

*at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:233)*

*at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:198)*

*at org.jooq.impl.DataSourceConnectionProvider.acquire(DataSourceConnectionProvider.java:87)*

... 45 common frames omitted

2025-11-11 12:31:09.764 [info] [Error - 12:31:09] Server initialization failed.

2025-11-11 12:31:09.764 [info]   Message: Internal error.

Code: -32603

java.util.concurrent.CompletionException: java.lang.IllegalStateException: Could not initialize SonarLint Backend

*at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)*

Caused by: java.lang.IllegalStateException: Could not initialize SonarLint Backend

*at org.sonarsource.sonarlint.ls.backend.BackendService.initialize(BackendService.java:149)*

*at org.sonarsource.sonarlint.ls.backend.BackendServiceFacade.initialize(BackendServiceFacade.java:289)*

*at org.sonarsource.sonarlint.ls.SonarLintLanguageServer.lambda$initialize$2(SonarLintLanguageServer.java:310)*

... 7 more

Caused by: java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.

*at java.base/java.util.concurrent.CompletableFuture.reportGet(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture.get(Unknown Source)*

*at org.sonarsource.sonarlint.ls.backend.BackendService.initialize(BackendService.java:144)*

... 9 more

Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.

*at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)*

*at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)*

*at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:49)*

*at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)*

*at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)*

*at java.base/java.lang.Thread.run(Unknown Source)*

2025-11-11 12:31:09.764 [info] [Error - 12:31:09] SonarLint Language Server client: couldn’t create connection to server.

2025-11-11 12:31:09.764 [info]   Message: Internal error.

Code: -32603

java.util.concurrent.CompletionException: java.lang.IllegalStateException: Could not initialize SonarLint Backend

*at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)*

Caused by: java.lang.IllegalStateException: Could not initialize SonarLint Backend

*at org.sonarsource.sonarlint.ls.backend.BackendService.initialize(BackendService.java:149)*

*at org.sonarsource.sonarlint.ls.backend.BackendServiceFacade.initialize(BackendServiceFacade.java:289)*

*at org.sonarsource.sonarlint.ls.SonarLintLanguageServer.lambda$initialize$2(SonarLintLanguageServer.java:310)*

... 7 more

Caused by: java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.

*at java.base/java.util.concurrent.CompletableFuture.reportGet(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture.get(Unknown Source)*

*at org.sonarsource.sonarlint.ls.backend.BackendService.initialize(BackendService.java:144)*

... 9 more

Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.

*at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)*

*at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)*

*at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:49)*

*at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)*

*at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)*

*at java.base/java.lang.Thread.run(Unknown Source)*

2025-11-11 12:31:09.765 [info] [Error - 12:31:09.763] [org.eclipse.lsp4j.jsonrpc.RemoteEndpoint : ForkJoinPool.commonPool-worker-1] Internal error: java.lang.IllegalStateException: Could not initialize SonarLint Backend

2025-11-11 12:31:09.765 [info] [Error - 12:31:09.763] [org.eclipse.lsp4j.jsonrpc.RemoteEndpoint : ForkJoinPool.commonPool-worker-1] java.util.concurrent.CompletionException: java.lang.IllegalStateException: Could not initialize SonarLint Backend

*at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)*

*at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)*

Caused by: java.lang.IllegalStateException: Could not initialize SonarLint Backend

*at org.sonarsource.sonarlint.ls.backend.BackendService.initialize(BackendService.java:149)*

*at org.sonarsource.sonarlint.ls.backend.BackendServiceFacade.initialize(BackendServiceFacade.java:289)*

*at org.sonarsource.sonarlint.ls.SonarLintLanguageServer.lambda$initialize$2(SonarLintLanguageServer.java:310)*

... 7 common frames omitted

Caused by: java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.

*at java.base/java.util.concurrent.CompletableFuture.reportGet(Unknown Source)*

*at java.base/java.util.concurrent.CompletableFuture.get(Unknown Source)*

*at org.sonarsource.sonarlint.ls.backend.BackendService.initialize(BackendService.java:144)*

... 9 common frames omitted

Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.

*at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)*

*at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)*

*at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:49)*

*at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)*

*at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)*

*at java.base/java.lang.Thread.run(Unknown Source)*


Hi @Mauricio_Teles,

Thank you for reporting this issue! This is a problem related to our new H2 database initialization when the system’s network configuration (specifically /etc/hosts) is not properly set up.

The error occurs because SonarQube for IDE uses an embedded H2 database with AUTO_SERVER mode, which allows multiple SonarQube for IDE to share the same database. This feature requires:

  • A TCP server to bind on localhost
  • Proper hostname resolution

When /etc/hosts is misconfigured, the TCP server times out trying to bind, causing the initialization to fail.

The random ports you see (like 35091, 39833) are expected - H2 automatically finds an available port. The issue is not the port itself, but the inability to bind to localhost at all.

Immediate Solutions

1. Verify and Fix /etc/hosts Configuration

Open your /etc/hosts file and ensure it contains this line:

127.0.0.1 localhost

If not, please share the content of the file with us, that would help us understand and troubleshoot the problem!

After fixing, restart VS Code and try again.

2. Test Localhost Resolution

Verify localhost is properly configured:

ping localhost
ping 127.0.0.1

Both should respond immediately. If not, your network configuration needs attention.

3. Last Resort: Rollback to Previous Version

If the above doesn’t work, you can temporarily use an older version:

  • Go to Extensions (Ctrl+Shift+X)
  • Find “SonarQube for IDE”
  • Click the gear icon → “Install Specific Version”
  • Select version 4.34.0

In the meantime, we are investigating the issue, and we are looking into potential UX improvements for such cases in our next version.

Hope this helps!

Hello @Mauricio_Teles,

Would you mind sharing with us the content of your /etc/hosts file?