An error occurred logging in: Server error while authenticating

Hey everyone,

actually i just have some free time so i started to investigate it into learning what Kubernetes is, how it works and setting up a testcluster. I’m using K3S with Rancher on Top - its not that much actually.

The problem is, that most of the time i cant sign in to the Rancher UI, because the error An error occurred logging in: Server error while authenticating pops up when entering the login data. There is no external authentication involved yet.

Could you perhaps tell me how I can debug this? As I said, I’m still new to the whole subject and there’s quite a lot of information coming at me.

//Edit
Further…I done a traefik Helm upgrade before some minutes, before the state of the app was “pending” cause it was freezed on a defect state. I rolled back and upgraded again. helm ls -aA shows it as deployed state, but the UI still shows the defect pending-upgrade state.

To debug, check the logs of the rancher pods. And check the events that no OOM errors cause pod restarts.

Some tipps (as you did not give much details about your installation):

1.) the cluster where rancher is deployed should only do that, don’t run other workloads there. Instead always create downstream clusters for that.

2.) don’t manually update things in the rancher cluster, it may break things.