NoNodeAvailableException when testing with ElasticSearch


#1

When using ElasticSearch 5.6 as a docker, the test code cannot connect to ElasticSearch. The ElasticSearch container image is the official container of elastic.co and is being ran in their recommended way from the official docs here:
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

This is the section where the container is being specified in our yaml:

  build:
    docker:
      - image: circleci/openjdk:8
      - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.3
        environment:
          - cluster.name: elasticsearch
          - xpack.security.enabled: false
          - discovery.type: single-node

However, when the test code tries to connect it gets the following exception:

org.elasticsearch.client.transport.NoNodeAvailableException, with message: None of the configured nodes are available: [{#transport#-1}{HtgC3KbfRGy9lkkozalb-w}{localhost}{127.0.0.1:9300}]. (ElasticSearchServiceTest.scala:114)

Please not the following:

  1. The tests wait until ElasticSearch is up and running using the 9200 and 9300 ports.

  2. The above configuration works when being run locally exactly is it appears:

    docker run -p 9200:9200 -p 9300:9300 -e "cluster.name=elasticsearch" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:5.6.3
    

    Same image, same environment variables.

Why it fails only in CircleCI builds?
What’s the solution here?


#2

I want to add more info.

I managed to rerun the build, but with debug logging enabled in the ElasticSearch driver. I’m adding the log of the ES docker container and the debug logging of the driver:

Container docker.elastic.co/elasticsearch/elasticsearch:5.6.3

[2017-11-08T09:07:42,488][INFO ][o.e.n.Node               ] [] initializing ...
[2017-11-08T09:07:42,565][INFO ][o.e.e.NodeEnvironment    ] [BnlaXBb] using [1] data paths, mounts [[/ (none)]], net usable_space [360gb], net total_space [629.9gb], spins? [possibly], types [aufs]
[2017-11-08T09:07:42,565][INFO ][o.e.e.NodeEnvironment    ] [BnlaXBb] heap size [1.9gb], compressed ordinary object pointers [true]
[2017-11-08T09:07:42,566][INFO ][o.e.n.Node               ] node name [BnlaXBb] derived from node ID [BnlaXBbJT1aGOmG3amx3Ew]; set [node.name] to override
[2017-11-08T09:07:42,566][INFO ][o.e.n.Node               ] version[5.6.3], pid[7], build[1a2f265/2017-10-06T20:33:39.012Z], OS[Linux/4.4.0-97-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_141/25.141-b16]
[2017-11-08T09:07:42,567][INFO ][o.e.n.Node               ] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.cgroups.hierarchy.override=/, -Des.path.home=/usr/share/elasticsearch]
[2017-11-08T09:07:43,936][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [aggs-matrix-stats]
[2017-11-08T09:07:43,936][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [ingest-common]
[2017-11-08T09:07:43,936][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [lang-expression]
[2017-11-08T09:07:43,936][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [lang-groovy]
[2017-11-08T09:07:43,936][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [lang-mustache]
[2017-11-08T09:07:43,936][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [lang-painless]
[2017-11-08T09:07:43,936][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [parent-join]
[2017-11-08T09:07:43,937][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [percolator]
[2017-11-08T09:07:43,937][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [reindex]
[2017-11-08T09:07:43,937][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [transport-netty3]
[2017-11-08T09:07:43,937][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded module [transport-netty4]
[2017-11-08T09:07:43,937][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded plugin [ingest-geoip]
[2017-11-08T09:07:43,937][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded plugin [ingest-user-agent]
[2017-11-08T09:07:43,937][INFO ][o.e.p.PluginsService     ] [BnlaXBb] loaded plugin [x-pack]
[2017-11-08T09:07:45,786][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/193] [Main.cc@128] controller (64 bit): Version 5.6.3 (Build 5bf431d29b5bff) Copyright (c) 2017 Elasticsearch BV
[2017-11-08T09:07:45,824][INFO ][o.e.d.DiscoveryModule    ] [BnlaXBb] using discovery type [single-node]
[2017-11-08T09:07:46,552][INFO ][o.e.n.Node               ] initialized
[2017-11-08T09:07:46,552][INFO ][o.e.n.Node               ] [BnlaXBb] starting ...
[2017-11-08T09:07:46,820][INFO ][o.e.t.TransportService   ] [BnlaXBb] publish_address {172.20.0.3:9300}, bound_addresses {0.0.0.0:9300}
[2017-11-08T09:07:46,847][INFO ][o.e.c.s.ClusterService   ] [BnlaXBb] new_master {BnlaXBb}{BnlaXBbJT1aGOmG3amx3Ew}{ketI6dm_ThOgh1-ZzPuQfQ}{172.20.0.3}{172.20.0.3:9300}{ml.max_open_jobs=10, ml.enabled=true}, reason: single-node-start-initial-join[{BnlaXBb}{BnlaXBbJT1aGOmG3amx3Ew}{ketI6dm_ThOgh1-ZzPuQfQ}{172.20.0.3}{172.20.0.3:9300}{ml.max_open_jobs=10, ml.enabled=true}]
[2017-11-08T09:07:46,867][INFO ][o.e.h.n.Netty4HttpServerTransport] [BnlaXBb] publish_address {172.20.0.3:9200}, bound_addresses {0.0.0.0:9200}
[2017-11-08T09:07:46,868][INFO ][o.e.n.Node               ] [BnlaXBb] started
[2017-11-08T09:07:46,934][INFO ][o.e.g.GatewayService     ] [BnlaXBb] recovered [0] indices into cluster_state
[2017-11-08T09:07:47,031][INFO ][o.e.x.m.MachineLearningTemplateRegistry] [BnlaXBb] successfully created .ml-state index template
[2017-11-08T09:07:47,050][INFO ][o.e.x.m.MachineLearningTemplateRegistry] [BnlaXBb] successfully created .ml-meta index template
[2017-11-08T09:07:47,072][INFO ][o.e.x.m.MachineLearningTemplateRegistry] [BnlaXBb] successfully created .ml-notifications index template
[2017-11-08T09:07:47,145][INFO ][o.e.x.m.MachineLearningTemplateRegistry] [BnlaXBb] successfully created .ml-anomalies- index template
[2017-11-08T09:07:47,302][INFO ][o.e.l.LicenseService     ] [BnlaXBb] license [78818b0d-1215-43a6-9487-e380127a9cd9] mode [trial] - valid
[2017-11-08T09:07:56,770][INFO ][o.e.c.m.MetaDataCreateIndexService] [BnlaXBb] [.monitoring-es-6-2017.11.08] creating index, cause [auto(bulk api)], templates [.monitoring-es], shards [1]/[1], mappings [doc]
[2017-11-08T09:07:56,993][INFO ][o.e.c.m.MetaDataCreateIndexService] [BnlaXBb] [.watches] creating index, cause [auto(bulk api)], templates [watches], shards [1]/[1], mappings [watch]
[2017-11-08T09:07:57,226][INFO ][o.e.c.m.MetaDataMappingService] [BnlaXBb] [.watches/VegADVXvRC2ihT2WuMCmew] update_mapping [watch]
[2017-11-08T09:08:57,948][INFO ][o.e.c.m.MetaDataCreateIndexService] [BnlaXBb] [.triggered_watches] creating index, cause [auto(bulk api)], templates [triggered_watches], shards [1]/[1], mappings [triggered_watch]
[2017-11-08T09:08:58,200][INFO ][o.e.c.m.MetaDataCreateIndexService] [BnlaXBb] [.watcher-history-6-2017.11.08] creating index, cause [auto(bulk api)], templates [.watch-history-6], shards [1]/[1], mappings [doc]
[2017-11-08T09:08:58,256][INFO ][o.e.c.m.MetaDataCreateIndexService] [BnlaXBb] [.monitoring-alerts-6] creating index, cause [auto(bulk api)], templates [.monitoring-alerts], shards [1]/[1], mappings [doc]
[2017-11-08T09:08:58,308][INFO ][o.e.c.m.MetaDataMappingService] [BnlaXBb] [.watcher-history-6-2017.11.08/p8X8mEcFSg6aQ93qdLNKfQ] update_mapping [doc]
[2017-11-08T09:08:58,432][INFO ][o.e.c.m.MetaDataMappingService] [BnlaXBb] [.watcher-history-6-2017.11.08/p8X8mEcFSg6aQ93qdLNKfQ] update_mapping [doc]
[2017-11-08T09:09:21,695][INFO ][o.e.x.m.j.p.NativeController] Native controller process has stopped - no new native processes can be started

Exited with code 137

sbt “;set javaOptions += “-Dorg.apache.logging.log4j.simplelog.level=DEBUG” ;test”

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
INFO PluginsService no modules loaded
INFO PluginsService loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
INFO PluginsService loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
INFO PluginsService loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
INFO PluginsService loaded plugin [org.elasticsearch.script.mustache.MustachePlugin]
INFO PluginsService loaded plugin [org.elasticsearch.transport.Netty3Plugin]
INFO PluginsService loaded plugin [org.elasticsearch.transport.Netty4Plugin]
DEBUG ThreadPool created thread pool: name [force_merge], size [1], queue size [unbounded]
DEBUG ThreadPool created thread pool: name [fetch_shard_started], core [1], max [64], keep alive [5m]
DEBUG ThreadPool created thread pool: name [listener], size [10], queue size [unbounded]
DEBUG ThreadPool created thread pool: name [index], size [32], queue size [200]
DEBUG ThreadPool created thread pool: name [refresh], core [1], max [10], keep alive [5m]
DEBUG ThreadPool created thread pool: name [generic], core [4], max [128], keep alive [30s]
DEBUG ThreadPool created thread pool: name [warmer], core [1], max [5], keep alive [5m]
DEBUG ThreadPool created thread pool: name [search], size [49], queue size [1k]
DEBUG ThreadPool created thread pool: name [flush], core [1], max [5], keep alive [5m]
DEBUG ThreadPool created thread pool: name [fetch_shard_store], core [1], max [64], keep alive [5m]
DEBUG ThreadPool created thread pool: name [management], core [1], max [5], keep alive [5m]
DEBUG ThreadPool created thread pool: name [get], size [32], queue size [1k]
DEBUG ThreadPool created thread pool: name [bulk], size [32], queue size [200]
DEBUG ThreadPool created thread pool: name [snapshot], core [1], max [5], keep alive [5m]
DEBUG IfConfig configuration:

lo
        inet 127.0.0.1 netmask:255.0.0.0 scope:host
        UP LOOPBACK mtu:65536 index:1

eth0
        inet 172.20.0.3 netmask:255.255.0.0 broadcast:0.0.0.0 scope:site
        hardware 02:42:AC:14:00:03
        UP MULTICAST mtu:1500 index:5153

DEBUG TransportClientNodesService node_sampler_interval[20s]
DEBUG MultithreadEventLoopGroup -Dio.netty.eventLoopThreads: 64
DEBUG PlatformDependent0 -Dio.netty.noUnsafe: true
DEBUG PlatformDependent0 sun.misc.Unsafe: unavailable (io.netty.noUnsafe)
DEBUG PlatformDependent0 java.nio.DirectByteBuffer.<init>(long, int): unavailable
DEBUG PlatformDependent Java version: 8
DEBUG PlatformDependent -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
DEBUG PlatformDependent -Dio.netty.bitMode: 64 (sun.arch.data.model)
DEBUG PlatformDependent -Dio.netty.noPreferDirect: true
INFO PlatformDependent Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
DEBUG PlatformDependent -Dio.netty.maxDirectMemory: -1 bytes
DEBUG PlatformDependent -Dio.netty.uninitializedArrayAllocationThreshold: -1
DEBUG CleanerJava6 java.nio.ByteBuffer.cleaner(): unavailable
 java.lang.UnsupportedOperationException: sun.misc.Unsafe unavailable
	at io.netty.util.internal.CleanerJava6.<clinit>(CleanerJava6.java:57)
	at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:180)
	at io.netty.util.ConstantPool.<init>(ConstantPool.java:32)
	at io.netty.util.Signal$1.<init>(Signal.java:27)
	at io.netty.util.Signal.<clinit>(Signal.java:27)
	at io.netty.util.concurrent.DefaultPromise.<clinit>(DefaultPromise.java:43)
	at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:36)
	at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:58)
	at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:47)
	at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:59)
	at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:77)
	at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:72)
	at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:59)
	at org.elasticsearch.transport.netty4.Netty4Transport.createBootstrap(Netty4Transport.java:191)
	at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:162)
	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69)
	at org.elasticsearch.transport.TransportService.doStart(TransportService.java:209)
	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69)
	at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:205)
	at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:265)
	at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:130)
	at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:116)
	at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:106)
	at com.sksamuel.elastic4s.TcpClientConstructors.transport(TcpClient.scala:104)
	at com.sksamuel.elastic4s.TcpClientConstructors.transport$(TcpClient.scala:88)
	at com.sksamuel.elastic4s.TcpClient$.transport(TcpClient.scala:112)
	at com.vatbox...
	at com.vatbox...
	at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
	at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054)
	at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:409)
	at play.api.inject.ContextClassLoaderInjector.$anonfun$instanceOf$3(Injector.scala:118)
	at play.api.inject.ContextClassLoaderInjector.withContext(Injector.scala:126)
	at play.api.inject.ContextClassLoaderInjector.instanceOf(Injector.scala:118)
	at play.api.inject.RoutesProvider.$anonfun$get$2(BuiltinModule.scala:104)
	at scala.Option.fold(Option.scala:158)
	at play.api.inject.RoutesProvider.get$lzycompute(BuiltinModule.scala:104)
	at play.api.inject.RoutesProvider.get(BuiltinModule.scala:100)
	at play.api.inject.RoutesProvider.get(BuiltinModule.scala:99)
	at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
	at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72)
	at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)
	at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62)
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
	at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
	at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054)
	at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:409)
	at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:404)
	at play.api.inject.ContextClassLoaderInjector.$anonfun$instanceOf$2(Injector.scala:117)
	at play.api.inject.ContextClassLoaderInjector.withContext(Injector.scala:126)
	at play.api.inject.ContextClassLoaderInjector.instanceOf(Injector.scala:117)
	at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:137)
	at com.vatbox...
	at com.vatbox...
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at play.api.test.Injecting.inject(Helpers.scala:628)
	at play.api.test.Injecting.inject$(Helpers.scala:627)
	at com.vatbox...
	at com.vatbox...
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:435)
	at sbt.ForkMain$Run$2.call(ForkMain.java:296)
	at sbt.ForkMain$Run$2.call(ForkMain.java:286)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
