Hi Evgueni, one or more JARs on the JVM class path of your Graylog installation seems to be broken (could be plugins or other JAR files).
Replace those with known-good copies and restart Graylog. Cheers, Jochen On Thursday, 3 November 2016 19:04:53 UTC+1, Evgueni Gordienko wrote: > > Thanks, > After about 3 min running it showed APIs though with exception - is it OK? > > 2016-11-03T18:03:21.358Z ERROR [AnyExceptionClassMapper] Unhandled > exception in REST resource > java.lang.IllegalStateException: zip file closed > at java.util.zip.ZipFile.ensureOpen(ZipFile.java:669) ~[?:1.8.0_65] > at java.util.zip.ZipFile.access$200(ZipFile.java:60) ~[?:1.8.0_65] > at java.util.zip.ZipFile$ZipEntryIterator.hasNext(ZipFile.java:493) > ~[?:1.8.0_65] > at > java.util.zip.ZipFile$ZipEntryIterator.hasMoreElements(ZipFile.java:488) > ~[?:1.8.0_65] > at java.util.jar.JarFile$JarEntryIterator.hasNext(JarFile.java:253) > ~[?:1.8.0_65] > at > java.util.jar.JarFile$JarEntryIterator.hasMoreElements(JarFile.java:262) > ~[?:1.8.0_65] > at org.reflections.vfs.ZipDir$1$1.computeNext(ZipDir.java:30) > ~[graylog.jar:?] > at org.reflections.vfs.ZipDir$1$1.computeNext(ZipDir.java:26) > ~[graylog.jar:?] > at > com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) > > ~[graylog.jar:?] > at > com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) > ~[graylog.jar:?] > at org.reflections.Reflections.scan(Reflections.java:240) > ~[graylog.jar:?] > at org.reflections.Reflections.scan(Reflections.java:204) > ~[graylog.jar:?] > at org.reflections.Reflections.<init>(Reflections.java:129) > ~[graylog.jar:?] > at org.reflections.Reflections.<init>(Reflections.java:170) > ~[graylog.jar:?] > at > org.graylog2.shared.rest.documentation.generator.Generator.<init>(Generator.java:99) > > ~[graylog.jar:?] > at > org.graylog2.shared.rest.resources.documentation.DocumentationResource.overview(DocumentationResource.java:81) > > ~[graylog.jar:?] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[?:1.8.0_65] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > ~[?:1.8.0_65] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > ~[?:1.8.0_65] > at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] > 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$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) > > ~[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_65] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > > [?:1.8.0_65] > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65] > 2016-11-03T18:03:21.407Z INFO [Reflections] Reflections took 569 ms to > scan 5 urls, producing 220 keys and 893 values > > On Wednesday, November 2, 2016 at 8:01:50 PM UTC-7, Evgueni Gordienko > wrote: >> >> Hi, >> I have 2 node GL cluster - each node has 2 NICs and https is enabled. >> The doc from >> http://docs.graylog.org/en/2.1/pages/configuration/rest_api.html says: >> 'For example if your Graylog REST API is listening on >> http://192.168.178.26:9000/api/, the API browser will be available at >> http://192.168.178.26:9000/api/api-browser/.' >> >> But in my case if first interface is https on 192.168.178.26:9000 and >> second interface is 172.1.1.26 and I press 'API Browser button the new tab >> is >> opened but I see it tries to get https via second interface and hangs - >> what could be wrong? >> >> Note - in server.conf I have: >> rest_listen_uri = https://0.0.0.0:9000/api/ >> >> web_listen_uri = https://0.0.0.0:9000/ >> >> >> web_endpoint_uri = https://192.168.178.26:9000/api/ >> >> Thank you, >> Evgueni >> > -- 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/0588b509-6314-4283-b718-9d64cea59a4f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
