-
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
Podman truncates last character of userdata symlink with a specific path length #9661
Comments
What Podman version? I'm fairly certain this was fixed as of 3.0.x. |
Version 3.0.1 |
Since the maximum length of a unix domain socket is 104 chars, that seems to be the issue. I know there were fixes for this in both Podman and Conmon. @haircommander @giuseppe PTAL |
#8979 should fix, which I've had trouble getting over the finish line. hopefully conmon 2.0.27 will solve the last CI problems with it |
@rhatdan I don't think it's the socket path issue as the path to the directory containing the socket (the one that's being symlinked to) is longer than the symlink path. Also if I make the runtime directory path longer it works just fine. The 25 character long runtime path is the only one I've found so far that exhibits this behavior. If I had to guess I'd think that there might be a buffer problem somewhere that causes the last char to disappear. I don't know golang, but in C I'd think that somewhere |
@haircommander nice, thanks for letting me know. I'll test the new version out when it's ready and hopefully the problem will be gone :) |
A friendly reminder that this issue had no activity for 30 days. |
@zv0n 2.0.27 is out now ... if you are happy, please close this issue. |
Let's reverse this and say reopen if it does not fix the issue. |
Hi, I've updated conmon to 2.0.27 and the issue persists.
results in: but
results in a running container |
A friendly reminder that this issue had no activity for 30 days. |
@zv0n Does this issue still persist? |
A friendly reminder that this issue had no activity for 30 days. |
Since I got no response, I will assume it no longer exists. Reopen if I am mistaken. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When running rootless podman with XDG_RUNTIME_DIR that has 25 characters the process fails due to truncating of socket dir symlink. Only the last character of the symlink path is truncated, I think there might be some problem with '\0' going on, but I couldn't find the userdata socket symlink in the source code.
For example this happens with $XDG_RUNTIME_DIR of length 25:
${XDG_RUNTIME_DIR}/libpod/tmp/socket/b3ee91f2f7e4e382f6395d3d5ead9ac24757b9bed6e86090069cab68c6477b2 -> ${PODMAN_ROOT}/overlay-containers/b3ee91f2f7e4e382f6395d3d5ead9ac24757b9bed6e86090069cab68c6477b28/userdata
as you can see the '8' that is supposed to be at the end of the symlink name is not there. Therefore podman fails with the following error:
Error: failed to connect to container's attach socket: ${XDG_RUNTIME_DIR}/libpod/tmp/socket/b3ee91f2f7e4e382f6395d3d5ead9ac24757b9bed6e86090069cab68c6477b28/attach: no such file or directory
Steps to reproduce the issue:
Create a directory whose path is 25 characters long
export XDG_RUNTIME_DIR=$created_directory
podman run -it ubuntu /bin/bash
Describe the results you received:
Error: failed to connect to container's attach socket: ${XDG_RUNTIME_DIR}/libpod/tmp/socket/b3ee91f2f7e4e382f6395d3d5ead9ac24757b9bed6e86090069cab68c6477b28/attach: no such file or directory
Describe the results you expected:
Running container
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
The text was updated successfully, but these errors were encountered: