-
Notifications
You must be signed in to change notification settings - Fork 5
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
Keycloak Not Working; 404 #8
Comments
Hello, You can check active paths and containers thanks to Traefik dashboard: http://localhost:8080 |
Hi @ncarlier , thanks for that; auth/api/traefik now all work. /keeper does not work though, error is (console):
Not sure what I am to do now though? Many thanks! |
This means that the keycloak.js script is not loaded. Can you check errors ans HTTP request with your browser web console (F12)? |
OK I fixed that issue (Chrome was blocking it due to a security cert issue), thanks @ncarlier! I am now getting another issue:
Where the page now says: We are sorry... What to do now? :) Many thanks, |
So, when going to localhost/keeper, it takes me to https://login.nunux.org/. Is that expected? |
login.nunux.org should not be used. It's the hosted URL. The http://localhost/keeper/keycloak.json is maybe incorrect. Did the configuration phase go well during the deployment? if not you can try to reconfigure keaycloak using: |
Thanks @ncarlier fixed now, not sure what was going on. Not sure if I should create another issue but trying to use the keep this bookmarklet and a popup comes saying please login in, so i click that and it takes me from the BBC news site to http://www.bbc.co.uk/auth/realms/keeper-demo/protocol/openid-connect/auth?client_id=keeper-app&redirect_uri=http://localhost/keeper?redirect=https%3A%2F%2Fwww.bbc.co.uk%2Fnews&state=a8244df0-a031-4466-8852-6d332264746c&response_mode=fragment&response_type=code&scope=openid&nonce=30009a29-8cd2-4a26-9a43-61d52cccbedc Is there something I am to do here? Thanks! |
I think this is because the base URL is not set for the login URL. |
That seems to do the trick @ncarlier! Unfortunately I am getting another error when I try to keep something via the bookmarklet:
I believe I have followed everything now! Thanks |
"Unexpected token u in JSON" ... "u" certainly like "undefined". |
Ah I see this in the response:
Sounds like I should change the port? I did that but I get other issues lol :O |
I think the payload sent to http://localhost/api/v2/documents isn't correct. Can you show the full http request? |
Here it is! Request payload:
Request headers:
General:
|
Also going to BBC and I click keep this bookmarklet, it tells me to login and it takes me to this site as a 404: http://www.bbc.co.uk/auth/realms/keeper-demo/protocol/openid-connect/auth?client_id=keeper-app&redirect_uri=http://localhost/keeper?redirect=https%3A%2F%2Fwww.bbc.co.uk%2Fnews&state=3d1213f9-ee8b-4ad9-8ae7-b7528f7f8ed2&nonce=19f600b6-3880-4fdb-8149-bdf5c74210cb&response_mode=fragment&response_type=code&scope=openid Just testing it out. Cheers! |
The following payload isn't correct: {"title":"Settings: Bookmarklet","origin":"http://localhost/keeper/settings/bookmarklet"} It seems that you click on the bookmarklet while you are on the Keeper settings page. So you ask Keeper to save a localhost URL which is obviously unable to do. Regarding the BBC URL, it means that the Keycloak base URL is not correct. Can you show the http://localhost/keeper/keycloak.json content? |
This is it @ncarlier:
Cheers! |
|
Saying this, I wonder if the env variable is properly propagated. Can you add |
I tried that @ncarlier but now when clicking keep this, the popup just says login first, clicking seems to go to keeper then back to BBC site. Checking Keeper, nothing is saved. Checking the console, I see this:
I think I must be doing something wrong! Thanks! |
The cinematic is correct: If you are not logged in, your are redirected to Keycloak and finally redirected to BBC site. Then you have to click again on the bookmarklet! You should be logged, and click on the button should save the page. Regarding the 404 error it's means that the API is not available. Can you check traefik status (localhost:8080) and test the API url directly in your browser: http://localhost/api/ |
@ncarlier http://localhost/api/ returns a 404 and is not present in Traefik! I only added PUBLIC_BASEURL=http://localhost to keycloak.env and REACT_APP_LOGIN_ROOT=http://localhost to keeper-web-app.env. No other changes were done. Heres a screenshot. Thanks! |
The API is not started. Can you check docker logs of the keeper-core-api container? |
I run make deploy and, after its loaded, this is what docker -ps shows:
This is also what make deploy shows:
I have not seen any keeper api on docker? Thanks! |
Keycloak configuration failed when creating the Admin group. I don't understand why. |
Hi there! Been trying to get this docker app working. Instructions are easy to follow but http://localhost/keycloak does not load, it just shows a 404 error.
http://localhost/api works and http://localhost/keeper almost works but its complaining about Uncaught TypeError: window.Keycloak is not a constructor.
What should I do to fix this issue pls?
Docker ps shows this:
Just in case its useful, heres toe docker logs for keeper, not seeing any issues?
Many thanks!
The text was updated successfully, but these errors were encountered: