-
Notifications
You must be signed in to change notification settings - Fork 303
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
Docker error on start: Error fetching openid configuration 500 Internal Server Error #1790
Comments
Hey there, I'll get on this in a bit, I'm busy with my full-time job right now. I'm leaving this comment to let you know I'm looking into it, and the starting point (for my own reference) is here https://github.com/nodeSolidServer/solid-multi-rp-client/blob/e9985e2fed97e33fd345a25242c1722bf13c27b0/src/multi-rp-client.js#L104-L109 One thing which MAY be causing the issue is if the requests to your URI are actually getting routed to the localhost port. I'm wondering if you may be able to change a configuration file to fix it, or if there is something in the config file of NSS which is causing the URL resolution issue. |
Hej hej, I think that there indeed might be some configuration problem, especially since I don't get a 500 error when I am within the docker container (the wget --no-check-certificate https://localhost:8443/.well-known/openid-configuration does seem to work then). As far as I understood, using docker compose, the configuration is done through the environment variables (#1450 (comment)). If there is any mistake in the docker compose configuration I posted above (the environment variables), please let me know. P.s.: this is my traefik docker compose, I don't think there is an error in that configuration; it works with multiple other services without a problem (nextcloud, mattermost, openproject, gitea, ....)
|
Hej hej,
Now I do not longer get the 500 error :),..... but I end up with bad gateway 502 errors :( :
|
I have continued playing around with the configuration, and I either end up with 404, 500, or 502 errors. No matter which configuration (even with 404 errors), whenever I enter the container shell and wget the openid-configuration it ends up working. This is the console log with error 404
Which is the result of this docker compose:
So basically, I keep commenting in/out and modifying the values listed below, resulting in either 404, 500, or 502 errors. Below are the setup of these values resulting in the 404 error.
|
Thanks for checking. I'm not experienced with Docker but I'll try to get something deployed which is similar and see if I can figure out what the root cause is, but it may take some time as I'm not experienced with the Docker build or Docker itself |
I am currently trying to set up NSS with docker compose. However, whenever I launch the container, I end up with 500 Internal Server Error. Whenever I visit the server through my browser, I also get 500 Internal Server Error. I am not sure what causes the error.
This is my current docker compose:
This is the log when I start it with docker:
When I try wget https://solid.aresthedevil.com/.well-known/openid-configuration I ended up with:
When I enter the container while running
docker exec -it node-solid-server sh
and I runwget --no-check-certificate https://localhost:8443/.well-known/openid-configuration
, I end up with:That file contains:
Looking for existing issues related to fetching openid configuration, I found some issues discussing 502 error and not 500. It seemed that in that situation, there was/is an error with the SSL certificate. If I run the docker server with - SOLID_NO_REJECT_UNAUTHORIZED and - NODE_TLS_REJECT_UNAUTHORIZED=0 I still get the error. However, my certificate seems fine, see the attached screenshot:
This is the content of the config folder on my base system:
The text was updated successfully, but these errors were encountered: