KlausSchaefers / quant-ux

Quant-UX - Prototype, Test and Learn
GNU General Public License v3.0
1.95k stars 200 forks source link

[OpenShift | Kubernet] Error occurred while proxying request #228

Closed engmsilva closed 1 year ago

engmsilva commented 1 year ago

I'm using your images to run the quant-ux project on Openshift.

I'm getting the below message in frontend POD logs when trying to register a user.

[HPM] An error occurred while proxying quant-ux.mydomain/rest/user to https://quant-ux-backend.mydomain/ [SELF_SIGNED_CERT_IN_CHAIN] (https://nodejs.org/api/errors.html #errors_common_system_errors)

It appears to be a certificate configuration issue between apps. Do you know if this configuration should be done in openshift or in the application?

I am also getting this message in the backend POD logs.

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
13:02:06.365 [vert.x-eventloop-thread-0] ERROR com.qux.util.Config - mergeEncIntoConfig() > QUX_USER_ALLOW_SIGNUP > true
13:02:07.268 [vert.x-eventloop-thread-0] ERROR com.qux.rest.UserREST - initConfig() > Limit domains to: quant-ux.mydomain
engmsilva commented 1 year ago

I managed to find the problem. The value of the frontend POD environment variable QUX_PROXY_URL was set wrong. As within the Kubernet/Openshift environment the POD's communicate only through services, I had to pass the address and port of the service used by the POD and not the POD's public address.

My environment variable looks like this:

QUX_PROXY_URL: http://quant-ux-backend:8080

Congratulations on the beautiful work being done!

KlausSchaefers commented 1 year ago

Thanks for sharing the solution and your kind words!

KlausSchaefers commented 1 year ago

@engmsilva: Would it make sense to share the K8 deployment files with the community?

engmsilva commented 1 year ago

@KlausSchaefers I am happy to contribute in some way to the project. I uploaded a repository with the k8s manifest files to run Quant-UX. I wrote a small tutorial on how to test manifest files locally. I hope it's helpful.

All information in the repository can be used and published as you see fit.

https://github.com/engmsilva/quant-ux-k8s

KlausSchaefers commented 1 year ago

Hi,

thank you so much! I will copy the files to the quant-ux repository, to have all the stuff together.

Thanks,

Klaus

On Sun, Feb 5, 2023 at 8:34 PM Marcelo Ribeiro da Silva < @.***> wrote:

@KlausSchaefers https://github.com/KlausSchaefers I am happy to contribute in some way to the project. I uploaded a repository with the k8s manifest files to run Quant-UX. I wrote a small tutorial on how to test manifest files locally. I hope it's helpful.

All information in the repository can be used and published as you see fit.

https://github.com/engmsilva/quant-ux-k8s

— Reply to this email directly, view it on GitHub https://github.com/KlausSchaefers/quant-ux/issues/228#issuecomment-1418246143, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWHOQG7WIQVH4WUPLYYQWLWV76CPANCNFSM6AAAAAAUN5K3XY . You are receiving this because you were mentioned.Message ID: @.***>

-- “Overfitting” is not about an excessive amount of physical exercise...