-
Notifications
You must be signed in to change notification settings - Fork 890
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
Invalid client_id ("kubeflow-oidc-authservice"). #2027
Comments
@majorinche Try re-installing https://github.com/kubeflow/manifests/tree/v1.3.1 with a clean kubernetes cluster. Is auth-service-0 in istio-sytem namespace running? |
hi, i already re-install three times, but error exist auth-service-0 is running as showing below. how to debug this error except reinstalling? thank you |
Hi, if you re-installed kubeflow, did you delete the kubeflow namespace and other releated namespaces or uninstalled by component by component by using kubectl delete -f - Any changes made to kubeflow/manifests before install? I had Invalid client_id when I made changes to dex or odic modules in the manifest but don't exactly remember. Which version of kubernetes are you using? Cert-manager Istio Dex odic-authservice if all the above steps are completed try? uinnstall odic-authservice Reinstall oidc-authservice |
on-prem(bare-metal based) i just install a new K8S cluster. now i have two k8s cluster to verify kubeflow only change docker image address (as gcr.io can not be access here) and change persistentvolumeclaim, as my cluster only as nfs storage already do steps as you mentioned. but not work! |
what are the OIDC_CLIENT_ID and OIDC_CLIENT_SECRET values you see when you run the below command? kubectl -n auth get secret -o yaml dex-oidc-client I remember now the error is cause by the oidc-image. Can you please check which image your pod is using from the output it should be using the image with following tag: gcr.io/arrikto/kubeflow/oidc-authservice:28c59ef |
[root@e0501 ~]# kubectl -n auth get secret -o yaml dex-oidc-client [root@e0501 ~]# kubectl -n istio-system describe pod authservice-0 | grep image for the link you mentioned "gcr.io/arrikto/kubeflow/oidc-authservice:28c59ef", we cannot connect gcr.io, so i just search oidc-authservice in hub.docker.com, but not sure these are the same image. |
Can you check the same for dex-xxx pod and dex cm. Try deleting dex pod if not deleted recently |
dex pod has been deleted again, but not working, and configmap shows below |
Everything looks good here as well. Which port are you trying to access istio-ingress are you using node port? Also can post the version of dex docker image? it should be dex:v2.24.0 |
yes, i using node port i cannot see the login screen in browser i check inside host by using curl command ,can see the login [root@e0501 ~]# cat /etc/hosts 10.20.0.51 istio-ingressgateway.cluster.local |
1,ingress-nginx expose a nodeport 2,and another nginx redirect 80 to 31255 3,then, in my laptop, using http://istio-ingressgateway.cluster.local to visit a little complex, as my network environment is limited. |
All the outputs you posted from curl and other looks exactly the same as my working cluster. Except I use istio-ingressgateway nodeport and node ip Are you trying to access on ingress-ngnix or istio-ingressgateway? As you are running on a single node which is your laptop can you try on the nodeport for 80 istio-ingressgateway? |
so if you use node ip + node port, it will report the same error as mine? |
No mine doesn't have any errors right now. I just saying I am using nodeip+nodeport to access the UI. Did you try nodeip+nodeport? is central-dashboard pod running in kubeflow namespace just to make sure? |
central-dashboard is running
Initializing Kubernetes configuration "other" is not a supported platform for Metrics i try visit by nodeip+nodeport, but still same error can i skip this auth or dex? is it really necessary for kubeflow? |
There is a way to use a standalone kubeflow without dex but haven't tried it. https://www.kubeflow.org/docs/components/pipelines/installation/standalone-deployment/ Did you install the below to component in the current instllation? Profiles + KFAM kustomize build apps/profiles/upstream/overlays/kubeflow | kubectl apply -f - User Namespace kustomize build common/user-namespace/base | kubectl apply -f - |
Profiles+KFAM and User Namespace already done. kubectl get pod -n chejinguo -w |
you have to look for profile-controller pod for KFAM+profile |
if i visit nodeip+nodeport directly, it will redirect for me and has invalid id error but after using following link, i can see a login page remind me to input email address and password Log in to Your Account and where can i add a new account manually? |
account is added by default is 172.18.168.51 your node id? |
yes, node ip is 172.18.165.51 |
invalid client id error url after login with user([email protected]) and password(12341234), new error appear. |
did you run this it will create that user kustomize build common/user-namespace/base | kubectl apply -f - |
yes, already done |
Ok delete dex-xxx, auth-service, istio-ingressgateway, central-dashboard and profile-controller pods and try again to login Can you clearly mention the setup of your kubeflow Like how did you install kubernetes? did you run kustomize command for each component to install individually or did your run kustomize to install all kubeflow components at once? |
1, all pods you mentioned has been delete again 2, install kubernetes in 6 bare-mental servers. kubernetes version is 1.17.9, and its clean, only to test kubeflow. no other application. 3, i follow up with https://github.com/kubeflow/manifests/tree/v1.3.0, and Install individual components |
hi, now the error is gone, i can open the kubeflow. |
like i said in the initial comments of the discussion this is just an image version issue. 🙂 |
yes, i review the comment, you said "Also can post the version of dex docker image? it should be dex:v2.24.0" but i did not notice. my fault. sorry. thanks you very much!!! |
You're Welcome. I think we can close this |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to inactivity. |
kubeflow version: manifests-1.3.0
try to visit kubeflow from istio-ingress, it reports this error
Bad Request
Invalid client_id ("kubeflow-oidc-authservice").
i check the dex log
kubectl logs -f dex-59cd9bd699-8spx6 -n auth
find error:
http://istio-ingressgateway.cluster.local/dex/auth?client_id=kubeflow-oidc-authservice&redirect_uri=%2Flogin%2Foidc&response_type=code&scope=profile+email+groups+openid&state=MTYzMTg0Njk4OXxFd3dBRUdNeVYwUTRSakp4VG1aSVN6VmhPRFE9fPtE69iYBqaT71Aq42jAxTmfhhVN58DyaQ8qeg3a9Sjc
i already reinstall cluster several times. error still exist.
The text was updated successfully, but these errors were encountered: