SonarQube 7.1
Ldap Plugin 2.2
What Happens
The following error is shown in the logs and sonarqube exits.
2019.02.23 11:01:16 INFO web[o.s.p.l.LdapContextFactory] Test LDAP connection: FAIL
codeanalysis.remoteiv.dk_1 | 2019.02.23 11:01:16 ERROR web[o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
codeanalysis.remoteiv.dk_1 | org.sonar.plugins.ldap.LdapException: Unable to open LDAP connection
…
codeanalysis.remoteiv.dk_1 | 2019.02.23 11:01:18 INFO app[o.s.a.SchedulerImpl] Process [web] is stopped
codeanalysis.remoteiv.dk_1 | 2019.02.23 11:01:19 INFO app[o.s.a.SchedulerImpl] Process [es] is stopped
codeanalysis.remoteiv.dk_1 | 2019.02.23 11:01:19 WARN app[o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
codeanalysis.remoteiv.dk_1 | 2019.02.23 11:01:19 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
What Is Expected
SonarQube does not exit and falls back to use internal user directory. In my case I should be able to log in with the default admin user.
More Info
I have built a custom docker container where my ldap settings are configured in sonar.properties and copied into the container on build.
When inside our network the connection works and everything is fine. When outside our network the error occurs and sonarqube exits.