Skip to content
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

not showing in browser. Getting “Not here” #15

Open
joeblew99 opened this issue Jul 12, 2019 · 3 comments
Open

not showing in browser. Getting “Not here” #15

joeblew99 opened this issue Jul 12, 2019 · 3 comments

Comments

@joeblew99
Copy link

joeblew99 commented Jul 12, 2019

everything builds but in the browser i get “Not here” shown.

Nats Streaming is running using:

nats-streaming-server -store file -dir data/store -m 8222

Standard Nats Monitoring at localhost://8222 shows the GUI, so standard monitoring is working.

nats-streaming-console is running using:

make dash-run
cd /Users/apple/workspace/go/src/github.com/KualiCo/nats-streaming-console && node server
{
  options: {
    server: 'nats://localhost:4222',
    monitor: 'http://localhost:8222',
    cluster: 'test-cluster',
    appName: 'nats-streaming-console'
  }
}
Example app listening at http://:::8282

Building nats-streaming-console with:


LIB_NATSDASH=github.com/KualiCo/nats-streaming-console
LIB_NATSDASH_FSPATH=$(GOPATH)/src/$(LIB_NATSDASH)

### nats streaming console dash
dash-dep:
	go get $(LIB_NATSDASH)
dash-dep-clean:
	rm -rf $(LIB_NATSDASH_FSPATH)
dash-code:
	code $(LIB_NATSDASH_FSPATH)
dash-build:
	cd $(LIB_NATSDASH_FSPATH) && npm install
	cd $(LIB_NATSDASH_FSPATH) && npm build-css 
	cd $(LIB_NATSDASH_FSPATH) && npm build
dash-run:
	cd $(LIB_NATSDASH_FSPATH) && node server
	open http://0.0.0.0:8282

@ghost
Copy link

ghost commented Jan 3, 2020

I have the same problem. I run the dockerfile and expose port 8082:8082. Go to localhost:8082, the dashboard pops up for a second and the I get redirected to the not here page.

@MattiasFestin
Copy link

I also got the error but tracked it to home-view.js -> getMonitorData. It redirects in the catch block to window.location.href = '/server'.

It outputs to console in dev tools:

{name: "Error", message: "Request failed with status code 504", fileName: undefined}

So it seems to be it can't connect to the NATS cluster that I have.
Wanted to comment to help others having this issue.

But I would suggest a better error handling then redirecting to a blank screen.

@mehran-prs
Copy link

If you run using docker, so change the docker network to host value:
docker run --rm -p 8282:8282 --network=host kuali/nats-streaming-console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants