-
Notifications
You must be signed in to change notification settings - Fork 128
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
conmon 246577c0968ed68228b4 <nwarn>: stdio_input read failed Input/output error #440
Comments
does the error happen only with that specific image or can you reproduce with other images too? |
I am very new to podman so this is the only image I've tried to make. It has not been a good experience. Setting the unbound conf file to listen on 5353, see? No errors. And yet no container! $ podman run --name unbound -it --log-level debug --rm -v /home/bill/unbound:/etc/unbound:ro,Z --cap-add CAP_NET_ADMIN --tls-verify=false 127.0.0.1:5000/unbound $ podman ps |
if you want to listen on the host port you need to run as root (not rootless) and use |
I don't see how connecting the host's whole network to the container makes any difference here, particularly from a security standpoint. Do you come from the docker world? |
when the terminal is closed, we get EIO. Let's treat it as a EOF. Closes: containers#440 Signed-off-by: Giuseppe Scrivano <[email protected]>
PR here: #441 |
when the terminal is closed, we get EIO. Let's treat it as a EOF. Closes: containers#440 Signed-off-by: Giuseppe Scrivano <[email protected]>
when the terminal is closed, we get EIO. Let's treat it as a EOF. Closes: #440 Signed-off-by: Giuseppe Scrivano <[email protected]>
Issue Description
$ podman run --name unbound -i -t --rm -v /home/bill/unbound:/etc/unbound:ro,Z --cap-add CAP_NET_ADMIN --tls-verify=false 127.0.0.1:5000/unbound
$ journalctl -xe
...
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished successfully.
░░
░░ The job identifier is 292.
Aug 08 08:01:20 zeta.darkmatter.org podman[19336]: 2023-08-08 08:01:20.837936855 -0700 PDT m=+0.238603677 container init 246577c0968ed68228b4c924b6b3284a6cc49db3238399e35bfb45a3809d2d69 (image=127.0.0.1:5000/unbound:latest, name=unbound>
Aug 08 08:01:20 zeta.darkmatter.org podman[19336]: 2023-08-08 08:01:20.862352982 -0700 PDT m=+0.263019784 container start 246577c0968ed68228b4c924b6b3284a6cc49db3238399e35bfb45a3809d2d69 (image=127.0.0.1:5000/unbound:latest, name=unboun>
Aug 08 08:01:20 zeta.darkmatter.org podman[19336]: 2023-08-08 08:01:20.862731317 -0700 PDT m=+0.263398118 container attach 246577c0968ed68228b4c924b6b3284a6cc49db3238399e35bfb45a3809d2d69 (image=127.0.0.1:5000/unbound:latest, name=unbou>
Aug 08 08:01:20 zeta.darkmatter.org conmon[19358]: conmon 246577c0968ed68228b4 : stdio_input read failed Input/output error
Aug 08 08:01:20 zeta.darkmatter.org podman[19336]: 2023-08-08 08:01:20.918119906 -0700 PDT m=+0.318786709 container died 246577c0968ed68228b4c924b6b3284a6cc49db3238399e35bfb45a3809d2d69 (image=127.0.0.1:5000/unbound:latest, name=unbound>
Aug 08 08:01:21 zeta.darkmatter.org systemd[1095]: Started podman-19389.scope.
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished successfully.
░░
░░ The job identifier is 296.
Aug 08 08:01:21 zeta.darkmatter.org podman[19389]: 2023-08-08 08:01:21.068137548 -0700 PDT m=+0.142682685 container remove 246577c0968ed68228b4c924b6b3284a6cc49db3238399e35bfb45a3809d2d69 (image=127.0.0.1:5000/unbound:latest, name=unbou>
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
$ podman run --name unbound --log-level debug -it --rm -v /home/bill/unbound:/etc/unbound:ro,Z --cap-add CAP_NET_ADMIN --tls-verify=false 127.0.0.1:5000/unbound
INFO[0000] podman filtering at log level debug
DEBU[0000] Called run.PersistentPreRunE(podman run --name unbound --log-level debug -it --rm -v /home/bill/unbound:/etc/unbound:ro,Z --cap-add CAP_NET_ADMIN --tls-verify=false 127.0.0.1:5000/unbound)
DEBU[0000] Using conmon: "/usr/bin/conmon"
DEBU[0000] Initializing boltdb state at /home/bill/.local/share/containers/storage/libpod/bolt_state.db
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /home/bill/.local/share/containers/storage
DEBU[0000] Using run root /run/user/1000/containers
DEBU[0000] Using static dir /home/bill/.local/share/containers/storage/libpod
DEBU[0000] Using tmp dir /run/user/1000/libpod/tmp
DEBU[0000] Using volume path /home/bill/.local/share/containers/storage/volumes
DEBU[0000] Using transient store: false
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that metacopy is not being used
DEBU[0000] Cached value indicated that native-diff is usable
DEBU[0000] backingFs=btrfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false
DEBU[0000] Initializing event backend journald
DEBU[0000] Configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument
DEBU[0000] Configured OCI runtime ocijail initialization failed: no valid executable found for OCI runtime ocijail: invalid argument
DEBU[0000] Configured OCI runtime crun initialization failed: no valid executable found for OCI runtime crun: invalid argument
DEBU[0000] Configured OCI runtime runj initialization failed: no valid executable found for OCI runtime runj: invalid argument
DEBU[0000] Configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument
DEBU[0000] Configured OCI runtime youki initialization failed: no valid executable found for OCI runtime youki: invalid argument
DEBU[0000] Configured OCI runtime krun initialization failed: no valid executable found for OCI runtime krun: invalid argument
DEBU[0000] Configured OCI runtime crun-wasm initialization failed: no valid executable found for OCI runtime crun-wasm: invalid argument
DEBU[0000] Using OCI runtime "/usr/bin/runc"
INFO[0000] Setting parallel job count to 7
DEBU[0000] Failed to add podman to systemd sandbox cgroup: Process org.freedesktop.systemd1 exited with status 1
DEBU[0000] Successfully loaded 1 networks
DEBU[0000] Pulling image 127.0.0.1:5000/unbound (policy: missing)
DEBU[0000] Looking up image "127.0.0.1:5000/unbound" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] Trying "127.0.0.1:5000/unbound:latest" ...
DEBU[0000] parsed reference into "[overlay@/home/bill/.local/share/containers/storage+/run/user/1000/containers]@361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9"
DEBU[0000] Found image "127.0.0.1:5000/unbound" as "127.0.0.1:5000/unbound:latest" in local containers storage
DEBU[0000] Found image "127.0.0.1:5000/unbound" as "127.0.0.1:5000/unbound:latest" in local containers storage ([overlay@/home/bill/.local/share/containers/storage+/run/user/1000/containers]@361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9)
DEBU[0000] exporting opaque data as blob "sha256:361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9"
DEBU[0000] Looking up image "127.0.0.1:5000/unbound:latest" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] Trying "127.0.0.1:5000/unbound:latest" ...
DEBU[0000] parsed reference into "[overlay@/home/bill/.local/share/containers/storage+/run/user/1000/containers]@361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9"
DEBU[0000] Found image "127.0.0.1:5000/unbound:latest" as "127.0.0.1:5000/unbound:latest" in local containers storage
DEBU[0000] Found image "127.0.0.1:5000/unbound:latest" as "127.0.0.1:5000/unbound:latest" in local containers storage ([overlay@/home/bill/.local/share/containers/storage+/run/user/1000/containers]@361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9)
DEBU[0000] exporting opaque data as blob "sha256:361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9"
DEBU[0000] User mount /home/bill/unbound:/etc/unbound options [ro Z]
DEBU[0000] Looking up image "127.0.0.1:5000/unbound" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] Trying "127.0.0.1:5000/unbound:latest" ...
DEBU[0000] parsed reference into "[overlay@/home/bill/.local/share/containers/storage+/run/user/1000/containers]@361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9"
DEBU[0000] Found image "127.0.0.1:5000/unbound" as "127.0.0.1:5000/unbound:latest" in local containers storage
DEBU[0000] Found image "127.0.0.1:5000/unbound" as "127.0.0.1:5000/unbound:latest" in local containers storage ([overlay@/home/bill/.local/share/containers/storage+/run/user/1000/containers]@361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9)
DEBU[0000] exporting opaque data as blob "sha256:361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9"
DEBU[0000] Inspecting image 361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9
DEBU[0000] exporting opaque data as blob "sha256:361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9"
DEBU[0000] Inspecting image 361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9
DEBU[0000] Inspecting image 361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9
DEBU[0000] Inspecting image 361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9
DEBU[0000] Inspecting image 361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9
DEBU[0000] using systemd mode: false
DEBU[0000] setting container name unbound
DEBU[0000] No hostname set; container's hostname will default to runtime default
DEBU[0000] Loading seccomp profile from "/etc/containers/seccomp.json"
DEBU[0000] Adding mount /proc
DEBU[0000] Adding mount /dev
DEBU[0000] Adding mount /dev/pts
DEBU[0000] Adding mount /dev/mqueue
DEBU[0000] Adding mount /sys
DEBU[0000] Adding mount /sys/fs/cgroup
DEBU[0000] Allocated lock 0 for container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb
DEBU[0000] parsed reference into "[overlay@/home/bill/.local/share/containers/storage+/run/user/1000/containers]@361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9"
DEBU[0000] exporting opaque data as blob "sha256:361b11ebccb68868a8c55e79618a5e1e6d90a8bc4b5d258b3550f23adf1150a9"
DEBU[0000] Cached value indicated that idmapped mounts for overlay are not supported
DEBU[0000] Check for idmapped mounts support
DEBU[0000] Created container "6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb"
DEBU[0000] Container "6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb" has work directory "/home/bill/.local/share/containers/storage/overlay-containers/6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb/userdata"
DEBU[0000] Container "6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb" has run directory "/run/user/1000/containers/overlay-containers/6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb/userdata"
DEBU[0000] Handling terminal attach
INFO[0000] Received shutdown.Stop(), terminating! PID=26437
DEBU[0000] Enabling signal proxying
DEBU[0000] Cached value indicated that volatile is being used
DEBU[0000] overlay: mount_data=lowerdir=/home/bill/.local/share/containers/storage/overlay/l/2XX5AB64YZR7QZYCFSGNYOBVKH:/home/bill/.local/share/containers/storage/overlay/l/QVEEJOOMBQJGKHGNOSYY5SC44N:/home/bill/.local/share/containers/storage/overlay/l/HZDQL7OETUCDFCUY24YMBTNNLS:/home/bill/.local/share/containers/storage/overlay/l/PVHP3AJROZ7KPC7SXPCQO3FUCY,upperdir=/home/bill/.local/share/containers/storage/overlay/50dae32df495809e4cfe38938b7613d372a4cbd553197d66cb187d0f8a57baed/diff,workdir=/home/bill/.local/share/containers/storage/overlay/50dae32df495809e4cfe38938b7613d372a4cbd553197d66cb187d0f8a57baed/work,,userxattr,volatile,context="system_u:object_r:container_file_t:s0:c23,c651"
DEBU[0000] Made network namespace at /run/user/1000/netns/netns-48c08a07-ab6f-edd8-fe9a-5249c27b1f42 for container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb
DEBU[0000] Mounted container "6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb" at "/home/bill/.local/share/containers/storage/overlay/50dae32df495809e4cfe38938b7613d372a4cbd553197d66cb187d0f8a57baed/merged"
DEBU[0000] Created root filesystem for container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb at /home/bill/.local/share/containers/storage/overlay/50dae32df495809e4cfe38938b7613d372a4cbd553197d66cb187d0f8a57baed/merged
DEBU[0000] slirp4netns command: /usr/bin/slirp4netns --disable-host-loopback --mtu=65520 --enable-sandbox --enable-seccomp --enable-ipv6 -c -r 3 -e 4 --netns-type=path /run/user/1000/netns/netns-48c08a07-ab6f-edd8-fe9a-5249c27b1f42 tap0
DEBU[0000] /etc/system-fips does not exist on host, not mounting FIPS mode subscription
DEBU[0000] Setting Cgroups for container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb to user.slice:libpod:6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb
DEBU[0000] reading hooks from /usr/share/containers/oci/hooks.d
DEBU[0000] Workdir "/etc/unbound" resolved to a volume or mount
DEBU[0000] Created OCI spec for container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb at /home/bill/.local/share/containers/storage/overlay-containers/6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb/userdata/config.json
DEBU[0000] /usr/bin/conmon messages will be logged to syslog
DEBU[0000] running conmon: /usr/bin/conmon args="[--api-version 1 -c 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb -u 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb -r /usr/bin/runc -b /home/bill/.local/share/containers/storage/overlay-containers/6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb/userdata -p /run/user/1000/containers/overlay-containers/6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb/userdata/pidfile -n unbound --exit-dir /run/user/1000/libpod/tmp/exits --full-attach -s -l journald --log-level debug --syslog -t --conmon-pidfile /run/user/1000/containers/overlay-containers/6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb/userdata/conmon.pid --exit-command /usr/bin/podman --exit-command-arg --root --exit-command-arg /home/bill/.local/share/containers/storage --exit-command-arg --runroot --exit-command-arg /run/user/1000/containers --exit-command-arg --log-level --exit-command-arg debug --exit-command-arg --cgroup-manager --exit-command-arg systemd --exit-command-arg --tmpdir --exit-command-arg /run/user/1000/libpod/tmp --exit-command-arg --network-config-dir --exit-command-arg --exit-command-arg --network-backend --exit-command-arg cni --exit-command-arg --volumepath --exit-command-arg /home/bill/.local/share/containers/storage/volumes --exit-command-arg --db-backend --exit-command-arg boltdb --exit-command-arg --transient-store=false --exit-command-arg --runtime --exit-command-arg runc --exit-command-arg --storage-driver --exit-command-arg overlay --exit-command-arg --events-backend --exit-command-arg journald --exit-command-arg --syslog --exit-command-arg container --exit-command-arg cleanup --exit-command-arg --rm --exit-command-arg 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb]"
INFO[0000] Running conmon under slice user.slice and unitName libpod-conmon-6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb.scope
INFO[0000] Failed to add conmon to systemd sandbox cgroup: Process org.freedesktop.systemd1 exited with status 1
DEBU[0000] Received: 26475
INFO[0000] Got Conmon PID as 26459
DEBU[0000] Created container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb in OCI runtime
DEBU[0000] Attaching to container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb
DEBU[0000] Received a resize event: {Width:237 Height:69}
DEBU[0000] Starting container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb with command [/usr/sbin/unbound -d]
DEBU[0000] Started container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb
DEBU[0000] Notify sent successfully
DEBU[0000] Checking if container 6b5838ecb3e8bc60cec5d75a6d5f411c3b2175689dda8773f3826f00accc16cb should restart
DEBU[0000] Called run.PersistentPostRunE(podman run --name unbound --log-level debug -it --rm -v /home/bill/unbound:/etc/unbound:ro,Z --cap-add CAP_NET_ADMIN --tls-verify=false 127.0.0.1:5000/unbound)
DEBU[0000] Shutting down engines
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that metacopy is not being used
DEBU[0000] backingFs=btrfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false
$
Describe the results you expected
For the container to run
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
MicroOS (Suse Tumbleweed) latest in KVM virtual machine
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: