Hi, I'm trying to run v2.0-beta.1 under docker and have found out couple of issues that I don't know how to solve.
First of all the story: - I was not able to find ready docker image on docker hub (although blogposts are telling that they are available) - I have found https://github.com/Graylog2/graylog2-images/blob/master/docker-beta/Dockerfile which seems to have what I would expect so I have built it locally - I have started it with the following parameters: expose: - 5555/udp - 5140/udp ports: - 0.0.0.0:9000:9000 - 0.0.0.0:433:9433 - 0.0.0.0:12201:12201 - 0.0.0.0:12201:12201/udp - 0.0.0.0:514:514/udp - 0.0.0.0:514:514/tcp - 0.0.0.0:12900:12900/tcp - 0.0.0.0:5140:5140/udp - 0.0.0.0:5555:5555/udp volumes: - /opt/graylog/data:/var/opt/graylog/data - /opt/graylog/logs:/var/log/graylog - /opt/graylog/plugin:/opt/graylog/plugin env: GRAYLOG_NODE_ID: server1_graylog GRAYLOG_SERVER_SECRET: 8b206784-0c5b-49a2-8b22-20f7cbd6dff9 GRAYLOG_TIMEZONE: Europe/Berlin This configuration kind of works. Which means that I can access the web interface, logging is ok and so on. The problem starts when I try to access the web interface from different machine in the network (not server that is running docker image). I immidately see an error: We are experiencing problems connecting to the Graylog server running on http://172.17.0.3:12900/. Please verify that the server is healthy and working correctly. It clearly tries to access API interface on the docker IP, which is wrong in such setup. I was trying to setup: GRAYLOG2_REST_TRANSPORT_URI: http://server1:12900/ but this works only partially. I can login to graylog but I get strange errors instead: >From graylog itself: 2016-03-31_08:09:05.47116 2016-03-31 10:09:05,469 ERROR: org.graylog2.shared.rest.exceptionmappers.AnyExceptionClassMapper - Unhandled exception in REST resource 2016-03-31_08:09:05.47120 java.net.UnknownHostException: server1 2016-03-31_08:09:05.47248 at java.net.InetAddress.getAllByName0(InetAddress.java:1280) ~[?:1.8.0_74] 2016-03-31_08:09:05.47846 at java.net.InetAddress.getAllByName(InetAddress.java:1192) ~[?:1.8.0_74] 2016-03-31_08:09:05.48244 at java.net.InetAddress.getAllByName(InetAddress.java:1126) ~[?:1.8.0_74] 2016-03-31_08:09:05.48630 at okhttp3.Dns$1.lookup(Dns.java:39) ~[graylog.jar:?] 2016-03-31_08:09:05.48716 at okhttp3.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:173) ~[graylog.jar:?] 2016-03-31_08:09:05.48935 at okhttp3.internal.http.RouteSelector.nextProxy(RouteSelector.java:139) ~[graylog.jar:?] 2016-03-31_08:09:05.48996 at okhttp3.internal.http.RouteSelector.next(RouteSelector.java:81) ~[graylog.jar:?] 2016-03-31_08:09:05.49157 at okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:174) ~[graylog.jar:?] 2016-03-31_08:09:05.49228 at okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:127) ~[graylog.jar:?] 2016-03-31_08:09:05.49344 at okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:97) ~[graylog.jar:?] 2016-03-31_08:09:05.49421 at okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:289) ~[graylog.jar:?] 2016-03-31_08:09:05.49571 at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:241) ~[graylog.jar:?] 2016-03-31_08:09:05.49668 at okhttp3.RealCall.getResponse(RealCall.java:240) ~[graylog.jar:?] 2016-03-31_08:09:05.49906 at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:198) ~[graylog.jar:?] 2016-03-31_08:09:05.49952 at org.graylog2.rest.RemoteInterfaceProvider.lambda$get$0(RemoteInterfaceProvider.java:54) ~[graylog.jar:?] 2016-03-31_08:09:05.50087 at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:187) ~[graylog.jar:?] 2016-03-31_08:09:05.50129 at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:160) ~[graylog.jar:?] 2016-03-31_08:09:05.50216 at okhttp3.RealCall.execute(RealCall.java:57) ~[graylog.jar:?] 2016-03-31_08:09:05.50265 at retrofit2.OkHttpCall.execute(OkHttpCall.java:174) ~[graylog.jar:?] 2016-03-31_08:09:05.50521 at org.graylog2.rest.resources.cluster.ClusterMetricsResource.multipleMetrics(ClusterMetricsResource.java:98) ~[graylog.jar:?] 2016-03-31_08:09:05.50567 at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) ~[?:?] 2016-03-31_08:09:05.50746 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_74] 2016-03-31_08:09:05.50817 at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_74] 2016-03-31_08:09:05.50880 at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) ~[graylog.jar:?] 2016-03-31_08:09:05.50943 at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) ~[graylog.jar:?] 2016-03-31_08:09:05.51025 at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) ~[graylog.jar:?] 2016-03-31_08:09:05.51170 at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205) ~[graylog.jar:?] 2016-03-31_08:09:05.51261 at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) ~[graylog.jar:?] 2016-03-31_08:09:05.51324 at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) ~[graylog.jar:?] 2016-03-31_08:09:05.51434 at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) ~[graylog.jar:?] 2016-03-31_08:09:05.51492 at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) ~[graylog.jar:?] 2016-03-31_08:09:05.51629 at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) [graylog.jar:?] 2016-03-31_08:09:05.52584 at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) [graylog.jar:?] 2016-03-31_08:09:05.53409 at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) [graylog.jar:?] 2016-03-31_08:09:05.53488 at org.glassfish.jersey.internal.Errors.process(Errors.java:315) [graylog.jar:?] 2016-03-31_08:09:05.53836 at org.glassfish.jersey.internal.Errors.process(Errors.java:297) [graylog.jar:?] 2016-03-31_08:09:05.53879 at org.glassfish.jersey.internal.Errors.process(Errors.java:267) [graylog.jar:?] 2016-03-31_08:09:05.54272 at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) [graylog.jar:?] 2016-03-31_08:09:05.54275 at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) [graylog.jar:?] 2016-03-31_08:09:05.54963 at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) [graylog.jar:?] 2016-03-31_08:09:05.54965 at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384) [graylog.jar:?] 2016-03-31_08:09:05.54966 at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) [graylog.jar:?] 2016-03-31_08:09:05.54966 at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176) [graylog.jar:?] 2016-03-31_08:09:05.54967 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_74] 2016-03-31_08:09:05.54967 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_74] 2016-03-31_08:09:05.54968 at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74] And from web browser running on the other machine (not server1): POST http://server1:12900/cluster/crewserver1_graylog/metrics/multiple 500 (Internal Server Error)Request.end @ client.js:960(anonymous function) @ index.js:61tryCatcher @ bluebird.js:4589Promise._resolveFromResolver @ bluebird.js:2668Promise @ bluebird.js:2258Request.promise @ index.js:60Request.then @ index.js:95json @ FetchProvider.js:92promise @ FetchProvider.js:132fetch @ FetchProvider.js:142(anonymous function) @ MetricsStore.js:114list @ MetricsStore.js:111n @ vendor.js:415r.emit @ vendor.js:409e.exports.trigger @ vendor.js:415(anonymous function) @ vendor.js:415(anonymous function) @ vendor.js:408r.run @ vendor.js:405o @ vendor.js:405 FetchProvider.js:54 There was an error fetching a resource: cannot POST http://server1:12900/cluster/crewserver1_graylog/metrics/multiple (500). Additional information: crewserver1FetchError @ FetchProvider.js:54(anonymous function) @ FetchProvider.js:113tryCatcher @ bluebird.js:4589Promise._settlePromiseFromHandler @ bluebird.js:2695Promise._settlePromiseAt @ bluebird.js:2769Promise._settlePromises @ bluebird.js:2885Async._drainQueue @ bluebird.js:175Async._drainQueues @ bluebird.js:185Async.drainQueues @ bluebird.js:67 I would be grateful for help -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/4d37e110-d1b6-4ba6-8736-49a0e4a8cc9d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
