weave-gitops
weave-gitops copied to clipboard
Error middleware/middleware.go:61 oauth2/userinfo
Describe the bug When opening the gitops-UI, the applications and sources page is empty. Flux runtime controllers and crds shows the list of all controllers and crd.
Environment
- Weave-Gitops Version 0.9.3
- Flux Version 0.32.0
- Kubernetes version 1.25.0
- Host operating system : Ubuntu 20.04.4
- Kubernetes installed using : microk8s To Reproduce Steps to reproduce the behavior:
- Deploy weave-gitops using kind: HelmRelease
- kubectl port-forward svc/gitops -n flux-system 9001
- Login to the http://localhost:9001
- Browse to Applications / Sources -> empty
Expected behavior
Applications and sources should shows all deployed app. (at least flux-system).
Actual Behavior
Additional Context (screenshots, logs, etc) The same deployment has no issue when I deployed to AKS, EKS multi-nodes. The issue arises when I deployed to single-node cluster.
Browsing to the pod console, I can see following error
2022-08-29T08:59:38.277Z INFO gitops cmd/cmd.go:121 Version {"version": "v0.9.3-1-g5710a8ad", "git-commit": "5710a8ad", "branch": "HEAD", "buildtime": "2022-08-16_14:55:12"}
I0829 08:59:39.329578 1 request.go:601] Waited for 1.042991131s due to client-side throttling, not priority and fairness, request: GET:https://10.152.183.1:443/apis/elasticsearch.k8s.elastic.co/v1?timeout=32s
2022-08-29T08:59:39.789Z INFO gitops cmd/cmd.go:185 Registering auth routes
2022-08-29T08:59:39.789Z INFO gitops cmd/cmd.go:249 Starting server {"address": "0.0.0.0:9001"}
2022-08-29T08:59:39.789Z INFO gitops cmd/cmd.go:303 TLS connections disabled
2022-08-30T01:57:29.532Z INFO gitops middleware/middleware.go:61 request error {"uri": "/oauth2/userinfo", "status": 400}
2022-08-30T01:57:29.797Z INFO gitops middleware/middleware.go:61 request error {"uri": "/oauth2/userinfo", "status": 400}
2022-08-30T06:23:36.151Z INFO gitops middleware/middleware.go:61 request error {"uri": "/oauth2/userinfo", "status": 400}
2022-08-30T06:23:36.393Z INFO gitops middleware/middleware.go:61 request error {"uri": "/oauth2/userinfo", "status": 400}
Hi @cakriwut, this sounds like a permission problem - how did you set up your user?
Closing due to issue age. Ping again if we can help.