DEBUG NioEventLoop -Dio.netty.noKeySetOptimization: true
DEBUG NioEventLoop -Dio.netty.selectorAutoRebuildThreshold: 512
DEBUG PlatformDependent org.jctools-core.MpscChunkedArrayQueue: unavailable
DEBUG TransportClientNodesService adding address [{#transport#-1}{cpx0szzpSwiR-nGxFantsQ}{localhost}{127.0.0.1:9300}]
DEBUG DefaultChannelId -Dio.netty.processId: 831 (auto-detected)
DEBUG NetUtil -Djava.net.preferIPv4Stack: false
DEBUG NetUtil -Djava.net.preferIPv6Addresses: false
DEBUG NetUtil Loopback interface: lo (lo, 127.0.0.1)
DEBUG NetUtil /proc/sys/net/core/somaxconn: 128 (non-existent)
DEBUG DefaultChannelId -Dio.netty.machineId: 02:42:ac:ff:fe:14:00:03 (auto-detected)
DEBUG ResourceLeakDetector -Dio.netty.leakDetection.level: simple
DEBUG ResourceLeakDetector -Dio.netty.leakDetection.maxRecords: 4
DEBUG PooledByteBufAllocator -Dio.netty.allocator.numHeapArenas: 64
DEBUG PooledByteBufAllocator -Dio.netty.allocator.numDirectArenas: 64
DEBUG PooledByteBufAllocator -Dio.netty.allocator.pageSize: 8192
DEBUG PooledByteBufAllocator -Dio.netty.allocator.maxOrder: 11
DEBUG PooledByteBufAllocator -Dio.netty.allocator.chunkSize: 16777216
DEBUG PooledByteBufAllocator -Dio.netty.allocator.tinyCacheSize: 512
DEBUG PooledByteBufAllocator -Dio.netty.allocator.smallCacheSize: 256
DEBUG PooledByteBufAllocator -Dio.netty.allocator.normalCacheSize: 64
DEBUG PooledByteBufAllocator -Dio.netty.allocator.maxCachedBufferCapacity: 32768
DEBUG PooledByteBufAllocator -Dio.netty.allocator.cacheTrimInterval: 8192
DEBUG PooledByteBufAllocator -Dio.netty.allocator.useCacheForAllThreads: true
DEBUG ByteBufUtil -Dio.netty.allocator.type: pooled
DEBUG ByteBufUtil -Dio.netty.threadLocalDirectBufferSize: 65536
DEBUG ByteBufUtil -Dio.netty.maxThreadLocalCharBufferSize: 16384
DEBUG TransportClientNodesService failed to connect to node [{#transport#-1}{cpx0szzpSwiR-nGxFantsQ}
...

#3

That means you ran out of memory. You can try passing memory restriction vars to the ES container or you can use a bigger resource_class.


#4

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.