-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
panic when using Docker Cloud's web console to access influxdb container #7354
Comments
Not reproducible. |
@tevjef Did you find a work around for this? I'm encountering the same problem |
We're also having the same probleme here, any idea? |
The problem seems to come from here: https://github.com/peterh/liner/blob/8975875355a81d612fafb9f5a6037bdcc2d9b073/output.go#L51-L63
The |
Easy to reproduce:
|
We can reproduce what is done by the package with this gist: https://gist.github.com/Soulou/ad9b094d3b9a56c04995405751301e1b Result by running this in docker:
We've the 0 which creates the panic |
By adding a sleep in the main:
We can see that the problem comes from the delay in which docker initialize the stty of the container. |
Just resize the window after logging in your container/pod. And then execute influx cli. |
Bug report
System info: Official docker image, 1.0-alpine,
OS: debian 8
Steps to reproduce:
influx
to use influxdb CLIExpected behavior:
Characters are written to the CLI
Actual behavior:
panics with err: integer divide by zero
Additional info:
Going by the stacktrace and the vender info, I can pinpoint the location of crash in the
github.com/peterh/liner
library: https://github.com/peterh/liner/blob/8975875355a81d612fafb9f5a6037bdcc2d9b073/line.go#L159The text was updated successfully, but these errors were encountered: