-
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 hangs when starting mariadb #4344
Comments
While podman hangs, a parallel When aborting the start (Ctrl+C) and then removing the container (via
(name abbreviated for better readability). |
Seems to be hanging during either storage mount or network initialization -
probably the latter, given the slirp logs
…On Sun, Oct 27, 2019, 15:21 Bernhard Froehler ***@***.***> wrote:
While podman hangs, a parallel podman ps also hangs. So this basically
seems to completely freeze any podman interactions.
Anyone have an idea?
In the meantime I tried running the container without volume mapping an
restart always, and then the container seems to start, but it dies
immediately (for unknown reason, journalctl says container died. So maybe
there's something wrong with the image?
When aborting the start (Ctrl+C) and then removing the container (via podman
container rm mariadb-10.4), the output is:
Error: error removing container 6b00... root filesystem: remove /home/codeling/.local/share/containers/storage/vfs-containers/6b000.../userdata/shm: device or resource busy
(name abbreviated for better readability).
Yet the container gets removed all the same (at least podman ps -a
doesn't show it anymore, and a container of the same name can be
re-created).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4344>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCH6KA6SVRG2M2YW7I3QQXLYZANCNFSM4JFHV5GA>
.
|
can you show what processes are running? The |
Hello, I can confirm same problem here, which seems related to this: #2942 Without port redirection, container starts just fine. ps aux result while hanging: user 2642 0.0 0.8 932616 35424 pts/1 Sl+ 15:48 0:00 | \_ podman run -p 9000:9000 --log-level=debug --rm -it --entrypoint /bin/bash 3a359a493bcc user 2653 0.7 1.0 1094104 41232 pts/1 Sl+ 15:48 0:06 | \_ podman run -p 9000:9000 --log-level=debug --rm -it --entrypoint /bin/bash 3a359a493bcc user 2656 0.0 0.0 0 0 ? Zs 15:48 0:00 | \_ [podman] <defunct> user 2678 0.0 0.0 2468 1520 pts/1 S 15:48 0:00 | \_ slirp4netns --api-socket /home/user/run/libpod/432b[...]9a0dc.net --disable-host-loopback --mtu 65520 --enable-sandbox -c -e 3 -r 4 --netns-type=path /tmp/run-1000/netns/cni-8fcdd5e8-e2cf-efbb-7376-fb4c033ec44a tap0 While hanging, the file pointed out by --api-socket does not exist. Tried running https://github.com/rootless-containers/slirp4netns#usage adding --api-socket file, everything works fine manually. |
After investigation, problem is that the "sun_path" field of "struct sockaddr_un" is limited to 108 chars, so our api-socket path were truncated by str_dup() and provided as-is to bind(). I think libpod could check the path length and print a warning (not an error) but of course slirp4netns should too. Apparently some systems are limited to 92 chars. The OP's problem don't seem to be related to path length but the error could be that the api-socket file can't be created for another reason. |
Ahhh. We have handling for that on other sockets (attach socket), but evidently not the slirp socket. @giuseppe PTAL |
@AkihiroSuda FYI |
the pidWaitTimeout is already a Duration so do not multiply it again by time.Millisecond. Closes: containers#4344 Signed-off-by: Giuseppe Scrivano <[email protected]>
opened two PRs: |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman isn't starting my mariadb 10.4 container anymore since yesterday (running podman 1.6.2 on Ubuntu 18.04.3); podman just hangs on either simply starting the container, as well as on removing it and running it again. I suspect this is because podman was updated recently (from 1.6.1 to 1.6.2 on 2019-10-21; this happens now after the first server restart since then).
Steps to reproduce the issue:
podman --log-level=debug run -d --name mariadb-10.4 -p 3306:3306 -v mariadbdata:/var/lib/mysql --restart=always mariadb:10.4
(as non-root)Describe the results you received:
podman hangs.
Describe the results you expected:
podman continues and starts up the container.
Additional information you deem important (e.g. issue happens only occasionally):
The container ran just fine before (probably this started with an upgrade to 1.6.2, or maybe earlier with 1.6.1 already). Another rootless port-exposed container (redis) still runs just fine.
Output of
podman version
:Output of
podman info --debug
:(conmon updated to version 2.0.2 manually, as it was suggested that this might fix the issue on the #crio channel on kubernetes slack).
Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Ubuntu 18.04.3 LTS on a Gigabyte Brix GB-BACE 3150, 8GB RAM
The text was updated successfully, but these errors were encountered: