Actions
Bug #4411
closedrudder-web won't start due to an error about "java.util.NoSuchElementException: key not found: AUTHORIZED_NETWORKS"
Status:
Released
Priority:
1 (highest)
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
When starting a freshly installed rudder-web, I see this in /var/log/rudder/webapp/2014_01_28.stderrout.log:
[2014-01-28 18:36:29] INFO com.normation.cfclerk.services.impl.GitRepositoryProviderImpl - Git directory was not initialised: create a new git repository into folder /var/rudder/configuration-repository and add all its content as initial release [2014-01-28 18:36:29] INFO com.normation.rudder.repository.ldap.LDAPGitRevisionProvider - No persisted version of the current technique reference library revision to use where found, init to last available from Git repository [2014-01-28 18:36:30] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Error when processing technique '/system/common/1.0/metadata.xml' java.util.NoSuchElementException: key not found: AUTHORIZED_NETWORKS at scala.collection.MapLike$class.default(MapLike.scala:228) ~[scala-library-2.10.3.jar:na] 2014-01-28 18:36:30.801:WARN::FAILED o.e.j.w.WebAppContext{/rudder,file:/tmp/jetty-127.0.0.1-8080-rudder.war-_rudder-any-/webapp/},/opt/rudder/jetty7/webapps/rudder.war: java.lang.ExceptionInInitializerError 2014-01-28 18:36:30.801:WARN::Unable to reach node goal: started java.lang.ExceptionInInitializerError at bootstrap.liftweb.LiftInitContextListener.contextInitialized(LiftInitContextListener.scala:84) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:641) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:228) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1181) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36) at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:180) at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:481) at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:137) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:137) at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:50) at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:470) at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:382) at org.eclipse.jetty.util.Scanner.scan(Scanner.java:339) at org.eclipse.jetty.util.Scanner.start(Scanner.java:275) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:114) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:542) at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:214) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.Server.doStart(Server.java:226) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1061) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:994) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.jetty.start.Main.invokeMain(Main.java:477) at org.eclipse.jetty.start.Main.start(Main.java:623) at org.eclipse.jetty.start.Main.parseCommandLine(Main.java:273) at org.eclipse.jetty.start.Main.main(Main.java:81) Caused by: java.util.NoSuchElementException: key not found: AUTHORIZED_NETWORKS at scala.collection.MapLike$class.default(MapLike.scala:228) at scala.collection.AbstractMap.default(Map.scala:58) at scala.collection.MapLike$class.apply(MapLike.scala:141) at scala.collection.AbstractMap.apply(Map.scala:58) at com.normation.cfclerk.services.impl.SystemVariableSpecServiceImpl.get(SystemVariableSpecServiceImpl.scala:123) at com.normation.cfclerk.xmlparsers.TechniqueParser$$anonfun$parseSysvarSpecs$1.apply(TechniqueParser.scala:145) at com.normation.cfclerk.xmlparsers.TechniqueParser$$anonfun$parseSysvarSpecs$1.apply(TechniqueParser.scala:145) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.Iterator$class.foreach(Iterator.scala:727) at scala.collection.AbstractIterator.foreach(Iterator.scala:1157) at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at com.normation.cfclerk.xmlparsers.TechniqueParser.parseSysvarSpecs(TechniqueParser.scala:145) at com.normation.cfclerk.xmlparsers.TechniqueParser.parseXml(TechniqueParser.scala:87) at com.normation.cfclerk.services.impl.GitTechniqueReader.processTechnique(GitTechniqueReader.scala:528) at com.normation.cfclerk.services.impl.GitTechniqueReader.processTechniques(GitTechniqueReader.scala:426) at com.normation.cfclerk.services.impl.GitTechniqueReader.processRevTreeId(GitTechniqueReader.scala:404) at com.normation.cfclerk.services.impl.GitTechniqueReader.liftedTree1$1(GitTechniqueReader.scala:175) at com.normation.cfclerk.services.impl.GitTechniqueReader.<init>(GitTechniqueReader.scala:174) at bootstrap.liftweb.RudderConfig$.techniqueReader$lzycompute(AppConfig.scala:872) at bootstrap.liftweb.RudderConfig$.techniqueReader(AppConfig.scala:864) at bootstrap.liftweb.RudderConfig$.techniqueRepositoryImpl$lzycompute(AppConfig.scala:1194) at bootstrap.liftweb.RudderConfig$.techniqueRepositoryImpl(AppConfig.scala:1192) at bootstrap.liftweb.RudderConfig$.<init>(AppConfig.scala:284) at bootstrap.liftweb.RudderConfig$.<clinit>(AppConfig.scala) at bootstrap.liftweb.LiftInitContextListener.contextInitialized(LiftInitContextListener.scala:84) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:641) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:228) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1181) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36) at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:180) at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:481) at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:137) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:137) at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:50) at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:470) at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:382) at org.eclipse.jetty.util.Scanner.scan(Scanner.java:339) at org.eclipse.jetty.util.Scanner.start(Scanner.java:275) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:114) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:542) at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:214) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.Server.doStart(Server.java:226) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1061) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:994) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.jetty.start.Main.invokeMain(Main.java:477) at org.eclipse.jetty.start.Main.start(Main.java:623) at org.eclipse.jetty.start.Main.parseCommandLine(Main.java:273) at org.eclipse.jetty.start.Main.main(Main.java:81) 2014-01-28 18:36:35.063:WARN::Failed startup of context o.e.j.w.WebAppContext{/rudder,file:/tmp/jetty-127.0.0.1-8080-rudder.war-_rudder-any-/webapp/},/opt/rudder/jetty7/webapps/rudder.war javax.naming.NameAlreadyBoundException: env at org.eclipse.jetty.jndi.NamingContext.createSubcontext(NamingContext.java:451) at org.eclipse.jetty.jndi.NamingContext.createSubcontext(NamingContext.java:515) at org.eclipse.jetty.plus.webapp.EnvConfiguration.createEnvContext(EnvConfiguration.java:201) at org.eclipse.jetty.plus.webapp.EnvConfiguration.preConfigure(EnvConfiguration.java:64) at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:465) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:495) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:226) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:164) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:226) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93) at org.eclipse.jetty.server.Server.doStart(Server.java:243) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1061) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:994) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.jetty.start.Main.invokeMain(Main.java:477) at org.eclipse.jetty.start.Main.start(Main.java:623) at org.eclipse.jetty.start.Main.parseCommandLine(Main.java:273) at org.eclipse.jetty.start.Main.main(Main.java:81) 2014-01-28 18:36:35.087:INFO::Started SelectChannelConnector@127.0.0.1:8080
This seems related to #4380. It may also be present in 2.8, I haven't checked.
Updated by Nicolas CHARLES almost 11 years ago
- Status changed from 8 to Pending technical review
- Assignee changed from Nicolas CHARLES to François ARMAND
- Pull Request set to https://github.com/Normation/cf-clerk/pull/31
the system variable was lost in merge
PR is there
https://github.com/Normation/cf-clerk/pull/31
Updated by Nicolas CHARLES almost 11 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset clerk:commit:48b478ffd8182f2be7b0cff7521345e717a0f1bd.
Updated by Anonymous almost 11 years ago
Applied in changeset clerk:commit:7334646f61974fa135e4867d4ba4863c38dc175d.
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.9.3, which was released today.
Check out:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2014-March/000078.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog29
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/
Updated by Benoît PECCATTE over 9 years ago
- Category changed from 14 to Web - Config management
Actions