Re: [kubernetes/kubectl] BUG: Info log on every kubectl command "duplicate proto type registered" (#30)

21 views
Skip to first unread message

Timothy St. Clair

unread,
Jun 13, 2017, 10:44:27 AM6/13/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

/cc @kubernetes/sig-api-machinery-bugs @kubernetes/sig-cli-bugs


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Timothy St. Clair

unread,
Jun 13, 2017, 3:02:49 PM6/13/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

I verified that this occurs when you use different versions of go on the client vs. server.

Mengqi Yu

unread,
Jun 13, 2017, 5:14:32 PM6/13/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"7+", GitVersion:"v1.7.0-alpha.4", GitCommit:"249551461e038df9dae5e1a932334aa66a8dc701", GitTreeState:"clean", BuildDate:"2017-05-18T17:25:27Z", GoVersion:"go1.8.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.0-alpha.0.251+56da71bb348eb9-dirty", GitCommit:"56da71bb348eb9cd6d24b64d601be974b716ad99", GitTreeState:"dirty", BuildDate:"2017-06-06T17:38:44Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

client with go1.8.1 works with server with go1.8.3

it seems that client with go1.8.3 doesn't work with server with go1.8.1

Mengqi Yu

unread,
Jun 13, 2017, 5:17:39 PM6/13/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

@timothysc Is this a blocking issue for 1.7?

Timothy St. Clair

unread,
Jun 13, 2017, 5:28:27 PM6/13/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

I think it's a bad experience, but I don't know if it's blocker worthy. I'd definitely cherry-pick any fixes.

Hart Simha

unread,
Jul 13, 2017, 7:13:53 PM7/13/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

I'm seeing this same issue with a build of hyperkube.. so in this case the server and client are the same binary, so they can't be using different versions:

vagrant-kube:/home/vagrant # kubectl version
2017-07-13 19:10:19.779033 I | proto: duplicate proto type registered: google.protobuf.Any
2017-07-13 19:10:19.779103 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-07-13 19:10:19.779119 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.0", GitCommit:"$Format:%H$", GitTreeState:"not a git tree", BuildDate:"2017-07-13T14:57:09Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.0", GitCommit:"$Format:%H$", GitTreeState:"not a git tree", BuildDate:"2017-07-13T14:57:09Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Daniel Smith

unread,
Jul 13, 2017, 7:17:36 PM7/13/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

I don't see how the server go version could matter.

Mengqi Yu

unread,
Jul 19, 2017, 12:23:55 AM7/19/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

Same issue happens at kubernetes/kubernetes#48924.

Marcelo Grebois

unread,
Sep 5, 2017, 4:19:26 AM9/5/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention
$ kubectl version
2017-09-05 08:18:47.436503 I | proto: duplicate proto type registered: google.protobuf.Any
2017-09-05 08:18:47.436595 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-09-05 08:18:47.436627 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5+coreos.0", GitCommit:"070d238cd2ec359928548e486a9171b498573181", GitTreeState:"clean", BuildDate:"2017-08-31T21:28:39Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5+coreos.0", GitCommit:"070d238cd2ec359928548e486a9171b498573181", GitTreeState:"clean", BuildDate:"2017-08-31T21:28:39Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}```

Timothy St. Clair

unread,
Sep 5, 2017, 10:00:17 AM9/5/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

I originally saw it on the delta in behavior from two different generated versions, which could be a false positive.

Joakim Karlsson

unread,
Sep 13, 2017, 8:57:53 AM9/13/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

same output with gcr.io/google_containers/hyperkube-amd64:v1.7.5 image.

Was wondering why one of my cron pods who's using this image for kubectl kept outputting

2017-09-13 12:30:04.122873 I | proto: duplicate proto type registered: google.protobuf.Any
2017-09-13 12:30:04.123017 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-09-13 12:30:04.123056 I | proto: duplicate proto type registered: google.protobuf.Timestamp

and landed here

vnalla

unread,
Sep 19, 2017, 10:59:09 AM9/19/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

I am getting the same for every kubectl command. I am using coreos/hyperkube:v1.7.4_coreos.0 and same result with 1.7.2_coreos_0 as well and there is go version mismatch at all
kubectl version 2017-09-19 14:55:33.488846 I | proto: duplicate proto type registered: google.protobuf.Any 2017-09-19 14:55:33.489644 I | proto: duplicate proto type registered: google.protobuf.Duration 2017-09-19 14:55:33.489672 I | proto: duplicate proto type registered: google.protobuf.Timestamp Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.4+coreos.0", GitCommit:"4bb697e04f7c356347aee6ffaa91640b428976d5", GitTreeState:"clean", BuildDate:"2017-08-22T08:43:47Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.4+coreos.0", GitCommit:"4bb697e04f7c356347aee6ffaa91640b428976d5", GitTreeState:"clean", BuildDate:"2017-08-22T08:43:47Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Davanum Srinivas

unread,
Sep 20, 2017, 11:55:13 AM9/20/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

Juntaran

unread,
Oct 26, 2017, 8:36:45 AM10/26/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

same for each kubectl command in v 1.7.6
Everything is normal in v 1.5.0 with same config

[root@localhost ~]# kubectl version 2017-10-26 20:32:21.787720 I | proto: duplicate proto type registered: google.protobuf.Any 2017-10-26 20:32:21.787779 I | proto: duplicate proto type registered: google.protobuf.Duration 2017-10-26 20:32:21.787792 I | proto: duplicate proto type registered: google.protobuf.Timestamp Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6", GitCommit:"4bc5e7f9a6c25dc4c03d4d656f2cefd21540e28c", GitTreeState:"clean", BuildDate:"2017-09-18T12:25:36Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6", GitCommit:"4bc5e7f9a6c25dc4c03d4d656f2cefd21540e28c", GitTreeState:"clean", BuildDate:"2017-09-18T12:25:36Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} [root@localhost ~]# kubectl get nodes 2017-10-26 20:32:24.149428 I | proto: duplicate proto type registered: google.protobuf.Any 2017-10-26 20:32:24.149490 I | proto: duplicate proto type registered: google.protobuf.Duration 2017-10-26 20:32:24.149503 I | proto: duplicate proto type registered: google.protobuf.Timestamp NAME STATUS AGE VERSION kubernetes-node1 Ready 2m v1.7.6 kubernetes-node2 Ready 2m v1.7.6

[root@localhost ~]# kubectl get nodes 2017-10-26 20:32:24.149428 I | proto: duplicate proto type registered: google.protobuf.Any 2017-10-26 20:32:24.149490 I | proto: duplicate proto type registered: google.protobuf.Duration 2017-10-26 20:32:24.149503 I | proto: duplicate proto type registered: google.protobuf.Timestamp NAME STATUS AGE VERSION kubernetes-node1 Ready 2m v1.7.6 kubernetes-node2 Ready 2m v1.7.6

Phagun Baya

unread,
Oct 26, 2017, 3:05:52 PM10/26/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

In my case go version and kubelet version as same. Still seeing this

root@k8s-master-7D10C75F-0:~# kubectl version
2017-10-26 19:04:57.347948 I | proto: duplicate proto type registered: google.protobuf.Any
2017-10-26 19:04:57.348004 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-10-26 19:04:57.348097 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"8e1552342355496b62754e61ad5f802a0f3f1fa7", GitTreeState:"clean", BuildDate:"2017-09-28T23:56:03Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"8e1552342355496b62754e61ad5f802a0f3f1fa7", GitTreeState:"clean", BuildDate:"2017-09-28T23:56:03Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Juned Memon

unread,
Oct 31, 2017, 4:52:47 AM10/31/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

Same for me

2017-10-31 04:47:51.364542 I | proto: duplicate proto type registered: google.protobuf.Any
2017-10-31 04:47:51.365204 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-10-31 04:47:51.365391 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"$Format:%H$", GitTreeState:"not a git tree", BuildDate:"2017-10-26T19:44:12Z", GoVersion:"go1.8.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"$Format:%H$", GitTreeState:"not a git tree", BuildDate:"2017-10-26T19:44:12Z", GoVersion:"go1.8.5", Compiler:"gc", Platform:"linux/amd64"}```

