podman: kill cpcontainer: could not be stopped... sending SIGKILL... container state improper

[+0401s] not ok 127 podman cp file from host to container
....
# podman cp /tmp/podman_bats.rNSXlF/cp-test-file-host-to-ctr/hostfile0 cpcontainer:/IdoNotExist/
Error: "/IdoNotExist/" could not be found on container cpcontainer: no such file or directory
[ rc=125 (expected) ]
# podman kill cpcontainer
cpcontainer
# podman rm -t 0 -f cpcontainer
open pidfd: No such process
Error: cannot remove container <ID> as it could not be stopped: sending SIGKILL to container <ID>: container state improper
[ rc=2 (** EXPECTED 0 **) ]

[sys] 127 podman cp file from host to container

  • fedora-36-aarch64 : sys podman fedora-36-aarch64 root host
  • fedora-36-aarch64 : sys remote fedora-36-aarch64 root host [remote]
Only two instances so far, both on f36 aarch64 root.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

https://github.com/containers/podman/pull/16320 should fix the issue. It’s slightly different but effectively a similar scenario as before. When sending signals to the container, Podman releases the lock to prevent podman stop from blocking any other command trying to do something with the container. In the last failure above, the container exited so the container wasn’t running anymore.