-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
A warning message can appear when using podman exec command #9431
Comments
FYI The warning messages are still there in 3.0.1. |
Thanks for reaching out, @Lordryte! I'll take a look what's going on. |
@giuseppe, can you advice how to resolve the issue? Pinging you since you've been working in that parts of the code. |
@vrothberg Best guess is this is a race - we are resizing before the exec session's conmon is running so the file is not there yet. |
it is a race when the process is shortlived so it runs and dies before podman can connect to the terminal. Try: How can we make sure we attach before the exec starts? Should we ignore the error? |
same issue on my side > podman container exec -ti -w $(pwd) secbox echo test
test
WARN[0000] Error resizing exec session bad8229bc0297dea1a123f5db3a75ba72814a0a4674a3910e51371c6621ba402: could not open ctl file for terminal resize for container eeb4057902915c34a81722985390309d2e2aa3caaeb7d3363a3188ee7a880899: open /var/lib/containers/storage/overlay-containers/eeb4057902915c34a81722985390309d2e2aa3caaeb7d3363a3188ee7a880899/userdata/bad8229bc0297dea1a123f5db3a75ba72814a0a4674a3910e51371c6621ba402/ctl: no such device or address |
Can we just check for this specific error, ENXIO, and drop to DEBUG? |
No, this is a real bug - the container's terminal has an incorrect size (0 0) set if we get this. |
But this is only happening, on short running exec commands, correct? Is there a way to tell if the exec command has completed by the time we are checking? |
I do not know if this is relevant, but it might be. We use a scripted solution to run containerised builds on local workstations for devs, etc. While implementing docker I ran across this bug report and found something which I do not think has been referenced. Command failing: As I said, I do not know if this is relevant but I wondered if the extra character (I am assuming ^M) is related to the reported terminal size condition? If not, I'll raise another bug report. Thanks for your efforts with podman. It really is appreciated. |
This is not related to this bug, you can find the explanation to the behavior you mentioned and a better solution than using dos2unix here |
Is there any update with this one? Or could you at least suggest a workaround to implement until a fix will be issued? I tried |
The original bug, with |
As such, I'm going to close. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
A new WARNING message appeared recently, since last update to podman V3 when using the podman exec command.
Steps to reproduce the issue:
podman run -dit --name bugtest ubuntu
podman exec -lt echo "toto"
Describe the results you received:
Describe the results you expected:
toto
Additional information you deem important (e.g. issue happens only occasionally):
The warning message appearance is intermitent, sometimes no warning message is displayed.
The usecase is rootless podman.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
VPS
The text was updated successfully, but these errors were encountered: