rancher: Rancher 2.6 Cannot Login
I deployed rancher 2.6 and cannot login. I followed the instructions for getting the bootstrap password, and it does not work.
https://rancher.com/docs/rancher/v2.6/en/installation/resources/bootstrap-password/
I get the following error from the Rancher UI.
Logging in failed: Check credentials, or your account may not be authorized to log in.
I tried deploying rancher with a custom bootstrap password and it also failed with the same login error.
helm install rancher rancher-latest/rancher \
--version ${rancher_version} \
--namespace cattle-system \
--set hostname=${hostname} \
--set ingress.tls.source=letsEncrypt \
--set bootstrapPassword=Passw0rd \
--set letsEncrypt.email=${email}
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 38 (13 by maintainers)
Same issue with v1.23.7+rke2r1 + Rancher 2.6.4
I was able to run this command
and the password given back worked to login as the admin
I found an interim fix for this particular issue - did a password reset.
kubectl -n cattle-system exec $(kubectl -n cattle-system get pods -l app=rancher | grep '1/1' | head -1 | awk '{ print $1 }') -- reset-passwordExperiencing the same on RKE2. Password ended up blank, can’t figure out how to get things going again, feels like state is pocketed all over the place by Rancher and any failure sends me on a chase to clear it.
I wish there was a way to tell RKE2 to just wipe itself clean. That way even if I encounter issues like this one, I can avoid the lingering state as I figure out the perfect incantations.
After a re-deploy of the entire EKS cluster, and immediately setting the bootstrappassword in the helm values it works correctly.
Not setting it apparently breaks any new installation of rancher on the kubernetes cluster afterwards.
This, this solved the issue for me. I take it, the bootstrap password I set doesn’t actually get processed in the Rancher pods.
Tested this on eks and was still unable to reproduce:
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.1/cert-manager.crds.yamlhelm upgrade --install --create-namespace --namespace cert-manager --create-namespace --version v1.5.1 cert-manager jetstack/cert-managerhelm upgrade --install --create-namespace --version 2.6.1 --namespace cattle-system --set hostname=rancher.local rancher rancher-latest/rancherkubectl -n cattle-system get secret/bootstrap-secret -o json | jq -r '.data.bootstrapPassword'after about 1m I saw the bootstrap password returned.
@tabnul do you see any differences between the steps I took and the steps you took?
@chokosabe I have issues in this project that have been open 6+ months and likely haven’t even been looked at yet.
Have this same issue. Its a bit shocking this issue has been open since 2021. Its reflective of the general state of this project. Seemingly no testing of anything. Loads of bugs. Features being introduced that seem almost designed to break things and nothing else - and unresolved tickets constantly being closed.
Same issue with v1.23.6+rke2r1 + Rancher 2.6.5
Same issue with RKE2
1.23.3/1.23.6+ Rancher2.6.4Same issue on k3s with Rancher 2.6.4
same issue here. RKE2 with Rancher 2.6.4
I’m having the same issue; can’t log in. This can be related to #14715.
@paynejacob I indeed used helm uninstall. Further, i used 2.6.0 and deployed on top of EKS.
Didnt get errors during deployment. Secret was just empty when not specifying bootstrappassword
In my case, even after an hour there was no password , secret was still empty. No bootstrappassword set.