New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make possible to set rest_transport_uri relative #2596

hc4 opened this Issue Aug 3, 2016 · 2 comments


None yet
2 participants

hc4 commented Aug 3, 2016

Problem description

If I configure rest_transport_uri =, then graylog able to open main page and some other (e.g. streams, search), but some rest requests won't work.
For example:
return error: {"type":"ApiError","message":"Illegal URL: "}

Also error can be found in logs:

2016-08-03T11:56:34.538+03:00 ERROR [AnyExceptionClassMapper] Unhandled exception in REST resource
java.lang.IllegalArgumentException: Illegal URL:
        at retrofit2.Retrofit$Builder.baseUrl( ~[graylog.jar:?]
        at ~[graylog.jar:?]
        at$createRemoteInterfaceProvider$1( ~[graylog.jar:?]
        at$getForAllNodes$0( ~[graylog.jar:?]
        at$toMap$58( ~[?:1.8.0_91]
        at$3ReducingSink.accept( ~[?:1.8.0_91]
        at java.util.HashMap$EntrySpliterator.forEachRemaining( ~[?:1.8.0_91]
        at ~[?:1.8.0_91]
        at ~[?:1.8.0_91]
        at$ReduceOp.evaluateSequential( ~[?:1.8.0_91]
        at ~[?:1.8.0_91]
        at ~[?:1.8.0_91]
        at ~[graylog.jar:?]
        at ~[graylog.jar:?]
        at ~[graylog.jar:?]
        at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke( ~[?:1.8.0_91]
        at java.lang.reflect.Method.invoke( ~[?:1.8.0_91]
        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke( ~[gra                                  ylog.jar:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$ ~[graylog.j                                  ar:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke( ~[graylog.                                  jar:?]
        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.j                                  ava:205) ~[graylog.jar:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch( ~[graylog                                  .jar:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke( ~[graylog.jar:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply( ~[graylog.jar:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply( ~[graylog.jar:?]
        at org.glassfish.jersey.server.ServerRuntime$ [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors$ [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors$ [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors.process( [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors.process( [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors.process( [graylog.jar:?]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope( [graylog.jar:?]
        at org.glassfish.jersey.server.ServerRuntime.process( [graylog.jar:?]
        at org.glassfish.jersey.server.ApplicationHandler.handle( [graylog.jar:?]
        at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service( [graylog.jar:?]
        at org.glassfish.grizzly.http.server.HttpHandler$ [graylog.jar:?]
        at com.codahale.metrics.InstrumentedExecutorService$ [graylog.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_91]
        at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_91]
        at [?:1.8.0_91]


  • Graylog Version: 2.1.0-beta2

This comment has been minimized.


joschi commented Aug 3, 2016

@hc4 The rest_transport_uri MUST NOT be a relative URI (we should check that and fail fast if it is, though) because it's being used by Graylog itself to locate and communicate with other Graylog nodes.

@joschi joschi closed this Aug 3, 2016


This comment has been minimized.


hc4 commented Aug 3, 2016

Got it :)

Changed config and everything works fine!

rest_transport_uri =
web_endpoint_uri =

joschi added a commit that referenced this issue Aug 3, 2016

bernd added a commit that referenced this issue Aug 3, 2016

Ensure that {rest,web}_{listen,transport,endpoint}_uri settings are a…
…bsolute URIs (#2600)

* Upgrade to JadConfig 0.13.0
* Ensure that {rest,web}_{listen,transport,endpoint}_uri settings are absolute URIs

Refs #2596
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment