Hi Sridhar,

127.0.0.1 is the loopback address, which means that it's only accessible 
from the very same machine.

If you're trying to create an Elasticsearch cluster, you have to use a 
public IP address of all affected nodes.

See 
http://docs.graylog.org/en/2.1/pages/configuration/elasticsearch.html#configuration
 
for details.

Cheers,
Jochen

On Thursday, 2 February 2017 19:42:58 UTC+1, Sridhar wrote:
>
> Hi,
>
> I am configuring graylog in my pc, I am unable to connect elasticserach 
> server from graylog
>
> Exception: 
>
> com.google.common.util.concurrent.UncheckedExecutionException: 
> ClusterBlockException[blocked by: [SERVICE_UNAVAILABLE/1/state not 
> recovered / initialized];]
> at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2207) 
> ~[graylog.jar:?]
> at com.google.common.cache.LocalCache.get(LocalCache.java:3953) 
> ~[graylog.jar:?]
> at 
> com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4790) 
> ~[graylog.jar:?]
> at 
> org.graylog2.rest.resources.sources.SourcesResource.list(SourcesResource.java:89)
>  
> ~[graylog.jar:?]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_121]
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_121]
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  
> ~[?:1.8.0_121]
> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121]
> at 
> org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
>  
> ~[graylog.jar:?]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
>  
> ~[graylog.jar:?]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
>  
> ~[graylog.jar:?]
> at 
> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
>  
> ~[graylog.jar:?]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
>  
> ~[graylog.jar:?]
> at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
>  
> ~[graylog.jar:?]
> at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
>  
> ~[graylog.jar:?]
> at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
>  
> ~[graylog.jar:?]
> at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) 
> [graylog.jar:?]
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) 
> [graylog.jar:?]
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) 
> [graylog.jar:?]
> at org.glassfish.jersey.internal.Errors.process(Errors.java:315) 
> [graylog.jar:?]
> at org.glassfish.jersey.internal.Errors.process(Errors.java:297) 
> [graylog.jar:?]
> at org.glassfish.jersey.internal.Errors.process(Errors.java:267) 
> [graylog.jar:?]
> at 
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
>  
> [graylog.jar:?]
> at 
> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) 
> [graylog.jar:?]
> at 
> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
>  
> [graylog.jar:?]
> at 
> org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384)
>  
> [graylog.jar:?]
> at 
> org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) 
> [graylog.jar:?]
> at 
> com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
>  
> [graylog.jar:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  
> [?:1.8.0_121]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  
> [?:1.8.0_121]
> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
> Caused by: org.elasticsearch.cluster.block.ClusterBlockException: blocked 
> by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
> at 
> org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:158)
>  
> ~[graylog.jar:?]
> at 
> org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedRaiseException(ClusterBlocks.java:144)
>  
> ~[graylog.jar:?]
> at 
> org.elasticsearch.action.search.AbstractSearchAsyncAction.<init>(AbstractSearchAsyncAction.java:94)
>  
> ~[graylog.jar:?]
> at 
> org.elasticsearch.action.search.SearchQueryThenFetchAsyncAction.<init>(SearchQueryThenFetchAsyncAction.java:53)
>  
> ~[graylog.jar:?]
> at 
> org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:93)
>  
> ~[graylog.jar:?]
> at 
> org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:47)
>  
> ~[graylog.jar:?]
> at 
> org.elasticsearch.action.support.TransportAction.doExecute(TransportAction.java:149)
>  
> ~[graylog.jar:?]
>
>
> elasticsearch.yml
>
> st of Elasticsearch master nodes to connect to
> elasticsearch_discovery_zen_ping_unicast_hosts = 
> es-node-1.example.org:9300,es-node-2.example.org:9300
>
> # Public IP address or host name of the Graylog node, accessible for the 
> other Elasticsearch nodes
> elasticsearch_network_host = 127.0.0.1
>
> discovery.zen.ping.multicast.enabled : false
> discovery.zen.ping.unicast.hosts : ["es-node-1.example.org:9300" , "
> es-node-2.example.org:9300"]
>
> network.host = 127.0.0.1
>
> Please help me.
>
> Thanks
> Sridhar
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/dc587ac4-0012-4ccb-a1f8-c489085033b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to