rancher: "TestAndApply Error" when setting up GitHub application for pipelines

Just deployed a new rancher environment on a new kubernetes environment and was in the process of setting up Rancher to automagically deploy applications from my public & private repositories.

In order for pipelines to work i registered a GitHub application for rancher to use and provided Rancher with the Client ID & Client Secret. The OAuth process went smoothly untill i was sent back to the callback uri (rancher).

Everytime i try to setup a GitHub application in Rancher i am presented with the following error: "failed to decode the config, error: 1 error(s) decoding:↵↵* 'ManagedFields[0].Time' expected a map, got 'string'"


Useful Info
Versions Rancher v2.4.3 UI: v2.4.22
Route /p/local:p-v4zkc/pipeline?group=none
Installation method Helm rancher
Cluster Type Custom
Machine Type VPS (Hetzner Cloud)
Kubernetes Version v1.18.2

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 16
  • Comments: 25 (2 by maintainers)

Most upvoted comments

Same problem here! Rancher 2.4.3, Helm Install K3s 1.18.2.

rancher 2.4.5 does not work as well

Same problem

Useful Info
Versions Rancher v2.4.4
Kubernetes Version in k3s 1.18.3, v1.17.6+k3s1,v1.17.5+k3s1

So v1.17.5+k3s1 does not work for me as well. Im really stucked here. Not sure, if i do something wrong, or it´s a bug. So for me at least rancher pipelines are not useable at the moment. Im just wondering that not more people facing that issue… Any news on that?

Same issue here Rancher v2.4.5, single RKE install

Tried with Gitlab-ce on premises and Github.com

same error version:2.4.5 k3s rancher

Rancher 2.3.6 has the same problem when adding the authorization of private gitlab-ce account. Click the authorization button and the error will pop up immediately: failed to decode the config, error: 1 error(s) decoding: * ‘ManagedFields[0].Time’ expected a map, got ‘string’

Useful Info
Versions Rancher v2.3.6 UI: v2.3.40
Kubernetes Version in k3s 1.18.3
Installation method Helm3 rancher
Cluster Type&Version Custom 1.17.5
GitLab Version CE-12.3.5

The same issue appears with a bitbucket pipeline, while authenticating with bitbucket: TestAndApply Error failed to decode the config, error: 1 error(s) decoding: * 'ManagedFields[0].Time' expected a map, got 'string'

same error, but on BitBucket: version:2.4.5 k3s rancher

rancher/rancher:v2.4-head f32f5d1d2 rancher/rancher:master-head 28ea6d4b1

  • Created an HA installation for both v2.4-head, master-head
  • Created a single-node install for v2.4-head
  • Created a cluster in each Rancher server
  • Authorized pipeline repositories through GitHub and was able to see all repos listed without errors

@maggieliu any chance to move that to 2.4.6 milestone, since the pull request seems allready to be approved?

@yasker @maggieliu Any ETA on this issue? It’s been nearly two months and no action on this. Can this be added to milestone v2.4.5 so that we can set up our pipelines via Github repositories?

I had the same error in rancher 2.4.5. I tried adding a pipeline to Gitlab 13.1.4-ee on premise. Rancher and the target cluster bot used k3s and mariadb database.

When I switched to a single docker for rancher and a rke cluster for my target. I could add the pipeline.