Skip to content
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

After detach from tsuru app-shell the API returns an error #1173

Closed
robsonpeixoto opened this issue Apr 17, 2015 · 1 comment
Closed

After detach from tsuru app-shell the API returns an error #1173

robsonpeixoto opened this issue Apr 17, 2015 · 1 comment

Comments

@robsonpeixoto
Copy link

To see the error I need to active the tsuru server debug configuration.

How to replicate:

tsuru app-shell -a your-app
exit

or

tsuru app-shell -a your-app
<CTRL+D>

log:

2015/04/17 13:54:29 ERROR: error in docker node "http://10.37.255.50:2375": API error (500): bad file descriptor
@fsouza
Copy link
Contributor

fsouza commented Apr 17, 2015

Hi @robsonpeixoto, thanks for reporting! This is already fixed at master. The issue is that we called exec start in the API, and then resize the TTY of the exec, but exec start returns when the exec is no longer alive, so calling resize on a exec that exited results in "bad file descriptor".

tsuru-server 0.11 will include the fix.

@fsouza fsouza closed this as completed Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants