Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

strange issue using winpty #3

Closed
xinity opened this issue Oct 29, 2015 · 8 comments
Closed

strange issue using winpty #3

xinity opened this issue Oct 29, 2015 · 8 comments

Comments

@xinity
Copy link

xinity commented Oct 29, 2015

hi,

from time to time i have this strange error message coming up :(

winpty

any ideas where and why ?

Thanks for this great tweak by the way

@tiangolo
Copy link
Owner

Hi @xinity !

I'm glad it helped you 😄

I've had that same issue some times, but not many. I think it's related to the way docker communicates with Windows consoles, maybe it's specially related to the combination of docker and winpty, as there's a StdStreams in the error (I guess it refers to stdin, stdout and stderr).

Normally, I just close and open Babun and it works again.

I'm not sure when that issue happens, if it is being a burden to you, you may help me trying to discover what triggers it (or how to trigger and reproduce the issue), to narrow the problem: maybe it's after a sleep / wake Windows cycle, or after an interactive session when the VM was started by the Quickstart Terminal and not the script, etc...

@xinity
Copy link
Author

xinity commented Oct 30, 2015

i'll try and figure out what's going wrong, if i can PR i'll do :)

@tiangolo
Copy link
Owner

Great, thanks @xinity !

@xinity
Copy link
Author

xinity commented Nov 30, 2015

error happening again, is there any chances we can put a little debug to see what's going on wrong ?

@tiangolo
Copy link
Owner

You could use $docker_bin, that variable holds the original docker, you could try the command you are using with that variable, maybe prepending console to use winpty.

For example:

console $docker_bin exec -it mycontainer bash

If the error persists, it would be related to Docker or Winpty and not to Docker-Babun, so we probably wouldn't have an easy way to solve it without fixing the code for those other projects.

Also, you may try to run the command with the original Quickstart Terminal, to see if the error happens there too.

@tiangolo
Copy link
Owner

tiangolo commented Dec 3, 2015

I think this issue is related to moby/moby#17430 and moby/moby#12506

@xinity
Copy link
Author

xinity commented Dec 31, 2015

yup i saw

moby/moby#12506 is ongoing :(
damn it !

@tiangolo
Copy link
Owner

Well, as it seems this issue is more related to Docker itself, I will close it here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants