Skip to content
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

[Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding] seen in Kubernetes container after K8s upgrade #9509

Closed
soumyalj opened this issue Jul 28, 2017 · 3 comments
Labels
kind/bug Issues that are defects reported by users or that we know have reached a real release status/autoclosed

Comments

@soumyalj
Copy link

soumyalj commented Jul 28, 2017

Rancher versions:
rancher/server:v1.6.6-rc5

**Docker version: (docker version,docker info preferred)**v1.12.6

**Operating system and kernel: (cat /etc/os-release, uname -r preferred)**Ubuntu

**Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)**DO

**Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)**Single node

**Environment Template: (Cattle/Kubernetes/Swarm/Mesos)**Kubernetes
Kubernetes version : v1.7.2

Steps to Reproduce:

  1. Create a Kubernetes setup in rancher v1.5.7 with Kubernetes v1.5.4
  2. Upgrade to v1.6.6-rc5 and upgrade all the infra stacks.
  3. Upgrade Kubernetes to v1.7.2
    After Kubernetes upgrade, the following logs are seen in the Kubernetes system container
7/28/2017 10:49:57 AME0728 17:49:57.689726       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:02 AME0728 17:50:02.301758       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:03 AME0728 17:50:03.363587       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:07 AME0728 17:50:07.819415       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:09 AME0728 17:50:09.158002       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:13 AME0728 17:50:13.417460       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:14 AME0728 17:50:14.820881       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:18 AME0728 17:50:18.955695       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:20 AME0728 17:50:20.517262       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:24 AME0728 17:50:24.303228       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:26 AME0728 17:50:26.106003       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:29 AME0728 17:50:29.865332       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:31 AME0728 17:50:31.738074       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]
7/28/2017 10:50:35 AME0728 17:50:35.684330       1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]

@soumyalj soumyalj added the kind/bug Issues that are defects reported by users or that we know have reached a real release label Jul 28, 2017
@soumyalj soumyalj added this to the July 2017 milestone Jul 28, 2017
@leodotcloud
Copy link
Collaborator

Similar error seen here too: #9508

@alena1108 alena1108 assigned joshwget and unassigned alena1108 Jul 28, 2017
@alena1108
Copy link

@leodotcloud the reason seems to be different. In 9508 it is a connectivity issue

@deniseschannon deniseschannon changed the title Constant "Invalid bearer token" error messages seen in Kubernetes container after K8s upgrade [Token has been invalidated, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding] seen in Kubernetes container after K8s upgrade Jul 28, 2017
@deniseschannon deniseschannon modified the milestones: August 2017, July 2017 Jul 30, 2017
@lkollenberger
Copy link

lkollenberger commented Oct 31, 2017

I think we have the same problem in a fresh installation of Rancher v1.6.10.

kube-dns is unavailable, and logs in the kubernetes container are full of these:

E1031 16:35:56.664114 1 authentication.go:58] Unable to authenticate the request due to an error: [invalid bearer token, [invalid bearer token, [crypto/rsa: verification error, an error on the server ("illegal base64 data at input byte 36") has prevented the request from succeeding]]]

Hosts are Ubuntu Server 16.04, with Docker 1.12.6. I'm using a custom kubernetes template with portainer and with vxlan instead of ipsec.

Is there any workaround available?

EDIT: thanks to @superseb, who found a solution: this was caused by reusing a host with a previous installation of Rancher in it, I though that removing the containers was enough (I was wrong). Followed this, and cleaned /var/lib/rancher/, everything is up and running again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues that are defects reported by users or that we know have reached a real release status/autoclosed
Projects
None yet
Development

No branches or pull requests

6 participants