Joakim Karlsson

unread,
Oct 31, 2017, 4:55:13 AM10/31/17
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

It's fixed from Kubernetes 1.8 and onward. Update to get rid of it

A cherry-picked backport to 1.7 is in the pipeline: kubernetes/kubernetes#53950

fejta-bot

unread,
Jan 29, 2018, 4:54:17 AM1/29/18
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

fejta-bot

unread,
Feb 28, 2018, 5:39:53 AM2/28/18
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.

/lifecycle rotten
/remove-lifecycle stale

k8s-ci-robot

unread,
Mar 30, 2018, 7:26:56 AM3/30/18
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

Closed #30.

fejta-bot

unread,
Mar 30, 2018, 7:26:57 AM3/30/18
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.


Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Ijaz ahmad

unread,
Oct 2, 2018, 8:37:00 AM10/2/18
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

kubectl version
2018-10-02 13:36:02.034449 I | proto: duplicate proto type registered: google.protobuf.Any
2018-10-02 13:36:02.034557 I | proto: duplicate proto type registered: google.protobuf.Duration
2018-10-02 13:36:02.034574 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.3", GitCommit:"2c2fe6e8278a5db2d15a013987b53968c743f2a1", GitTreeState:"clean", BuildDate:"2017-08-10T10:34:42Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Joakim Karlsson

unread,
Oct 2, 2018, 8:58:39 AM10/2/18
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

@iahmad-khan update your kubectl, i don't think the fixes will ever be backported to old branches

Joakim Karlsson

unread,
Oct 2, 2018, 8:59:39 AM10/2/18
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

kubernetes/kubernetes#53950

With 1.10 already out, 1.7 branch is no longer supported. I'm closing this one.

Ijaz ahmad

unread,
Oct 2, 2018, 9:48:25 AM10/2/18
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

Yeah, that was the latest from Fedora package.

Reinstalled using curl. Fixed.
Thanks

Rafael Muñoz Cárdenas

unread,
Nov 28, 2018, 8:19:06 AM11/28/18
to kubernetes/kubectl, k8s-mirror-cli-bugs, Team mention

Running it on MacOS and version 1.9 I still get this error:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-09T21:51:54Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T11:55:20Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

$ kubectl get deployments -n midgard
Error from server: proto: Unknown: illegal tag 0 (wire type 0)
Reply all
Reply to author
Forward
0 new messages