Project

General

Profile

Bug #12911

Updated by François ARMAND about 6 years ago

Update: it also happens in other upgrade (like 4.3 -> 5.0) and it seems that the cause is jetty not restarting correctly (even if it says so). 

 After upgrading (on a debian system) from 4.3.2 eo 4.3 nightly (with a DSC plugin present), I have completly broken compliance in the web interface 

 Reason is not a all the compliance, but the webabb which is in an half broken state, due to error at start: 

 <pre> 
 2018-07-06 15:26:26.545:INFO:oejsh.ContextHandler:Scanner-0: Stopped o.e.j.w.WebAppContext@41394595{/rudder,null,UNAVAILABLE}{/rudder.war} 
 java.lang.NoClassDefFoundError: cats/effect/internals/NonFatal$ 
         at cats.effect.internals.IORunLoop$.liftedTree3$1(IORunLoop.scala:207) 
         at cats.effect.internals.IORunLoop$.step(IORunLoop.scala:207) 
         at cats.effect.IO.unsafeRunTimed(IO.scala:308) 
         at cats.effect.IO.unsafeRunSync(IO.scala:243) 
         at com.normation.rudder.repository.jdbc.FindExpectedReportsJdbcRepository.getNodeConfigIdInfos(ExpectedReportsJdbcRepository.scala:189) 
         at com.normation.rudder.services.reports.DefaultFindRuleNodeStatusReports.$anonfun$getNodeRunInfos$5(ReportingServiceImpl.scala:389) 
         at net.liftweb.common.Full.flatMap(Box.scala:856) 
         at com.normation.rudder.services.reports.DefaultFindRuleNodeStatusReports.$anonfun$getNodeRunInfos$2(ReportingServiceImpl.scala:386) 
         at net.liftweb.common.Full.flatMap(Box.scala:856) 
         at com.normation.rudder.services.reports.DefaultFindRuleNodeStatusReports.getNodeRunInfos(ReportingServiceImpl.scala:381) 
         at com.normation.rudder.services.reports.DefaultFindRuleNodeStatusReports.$anonfun$findRuleNodeStatusReports$5(ReportingServiceImpl.scala:346) 
         at net.liftweb.common.Full.flatMap(Box.scala:856) 
         at com.normation.rudder.services.reports.DefaultFindRuleNodeStatusReports.$anonfun$findRuleNodeStatusReports$4(ReportingServiceImpl.scala:344) 
         at net.liftweb.common.Full.flatMap(Box.scala:856) 
         at com.normation.rudder.services.reports.DefaultFindRuleNodeStatusReports.findRuleNodeStatusReports(ReportingServiceImpl.scala:343) 
         at com.normation.rudder.services.reports.DefaultFindRuleNodeStatusReports.findRuleNodeStatusReports$(ReportingServiceImpl.scala:311) 
         at com.normation.rudder.services.reports.ReportingServiceImpl.findRuleNodeStatusReports(ReportingServiceImpl.scala:65) 
         at com.normation.rudder.services.reports.CachedFindRuleNodeStatusReports.$anonfun$checkAndUpdateCache$6(ReportingServiceImpl.scala:256) 
         at net.liftweb.common.Full.flatMap(Box.scala:856) 
         at com.normation.rudder.services.reports.CachedFindRuleNodeStatusReports.$anonfun$checkAndUpdateCache$1(ReportingServiceImpl.scala:225) 
         at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53) 
         at scala.concurrent.package$.blocking(package.scala:142) 
         at com.normation.rudder.services.reports.CachedFindRuleNodeStatusReports.checkAndUpdateCache(ReportingServiceImpl.scala:217) 
         at com.normation.rudder.services.reports.CachedFindRuleNodeStatusReports.$anonfun$invalidate$1(ReportingServiceImpl.scala:207) 
         at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81) 
         at scala.concurrent.impl.ExecutionContextImpl$DefaultThreadFactory$$anon$2$$anon$4.block(ExecutionContextImpl.scala:76) 
         at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3313) 
         at scala.concurrent.impl.ExecutionContextImpl$DefaultThreadFactory$$anon$2.blockOn(ExecutionContextImpl.scala:71) 
         at scala.concurrent.package$.blocking(package.scala:142) 
         at com.normation.rudder.services.reports.CachedFindRuleNodeStatusReports.invalidate(ReportingServiceImpl.scala:203) 
         at com.normation.rudder.services.reports.CachedFindRuleNodeStatusReports.invalidate$(ReportingServiceImpl.scala:203) 
         at com.normation.rudder.services.reports.CachedReportingServiceImpl.invalidate(ReportingServiceImpl.scala:77) 
         at com.normation.rudder.reports.execution.ReportsExecutionService.$anonfun$hook$9(ReportsExecutionService.scala:216) 
         at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) 
         at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:654) 
         at scala.util.Success.$anonfun$map$1(Try.scala:251) 
         at scala.util.Success.map(Try.scala:209) 
         at scala.concurrent.Future.$anonfun$map$1(Future.scala:288) 
         at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29) 
         at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29) 
         at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60) 
         at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) 
         at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) 
         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) 
         at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) 
         at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) 
 Caused by: java.lang.ClassNotFoundException: cats.effect.internals.NonFatal$ 
         at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
         at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
         at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
         at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560) 
         at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 

 </pre>

Back