https://linen.dev logo
Error when running w Podman
# help
b
'failed to start none running container: DockerResponseServerError { status_code: 500, message: "runc: runc create failed: unable to start container process: can't get final child's PID from pipe: EOF: OCI runtime error" }'
@stale-kilobyte-24744 / @stocky-kangaroo-53672 moving the convo here šŸ™‚
chesedo — Yesterday at 17:34 Are you getting this error on cargo shuttle run? Also, what is your podman version?
s
Copy code
bash
; podman -v    
podman version 4.2.1
; podman system service --time=0 unix:///tmp/podman.sock &>/dev/null &
; export DOCKER_HOST=unix:///tmp/podman.sock
; cargo shuttle run                                                  
    Building /home/czar/work/rust/rorschach
    Finished dev [unoptimized + debuginfo] target(s) in 0.34s
thread 'main' panicked at 'failed to start none running container: DockerResponseServerError { status_code: 500, message: "runc: runc create failed: unable to start container process: can't get final child's PID from pipe: EOF: OCI runtime error" }', /home/czar/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-shuttle-0.5.2/src/factory.rs:138:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I immediately tried to run some other container to make sure that podman is okay, and it worked:
Copy code
bash
; podman run -it --rm -p5432:5432 -e POSTGRES_PASSWORD=password postgres:alpine
# snip #
2022-10-12 13:25:41.805 UTC [1] LOG:  database system is ready to accept connections
s
Interesting, it seems we can create the container but not start it šŸ¤” What is the output of?
Copy code
podman ps -a
There should be a
shuttle_
something container. Can you start it manually with
podman start [container_name|id]
?
s
Here:
Copy code
; podman ps -a                                                        
CONTAINER ID  IMAGE                                 COMMAND     CREATED       STATUS                   PORTS                    NAMES
3a606c0389c5  docker.io/library/postgres:alpine     postgres    8 months ago  Exited (0) 8 months ago  0.0.0.0:5432->5432/tcp   exciting_pascal
751ba975dded  docker.io/library/postgres:11         postgres    45 hours ago  Created                  0.0.0.0:17855->5432/tcp  shuttle_rorschach_shared_postgres
201e11677bce  docker.io/synesthesiam/mozillatts:en              22 hours ago  Exited (0) 22 hours ago  0.0.0.0:5002->5002/tcp   priceless_aryabhata
350062cb1b5c  docker.io/synesthesiam/mozillatts:en              22 hours ago  Exited (0) 22 hours ago  0.0.0.0:5002->5002/tcp   brave_keller
13cf3d2137eb  docker.io/library/postgres:alpine     postgres    22 hours ago  Exited (1) 22 hours ago  0.0.0.0:5432->5432/tcp   kind_dirac
s
Can you do a
podman start shuttle_rorschach_shared_postgres
?
s
it throws the same error:
Copy code
bash
; podman start shuttle_rorschach_shared_postgres                      
Error: OCI runtime error: unable to start container "751ba975dded071472c3688a98b90002dad8a4a70665c01b66dfd6052871462a": runc: runc create failed: unable to start container process: can't get final child's PID from pipe: EOF
s
Oh, interesting Podman is failing to stat up the container šŸ¤” ... let me check something quick
What does the following give:
Copy code
bash
podman create --name create_test --publish 17856:5432 --env POSTGRES_PASSWORD=postgres postgres:11
podman start create_test
s
It works
Copy code
bash
; podman system service --time=0 unix:///tmp/podman.sock &>/dev/null &
[1] 12101
✦ ; podman create --name create_test --publish 17856:5432 --env POSTGRES_PASSWORD=postgres postgres:11
24c3d2666225a438c2b0a1bf58e795786d203190f59205d716a416507db9b6d2
✦ ; podman start create_test
create_test
✦ ; podman ps -a | rg test  
24c3d2666225  docker.io/library/postgres:11         postgres    40 seconds ago  Up 33 seconds ago        0.0.0.0:17856->5432/tcp  create_test
s
Wow, that's suppose to be the same commands we use to create the postgres container. Maybe something when wrong with the original one. Does things work after removing it:
Copy code
bash
podman rm shuttle_rorschach_shared_postgres
cargo shuttle run
s
Forgot to update, it works after I deleted the initially created container. This thread can be closed
3 Views