Service won't start

java.lang.IllegalStateException: org.springframework.context.annotation.AnnotationConfigApplicationContext@3eedca90 has been closed already
	at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1138)
	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1171)
	at org.sonar.core.platform.SpringComponentContainer.getOptionalComponentByType(SpringComponentContainer.java:145)
	at org.sonar.server.platform.platformlevel.PlatformLevel.getOptional(PlatformLevel.java:97)
	at org.sonar.server.platform.platformlevel.PlatformLevel.lambda$getWebServer$0(PlatformLevel.java:149)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at org.sonar.server.platform.platformlevel.PlatformLevel.getWebServer(PlatformLevel.java:149)
	at org.sonar.server.platform.platformlevel.PlatformLevel.addIfStartupLeader(PlatformLevel.java:115)
	at org.sonar.server.platform.platformlevel.PlatformLevel4.configureLevel(PlatformLevel4.java:281)
	at org.sonar.server.platform.platformlevel.PlatformLevel.configure(PlatformLevel.java:70)
	at org.sonar.server.platform.PlatformImpl.start(PlatformImpl.java:193)
	at org.sonar.server.platform.PlatformImpl.startLevel34Containers(PlatformImpl.java:177)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:344)
	at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:105)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:328)
	at java.base/java.lang.Thread.run(Thread.java:833)

Hi,

That’s not a lot to go on. At a minimum, can we have the full log, from server startup (attempt)?

 
Ann

Sonar9.9Error.txt (145.4 KB)

Hi,

Thanks. This troubleshooting guide includes some tips on reading stacktraces. In particular, you want to pay attention to the Caused by lines, and the ones at the bottom of a stacktrace are usually more helpful/relevant than the ones at the top. In this case:

> Caused by: org.sonar.auth.ldap.LdapException: Unable to open LDAP connection
> ...
> Caused by: javax.naming.CommunicationException: simple bind failed: ldappw.ga.com:636
> ...
> Caused by: java.net.SocketException: Connection or outbound has closed 

That last one, of course, is very close to what you provided initially. But without broader context it wasn’t very helpful. Looking at the larger stacktrace, we can see that this is a problem in your LDAP configuration. You should consult your LDAP admins.

 
HTH,
Ann

@ganncamp thank you! this is intersting because none of the LDAP configurations were not changed, we upgraded application to the higher version and updated the Sonar.properties file

we are on version 9.2, can we jump from 9.2 to 9.9? or we should upgrade from 9.2 t–>9.3–>9.4 …–> 9.9?

What is my upgrade path from 9.2?

Hi,

Yes, you can jump from 9.2 straight to 9.9.

 
Ann