kubernetes: kubectl logs -f failed with 'unexpected stream type "" '

I was running a kubectl logs -f, not for long, that broke unexpectedly with

{"level":"info","msg":"Sync time: 2.276207ms","time":"2017-06-20T17:30:02Z"}
{"level":"info","msg":"Sync time: 5.663623ms","time":"2017-06-20T17:30:32Z"}
unexpected stream type ""

Doesn’t seem normal.

$ kc version
Client Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.0-alpha.0.533+1168552fade5fd", GitCommit:"1168552fade5fd138e4af664ed7b31ec40c6a20f", GitTreeState:"clean", BuildDate:"2017-06-10T16:56:39Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.4", GitCommit:"d6f433224538d4f9ca2f7ae19b252e6fcb66a3ae", GitTreeState:"clean", BuildDate:"2017-05-19T18:33:17Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}

@kubernetes/sig-node-bugs @kubernetes/sig-cli-bugs

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 6
  • Comments: 19 (12 by maintainers)

Commits related to this issue

Most upvoted comments

FYI, the fix is in 1.7.6.

So I have access after all 😃 docker 11.2 is used and the log driver is json-file. Unfortunately, I have scaled the deployment down since I had the issue and now I cannot find the container log under /var/log/containers. Noted for the next time tho