Error in SonarQube for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.8
  • OS: Linux amd64
  • IDE: IntelliJ IDEA 2025.2.4
  • SonarQube for IDE: 11.4.0.82618

Even with reconect to Sonar instance, the token is not correctly stored.

o.sl.ij.config.global.credentials.CredentialsException: 
                    Could not load token or login/password credentials for connection 'sonar-tcd'.
                    As a workaround, try removing and re-adding the connection.
                    This may also be caused by an issue with your system's credential storage.
                    Check your IDE's password storage settings in Settings > Appearance & Behavior > System Settings > Passwords.
	at o.sl.ij.config.global.credentials.CredentialsService.readCredentials(CredentialsService.kt:70)
	at o.sl.ij.config.global.credentials.CredentialsService.getCredentials$lambda$0(CredentialsService.kt:44)
	at o.sl.ij.util.ThreadUtilsKt.computeOnPooledThread$lambda$5(ThreadUtils.kt:72)
	at c.ij.oa.ap.impl.ApplicationImpl$5.call(ApplicationImpl.java:356)
	at c.ij.util.concurrency.ContextCallable.lambda$call$1(ContextCallable.java:86)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:95)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at c.ij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:167)
	at c.ij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:167)
	at c.ij.util.concurrency.ChildContext.runInChildContext(propagation.kt:173)
	at c.ij.util.concurrency.ChildContext.runInChildContext(propagation.kt:167)
	at c.ij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Hey @kornefalk, thanks for reaching out. We rely on your default IntelliJ settings to save the SonarQube credentials.

Could you share your configuration inside Appearance & Behavior > System Settings > Passwords?

Sure, just using native storage in Keychain (there was not a problem in previous version, and I had to do a complete new installation of IntelliJ with some bugs):

Thanks! What do you mean “with some bugs”?

This seems related to an issue with your machine environment and your IntelliJ. Depending on the keychain you use, you may want to have a look at it.

I have heard people having a similar issue in the past, and they updated their libsecret version to fix the problem (if this is the keychain you’re using).

I have updated libsecret a month ago, from 0.21.7-1, which cased similar problems.

Currently installed:
libsecret-1-0/questing,now 0.21.7-2 amd64 \[installed,automatic\]

Would it work for you if you switch to KeePass in the IntelliJ settings, and see if the issue persists?

I have changed to KeyPass, restarted IDEA, and also rebooted my VM. So far there is no issues with the password storage.

Thanks for letting us know. Do not hesitate to reach out again if you still face an issue. Regarding your original problem, I believe this could be linked to some faulty configuration on your machine regarding libsecret.