Server currently unavailable error is coming while trying to access from browser


(MAHESH K) #1

Server currently unavailable

We are experiencing problems connecting to the Graylog server running on http://192.168.1.1:9000/api/. Please verify that the server is healthy and working correctly.

You will be automatically redirected to the previous page once we can connect to the server.

Do you need a hand? We can help you.
Less details

This is the last response we received from the server:

Error message
Bad request
Original Request
GET http://192.168.1.1:9000/api/system/sessions
Status code
undefined
Full error message
Error: Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.


(Jan Doberstein) #2

and did you checked the log files?


(Ray) #3

I have this same issue and the logs show no errors.
[ServerBootstrap] Graylog server up and running

What I believe is the problem is the private ip. Obviously I can not browse to the private IP.
If I set the rest_uri to the public ip the system wil not start

2017-04-04T17:50:02.623Z ERROR [ServiceManager] Service JerseyService [FAILED] has failed in the STARTING state.
java.net.BindException: Cannot assign requested address

The web uri is the public dns name associated with the public ip.

If the web uri and the rest uri are the same ip and port I get the “esperiencing problems connecting to the Graylog server running on …” but the logs show no errors


(Ray) #4

okay I seem to have it working.
Set the rest_listen_uri to the private ip on the host that the public ip NATs to.
set the web_listen_uri to the private ip on the host that the public ip NATs to
set the web_endpoint_uri to http://public IP :9000/api/ ( this is basically the same as the rest_listen_uri but with the public ip instead of the private IP )