drasyl läuft nicht in Kubernetes
drasyl stürzt beim Start in Kubernetes beim Starten des drasyl-Knotens sofort ab:
2020-05-24 17:02:23,058 [main] WARN io.sentry.dsn.Dsn - *** Couldn't find a suitable DSN, Sentry operations will do nothing! See documentation: https://docs.sentry.io/clients/java/ ***
2020-05-24 17:02:23,075 [main] WARN io.sentry.DefaultSentryClientFactory - No 'stacktrace.app.packages' was configured, this option is highly recommended as it affects stacktrace grouping and display on Sentry. See documentation: https://docs.sentry.io/clients/java/config/#in-application-stack-frames
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.drasyl.cli.Cli.runNode(Cli.java:179)
at org.drasyl.cli.Cli.run(Cli.java:75)
at org.drasyl.cli.Cli.main(Cli.java:57)
Caused by: java.lang.IllegalArgumentException: nThreads: -2 (expected: > 0)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:72)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:58)
at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:52)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:96)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:91)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:72)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:52)
at org.drasyl.DrasylNode.<clinit>(DrasylNode.java:96)
... 3 more
Ich vermute, dass es an folgendem Ausdruck liegt: https://git.informatik.uni-hamburg.de/sane-public/drasyl/-/blob/master/drasyl-core/src/main/java/org/drasyl/DrasylNode.java#L96
Mit minikube kann man das Problem wie folgt reproduzieren:
minikube start
kubectl run --image=sanecity/drasyl drasyl
kubectl logs -f drasyl