You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to load any analyzers with Cortex 3.0.0-RC1 after an upgrade from v2.1x install
Steps to Reproduce
step 1 - start with a working Cortex v2.1.x setup
step 2 - update the APT sources to use the debian-beta repo
step 3 - apt-get update & apt-get install cortex
step 4 - connect to the newly updated Cortex, hit the "update database" button
step 5 - navigate to the Analyzers tab, which shows an empty list, hitting the "Refresh analyzers" does not resolve.
Complementary information
observations / things-tried
logs seem to suggest analyzers/catalog.json is not accessible, have tried adjusting the permissions
have tried using the Docker container, seems also to have an issue that looks the same but I did not record the logs so can't be sure it really is the same issue.
application.log
2019-04-21 13:07:18,320 [INFO] from play.core.server.AkkaHttpServer in main - Listening for HTTP on /192.168.1.160:9001
2019-04-21 13:07:46,044 [ERROR] from akka.dispatch.Dispatcher in application-akka.actor.default-dispatcher-3 - /srv/Cortex-Analyzers/analyzers/catalog.json
java.nio.file.NotDirectoryException: /srv/Cortex-Analyzers/analyzers/catalog.json
at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:426)
at java.nio.file.Files.newDirectoryStream(Files.java:525)
at org.thp.cortex.services.WorkerSrv.$anonfun$scan$15(WorkerSrv.scala:163)
at scala.collection.immutable.Stream.flatMap(Stream.scala:489)
at scala.collection.immutable.Stream.$anonfun$flatMap$1(Stream.scala:497)
at scala.collection.immutable.Stream.$anonfun$append$1(Stream.scala:255)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1171)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1161)
at scala.collection.generic.Growable.loop$1(Growable.scala:57)
at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:61)
at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:105)
at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:49)
at scala.collection.generic.GenericTraversableTemplate.$anonfun$flatten$1(GenericTraversableTemplate.scala:174)
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
at scala.collection.generic.GenericTraversableTemplate.flatten(GenericTraversableTemplate.scala:173)
at scala.collection.generic.GenericTraversableTemplate.flatten$(GenericTraversableTemplate.scala:171)
at scala.collection.AbstractTraversable.flatten(Traversable.scala:108)
at org.thp.cortex.services.WorkerSrv.$anonfun$scan$21(WorkerSrv.scala:184)
at org.thp.cortex.services.WorkerSrv.$anonfun$scan$21$adapted(WorkerSrv.scala:183)
at scala.util.Success.foreach(Try.scala:253)
at scala.concurrent.Future.$anonfun$foreach$1$adapted(Future.scala:229)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:91)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:91)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:44)
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Request Type
Bug
Work Environment
Problem Description
Unable to load any analyzers with Cortex 3.0.0-RC1 after an upgrade from v2.1x install
Steps to Reproduce
apt-get update
&apt-get install cortex
Complementary information
observations / things-tried
analyzers/catalog.json
is not accessible, have tried adjusting the permissionsapplication.log
catalog.json
The text was updated successfully, but these errors were encountered: