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

Redirect from login to dashboard fails locally #5

Open
sbenthall opened this issue Mar 26, 2023 · 7 comments
Open

Redirect from login to dashboard fails locally #5

sbenthall opened this issue Mar 26, 2023 · 7 comments

Comments

@sbenthall
Copy link
Contributor

sbenthall commented Mar 26, 2023

After running the login and dashboard containers locally, and getting to the login page and entering the username and password, I get redirected to:

https://localhost/dashboard?bokeh-session-id={blah}

The browser errors.

image

I'm not sure if this redirect is working as intended, because the dashboard is at port 5006. So trying:

https://localhost:5006/dashboard?bokeh-session-id=B8XEv7K9odP1

... gets me a connection timeout error:

Uploading image.png…

@MridulS
Copy link
Collaborator

MridulS commented Mar 26, 2023

What's your LOGIN_DASHBOARD_URL=https://{dashboard_url}/dashboard ?

It should be https://localhost:5006/dashboard

@MridulS
Copy link
Collaborator

MridulS commented Mar 26, 2023

ah no, just do http not https

@MridulS
Copy link
Collaborator

MridulS commented Mar 26, 2023

and BOKEH_ALLOW_WS_ORIGIN={dashboard_url} should be BOKEH_ALLOW_WS_ORIGIN=localhost:5006

@priyankaiitg
Copy link

I did this, yet I am getting

The connection to the server was reset while the page was loading.

INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
INFO: 172.17.0.1:57644 - "GET / HTTP/1.1" 200 OK
INFO: 172.17.0.1:57644 - "GET /login HTTP/1.1" 401 Unauthorized
INFO: 172.17.0.1:49710 - "GET /login HTTP/1.1" 302 Found

@sbenthall
Copy link
Contributor Author

I can confirm now that I've gotten this working locally!

A few notes:

  • both docker run commands name the images hosted on dockerhub; make sure to use personal image name, not mriduls
  • needed to go to localhost:8000 to access the login
  • redirect works this time!

@priyankaiitg can you try testing this again locally? if it doesn't work for you I can show you what I've done step by step

@priyankaiitg
Copy link

I shall check and revert

@priyankaiitg
Copy link

I am getting

The connection was reset

The connection to the server was reset while the page was loading.

INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
INFO: 172.17.0.1:43934 - "GET / HTTP/1.1" 200 OK
INFO: 172.17.0.1:43934 - "GET /login HTTP/1.1" 401 Unauthorized
INFO: 172.17.0.1:43934 - "GET /login HTTP/1.1" 302 Found
INFO: 172.17.0.1:55784 - "GET / HTTP/1.1" 200 OK
INFO: 172.17.0.1:55784 - "GET /login HTTP/1.1" 302 Found

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