I have recently tried building a graylog server on a ubuntu 16.04 machine using the guide document from (http://docs.graylog.org/en/2.3/pages/installation/os/ubuntu.html) . I have followed the exact steps , but the graylog doesn’t seem to start. I am a complete stranger to graylog. Appreciate for any guide / help in bring up the graylog
in the log i can see the following
ServerBootstrap] Graylog startup failed. Exiting. Exception was:
java.lang.IllegalStateException: Expected to be healthy after starting. The following services are not running: {STARTING=[RestApiService [STARTING], IndexerSetupService [STARTING]], FAILED=[WebInterfaceService [FAILED]]}
No, we have all three enabled. In our case web and rest listen api are set to the internal address of our Graylog instance, but yours seem to be an external address. Also in your config you seem to be missing rest_transport_uri, which in our case is set to the external IP of our Graylog instance.
I’m not sure if this is where your issue is coming from, however I have had problems in the past when these fields were set incorrectly.
looks like it’s working now…just tailed the server.log
root@gray7:/var/log/graylog-server# tail -f server.log
2017-08-17T17:53:00.415+08:00 INFO [LegacyDefaultStreamMigration] Legacy default stream has no connections, no migration needed.
2017-08-17T17:53:03.418+08:00 INFO [JerseyService] Enabling CORS for HTTP endpoint
2017-08-17T17:54:31.017+08:00 INFO [NetworkListener] Started listener bound to [172.31.25.191:9000]
2017-08-17T17:54:31.018+08:00 INFO [HttpServer] [HttpServer] Started.
2017-08-17T17:54:31.031+08:00 INFO [JerseyService] Started REST API at http://172.31.25.191:9000/api/
2017-08-17T17:54:31.031+08:00 INFO [JerseyService] Started Web Interface at http://172.31.25.191:9000/
2017-08-17T17:54:31.032+08:00 INFO [ServerBootstrap] Services started, startup times in ms: {OutputSetupService [RUNNING]=75, KafkaJournal [RUNNING]=76, BufferSynchronizerService [RUNNING]=108, JournalReader [RUNNING]=506, InputSetupService [RUNNING]=707, StreamCacheService [RUNNING]=709, LookupTableService [RUNNING]=726, ConfigurationEtagService [RUNNING]=748, PeriodicalsService [RUNNING]=1740, JerseyService [RUNNING]=92377}
2017-08-17T17:54:31.052+08:00 INFO [ServiceManagerListener] Services are healthy
2017-08-17T17:54:31.052+08:00 INFO [InputSetupService] Triggering launching persisted inputs, node transitioned from Uninitialized [LB:DEAD] to Running [LB:ALIVE]
2017-08-17T17:54:31.126+08:00 INFO [ServerBootstrap] Graylog server up and running.
but after sometime…i am seing some error again…timeout errors
root@gray7:/var/log/graylog-server# tail -f server.log
2017-08-17T17:53:00.415+08:00 INFO [LegacyDefaultStreamMigration] Legacy default stream has no connections, no migration needed.
2017-08-17T17:53:03.418+08:00 INFO [JerseyService] Enabling CORS for HTTP endpoint
2017-08-17T17:54:31.017+08:00 INFO [NetworkListener] Started listener bound to [172.31.25.191:9000]
2017-08-17T17:54:31.018+08:00 INFO [HttpServer] [HttpServer] Started.
2017-08-17T17:54:31.031+08:00 INFO [JerseyService] Started REST API at http://172.31.25.191:9000/api/
2017-08-17T17:54:31.031+08:00 INFO [JerseyService] Started Web Interface at http://172.31.25.191:9000/
2017-08-17T17:54:31.032+08:00 INFO [ServerBootstrap] Services started, startup times in ms: {OutputSetupService [RUNNING]=75, KafkaJournal [RUNNING]=76, BufferSynchronizerService [RUNNING]=108, JournalReader [RUNNING]=506, InputSetupService [RUNNING]=707, StreamCacheService [RUNNING]=709, LookupTableService [RUNNING]=726, ConfigurationEtagService [RUNNING]=748, PeriodicalsService [RUNNING]=1740, JerseyService [RUNNING]=92377}
2017-08-17T17:54:31.052+08:00 INFO [ServiceManagerListener] Services are healthy
2017-08-17T17:54:31.052+08:00 INFO [InputSetupService] Triggering launching persisted inputs, node transitioned from Uninitialized [LB:DEAD] to Running [LB:ALIVE]
2017-08-17T17:54:31.126+08:00 INFO [ServerBootstrap] Graylog server up and running.
2017-08-17T17:58:25.729+08:00 INFO [UsageStatsOptOutService] Transmission of anonymous usage stats: enabled (opt-in)
2017-08-17T17:58:43.543+08:00 WARN [ProxiedResource] Unable to call http://54.254.216.238:9000/api/system/jobs on node <308bb471-6c67-4363-a855-a7ceca48fb28>
java.net.SocketTimeoutException: timeout
at okio.Okio$4.newTimeoutException(Okio.java:230) ~[graylog.jar:?]
at okio.AsyncTimeout.exit(AsyncTimeout.java:285) ~[graylog.jar:?]
at okio.AsyncTimeout$2.read(AsyncTimeout.java:241) ~[graylog.jar:?]
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345) ~[graylog.jar:?]
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217) ~[graylog.jar:?]
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211) ~[graylog.jar:?]
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) ~[graylog.jar:?]
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[graylog.jar:?]
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[graylog.jar:?]
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[graylog.jar:?]
at org.graylog2.rest.RemoteInterfaceProvider.lambda$get$0(RemoteInterfaceProvider.java:59) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[graylog.jar:?]
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) ~[graylog.jar:?]
at okhttp3.RealCall.execute(RealCall.java:69) ~[graylog.jar:?]
at retrofit2.OkHttpCall.execute(OkHttpCall.java:180) ~[graylog.jar:?]
at org.graylog2.shared.rest.resources.ProxiedResource.lambda$getForAllNodes$0(ProxiedResource.java:76) ~[graylog.jar:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_131]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:204) ~[?:1.8.0_131]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_131]
at okio.Okio$2.read(Okio.java:139) ~[graylog.jar:?]
at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) ~[graylog.jar:?]
… 28 more
2017-08-17T17:58:53.764+08:00 WARN [ProxiedResource] Unable to call http://54.254.216.238:9000/api/system/jobs on node <308bb471-6c67-4363-a855-a7ceca48fb28>
java.net.SocketTimeoutException: timeout
at okio.Okio$4.newTimeoutException(Okio.java:230) ~[graylog.jar:?]
at okio.AsyncTimeout.exit(AsyncTimeout.java:285) ~[graylog.jar:?]
at okio.AsyncTimeout$2.read(AsyncTimeout.java:241) ~[graylog.jar:?]
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345) ~[graylog.jar:?]
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217) ~[graylog.jar:?]
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211) ~[graylog.jar:?]
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) ~[graylog.jar:?]
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[graylog.jar:?]
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[graylog.jar:?]
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[graylog.jar:?]
at org.graylog2.rest.RemoteInterfaceProvider.lambda$get$0(RemoteInterfaceProvider.java:59) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[graylog.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[graylog.jar:?]
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) ~[graylog.jar:?]
at okhttp3.RealCall.execute(RealCall.java:69) ~[graylog.jar:?]
at retrofit2.OkHttpCall.execute(OkHttpCall.java:180) ~[graylog.jar:?]
at org.graylog2.shared.rest.resources.ProxiedResource.lambda$getForAllNodes$0(ProxiedResource.java:76) ~[graylog.jar:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_131]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:204) ~[?:1.8.0_131]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_131]
at okio.Okio$2.read(Okio.java:139) ~[graylog.jar:?]
at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) ~[graylog.jar:?]
… 28 more
2017-08-17T17:59:28.393+08:00 INFO [connection] Opened connection [connectionId{localValue:6, serverValue:265}] to localhost:27017
no worries GTownson, thank you so much… i will close this thread for now,
atleast the graylog is up and running now. will play a bit more to familiarize. thanks again!