Closed cbz closed 4 years ago
Please run podman system renumber
and try removing the containers via Podman (not podman-compose) again.
Just tried that:
dolphin unifi ✗ podman system renumber
dolphin unifi √ podman container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dolphin unifi √ podman container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
47e2e9c93823 k8s.gcr.io/pause:3.2 2 days ago Created 0.0.0.0:3478->3478/udp, 0.0.0.0:8080->8080/tcp d6189b59e8ca-infra
dolphin unifi √ podman rm -f 47e
Error: container 47e2e9c93823faa2765ada0d19e525c0bfc591672b2d4dd0868ac610fa066fe5 is the infra container of pod d6189b59e8cae5ba449a9631534b949835a0c0b926cb095937a15f83cd3672bf and cannot be removed without removing the pod
dolphin unifi ✗ podman container rm -f 47e
Error: container 47e2e9c93823faa2765ada0d19e525c0bfc591672b2d4dd0868ac610fa066fe5 is the infra container of pod d6189b59e8cae5ba449a9631534b949835a0c0b926cb095937a15f83cd3672bf and cannot be removed without removing the pod
You'll need to remove the pods in that case - being unable to remove an infra container is expected.
Removing the pods fixed the issue, I'll close it.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Upgraded from podman v1 to podman v2 on Ubuntu 18.04.5 LTS. In doing this it appears crun was installed - simply running a single container with either crun or runc works.
After upgrade, the first execution of podman results in a list of locking errors being printed of the form:
ERRO[0000] Error refreshing pod d6189b59e8cae5ba449a9631534b949835a0c0b926cb095937a15f83cd3672bf: error retrieving lock 0 for pod d6189b59e8cae5ba449a9631534b949835a0c0b926cb095937a15f83cd3672bf: file exists
Initially there were a lot more relating to local volumes, but after a 'podman volume prune' there is a single line printed as above.
If I run podman-compose down, it appears to freeze at the point it tries to remove the container:
podman stop -t=1 unifi_unifi_1 Error: no container with name or ID unifi_unifi_1 found: no such container 125 podman rm unifi_unifi_1 Error: no container with name or ID unifi_unifi_1 found: no such container 1 podman pod rm unifi
If I run the container via podman compose it errors with the following: 'podman pod create --name=unifi --share net -p 3478:3478/udp -p 8443:8443 -p 8080:8080 -p 10001:10001/udp Error: error adding pod to state: name "unifi" is in use: pod already exists 125 podman create --name=unifi_unifi_1 --pod=unifi -l io.podman.compose.config-hash=123 -l io.podman.compose.project=unifi -l io.podman.compose.version=0.0.1 -l com.docker.compose.container-number=1 -l com.docker.compose.service=unifi -e RUNAS_UID0=false -e UNIFI_UID=996 -e UNIFI_GID=996 --mount type=bind,source=/var/lib/unifi,destination=/unifi/data --mount type=bind,source=/var/log/unifi,destination=/unifi/log --add-host unifi:127.0.0.1 --add-host unifi_unifi_1:127.0.0.1 jacobalberty/unifi Error: pod d6189b59e8cae5ba449a9631534b949835a0c0b926cb095937a15f83cd3672bf cgroup is not set: internal libpod error 125 podman start -a unifi_unifi_1 Error: no container with name or ID unifi_unifi_1 found: no such container 125'
podman ps -a shows the following containers:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 47e2e9c93823 k8s.gcr.io/pause:3.2 2 days ago Created 0.0.0.0:3478->3478/udp, 0.0.0.0:8080->8080/tcp d6189b59e8ca-infra
Trying to remove the container results in:
Error: container 47e2e9c93823faa2765ada0d19e525c0bfc591672b2d4dd0868ac610fa066fe5 and pod d6189b59e8cae5ba449a9631534b949835a0c0b926cb095937a15f83cd3672bf share lock ID 0: deadlock due to lock mismatch
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.): Kernel version 4.15.0-1077-kvm #79-Ubuntu SMP Wed Sep 30 14:25:17 UTC 2020