Actions
Bug #23302
closedUbuntu 22.04 upgrade in 8.0 generate LDAP errors
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
I try to upgrade a rudder-server in 7.3.5 to 8.0-nightly, the installation seems to be ok, but I can see error and the webapp seems to keep loading for a while (several minutes)
023-08-17 11:11:37+0000 ERROR com.normation.rudder.repository.ldap.LDAPGitRevisionProvider - Error when trying to read persisted version of the current technique reference library revision to use. Using the last available from Git. Error was: BackendException: An error occurred; cause was: java.lang.Error: Error during LDAP connection pool initialisation. Exception: LDAPBindException:invalid credentials; Details: null -> com.normation.ldap.sdk.PooledConnectionProvider.liftedTree1$1(LDAPConnectionProvider.scala:245) -> com.normation.ldap.sdk.PooledConnectionProvider.pool(LDAPConnectionProvider.scala:236) -> com.normation.ldap.sdk.PooledConnectionProvider.pool$(LDAPConnectionProvider.scala:235) -> com.normation.ldap.sdk.RWPooledSimpleAuthConnectionProvider.pool$lzycompute(LDAPConnectionProvider.scala:395) -> com.normation.ldap.sdk.RWPooledSimpleAuthConnectionProvider.pool(LDAPConnectionProvider.scala:395) -> com.normation.ldap.sdk.RWPooledSimpleAuthConnectionProvider.$anonfun$newConnection$8(LDAPConnectionProvider.scala:408) -> com.normation.zio$ZioRuntime$.$anonfun$unsafeRun$1(ZioCommons.scala:445) -> com.normation.zio$ZioRuntime$.unsafeRun(ZioCommons.scala:445) -> com.normation.zio$ZioRuntime$.runNow(ZioCommons.scala:428) -> com.normation.zio$UnsafeRun.runNow(ZioCommons.scala:454) -> com.normation.cfclerk.services.impl.GitTechniqueReader.<init>(GitTechniqueReader.scala:211) ;you probably need to increase value ldap.maxPoolSize property in configuration file, please check the documentation - see https://docs.rudder.io/reference/7.0/administration/performance.html#_ldap_configuration [2023-08-17T11:11:40.181Z] ERROR FATAL An error happen during Rudder boot. Rudder will stop now. Error: SystemError: Error during initialization of Rudder; cause was: java.lang.ExceptionInInitializerError: null -> java.lang.ExceptionInInitializerError at bootstrap.liftweb.LiftInitContextListener.contextInitialized(LiftInitContextListener.scala:134) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1049) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:624) at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:984) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:740) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:392) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1304) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:901) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:306) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:532) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:40) at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183) at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:516) at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:151) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:186) at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:462) at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:58) at org.eclipse.jetty.util.Scanner$DiscreteListener.pathAdded(Scanner.java:282) at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:836) at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:802) at org.eclipse.jetty.util.Scanner.scan(Scanner.java:709) at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:597) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:158) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:605) at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:246) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.server.Server.start(Server.java:470) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89) at org.eclipse.jetty.server.Server.doStart(Server.java:415) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1875) Caused by: Exception in thread "zio-fiber-6" com.normation.ldap.sdk.LDAPRudderError$BackendException: BackendException(An error occurred,java.lang.Error: Error during LDAP connection pool initialisation. Exception: LDAPBindException:invalid credentials; Details: null) at com.normation.errors.IOResult.attempt(ZioCommons.scala:95) at com.normation.ldap.sdk.LDAPIOResult.attempt(LDAPIOResult.scala:61) at com.normation.ldap.sdk.LDAPConnectionProvider.withCon(LDAPConnectionProvider.scala:116) at com.normation.rudder.repository.ldap.LDAPGitRevisionProvider.currentId.setID(LDAPGitRevisionProvider.scala:79) at com.normation.cfclerk.services.impl.GitTechniqueReader.currentTechniquesInfoCache(GitTechniqueReader.scala:180) at com.normation.cfclerk.services.impl.GitTechniqueReader.currentTechniquesInfoCache(GitTechniqueReader.scala:178) at com.normation.cfclerk.services.impl.GitTechniqueReader.currentTechniquesInfoCache(GitTechniqueReader.scala:211) at com.normation.zio.ZioRuntime.unsafeRun(ZioCommons.scala:445)
Finally, the rudder-jetty seems to be restarted several times, with the same error, then finally the webapp seems to start up normally
Files
Actions