Some more exploration...
On 7/7/2022 6:13 AM, Brent Baude wrote:
Does the journal show anything?
Here's a pair of today's tests of busybox:
---
8 14:59:48 raspberrypi systemd[1769]: Started podman-3127.scope.
Jul 8 14:59:49 raspberrypi systemd[1769]: podman-3127.scope: Succeeded.
Jul 8 15:00:52 raspberrypi systemd[1769]: Started podman-3143.scope.
Jul 8 15:00:53 raspberrypi podman[3143]: 2022-07-08 15:00:53.486842312 -0700 PDT
m=+1.280987120 container create
06268f3312b11ffb1a7fa6b8ebd411032aa3ed1edc967acf4287a7b82ff46dc9
(image=docker.io/library/busybox, name=stupefied_napier)
Jul 8 15:00:55 raspberrypi systemd[1769]: Started
libpod-conmon-06268f3312b11ffb1a7fa6b8ebd411032aa3ed1edc967acf4287a7b82ff46dc9.scope.
Jul 8 15:00:55 raspberrypi systemd[1769]: Started libcrun container.
Jul 8 15:00:55 raspberrypi podman[3143]: 2022-07-08 15:00:55.388172193 -0700 PDT
m=+3.182316001 container init
06268f3312b11ffb1a7fa6b8ebd411032aa3ed1edc967acf4287a7b82ff46dc9
(image=docker.io/library/busybox, name=stupefied_napier)
Jul 8 15:00:55 raspberrypi podman[3143]: 2022-07-08 15:00:55.488570343 -0700 PDT
m=+3.282714151 container start
06268f3312b11ffb1a7fa6b8ebd411032aa3ed1edc967acf4287a7b82ff46dc9
(image=docker.io/library/busybox, name=stupefied_napier)
Jul 8 15:00:55 raspberrypi systemd[1769]:
libpod-06268f3312b11ffb1a7fa6b8ebd411032aa3ed1edc967acf4287a7b82ff46dc9.scope: Succeeded.
Jul 8 15:00:56 raspberrypi podman[3179]: 2022-07-08 15:00:56.276711672 -0700 PDT
m=+0.687357184 container died
06268f3312b11ffb1a7fa6b8ebd411032aa3ed1edc967acf4287a7b82ff46dc9
(image=docker.io/library/busybox, name=stupefied_napier)
Jul 8 15:00:56 raspberrypi podman[3179]: 2022-07-08 15:00:56.494778828 -0700 PDT
m=+0.905422340 container cleanup
06268f3312b11ffb1a7fa6b8ebd411032aa3ed1edc967acf4287a7b82ff46dc9
(image=docker.io/library/busybox, name=stupefied_napier)
Jul 8 15:00:56 raspberrypi systemd[1769]:
libpod-conmon-06268f3312b11ffb1a7fa6b8ebd411032aa3ed1edc967acf4287a7b82ff46dc9.scope:
Succeeded.
Jul 8 15:00:56 raspberrypi systemd[1769]: podman-3143.scope: Succeeded.
Jul 8 15:00:56 raspberrypi systemd[1769]: podman-3143.scope: Consumed 2.254s CPU time.
Jul 8 15:01:10 raspberrypi systemd[1769]: Started podman-3197.scope.
Jul 8 15:01:11 raspberrypi podman[3197]: 2022-07-08 15:01:11.396364918 -0700 PDT
m=+1.308845119 container create
aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea
(image=docker.io/library/busybox, name=romantic_bohr)
Jul 8 15:01:12 raspberrypi systemd[1769]: Started
libpod-conmon-aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea.scope.
Jul 8 15:01:13 raspberrypi systemd[1769]: Started libcrun container.
Jul 8 15:01:13 raspberrypi podman[3197]: 2022-07-08 15:01:13.278807296 -0700 PDT
m=+3.191287497 container init
aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea
(image=docker.io/library/busybox, name=romantic_bohr)
Jul 8 15:01:13 raspberrypi systemd[1769]:
libpod-aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea.scope: Succeeded.
Jul 8 15:01:13 raspberrypi podman[3197]: 2022-07-08 15:01:13.385817409 -0700 PDT
m=+3.298297610 container start
aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea
(image=docker.io/library/busybox, name=romantic_bohr)
Jul 8 15:01:13 raspberrypi podman[3197]: 2022-07-08 15:01:13.402239273 -0700 PDT
m=+3.314719474 container attach
aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea
(image=docker.io/library/busybox, name=romantic_bohr)
Jul 8 15:01:13 raspberrypi podman[3197]: 2022-07-08 15:01:13.467163735 -0700 PDT
m=+3.379643936 container died
aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea
(image=docker.io/library/busybox, name=romantic_bohr)
Jul 8 15:01:14 raspberrypi podman[3234]: 2022-07-08 15:01:14.457229534 -0700 PDT
m=+1.003770687 container cleanup
aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea
(image=docker.io/library/busybox, name=romantic_bohr)
Jul 8 15:01:14 raspberrypi systemd[1769]:
libpod-conmon-aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea.scope:
Succeeded.
Jul 8 15:01:14 raspberrypi systemd[1769]:
libpod-conmon-aaa56d68a58058bb94977be12d3d2e6961c6de4877ec6442d9e52b0b5244d6ea.scope:
Consumed 1.014s CPU time.
Jul 8 15:01:14 raspberrypi systemd[1769]: podman-3197.scope: Succeeded.
Jul 8 15:01:14 raspberrypi systemd[1769]: podman-3197.scope: Consumed 2.304s CPU time.
Jul 8 15:01:25 raspberrypi systemd[1769]: Started podman-3252.scope.
Jul 8 15:01:26 raspberrypi systemd[1769]: podman-3252.scope: Succeeded.
---
First run, and all July 4 runs with "podman run -dt", show "init, start,
died, cleanup".
Second runs today, with "podman run -it", show "init, start, attach, died,
cleanup".
What about if you run the container with -it instead of dt?
pi@raspberrypi:~/tripod $ podman run -dt -p 8088:80/tcp docker.io/library/busybox
06268f3312b11ffb1a7fa6b8ebd411032aa3ed1edc967acf4287a7b82ff46dc9
pi@raspberrypi:~/tripod $ podman run -it -p 8088:80/tcp docker.io/library/busybox
pi@raspberrypi:~/tripod $
The -it runs don't print the long number, they just end with a new terminal prompt.
pi@raspberrypi:~/tripod $ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
54a005199e38 docker.io/library/httpd httpd-foreground 11 days ago
Exited (139) 11 days ago 0.0.0.0:8088->80/tcp hopeful_buck
787779b20e96 docker.io/library/httpd httpd-foreground 11 days ago
Exited (139) 11 days ago 0.0.0.0:8088->80/tcp pedantic_yonath
f35572766e57 docker.io/library/busybox:latest httpd -f -h /etc/... 3 days ago
Exited (139) 3 days ago 0.0.0.0:8088->8088/tcp optimistic_archimedes
5a851789c05d docker.io/library/busybox httpd -f -h /etc/... 3 days ago
Exited (139) 3 days ago 0.0.0.0:8088->8088/tcp trusting_dirac
03c8f8d17e9f docker.io/library/httpd httpd-foreground 2 minutes ago
Exited (139) 2 minutes ago 0.0.0.0:8088->80/tcp lucid_dirac
cd3fd49d952b docker.io/library/httpd httpd-foreground 2 minutes ago
Exited (139) 2 minutes ago 0.0.0.0:8088->80/tcp practical_mclean
06268f3312b1 docker.io/library/busybox sh 32 seconds ago
Exited (139) 31 seconds ago 0.0.0.0:8088->80/tcp stupefied_napier
aaa56d68a580 docker.io/library/busybox sh 14 seconds ago
Exited (139) 13 seconds ago 0.0.0.0:8088->80/tcp romantic_bohr
pi@raspberrypi:~/tripod $
I peeked at the files mentioned in 'podman info --debug':
pi@raspberrypi:~/tripod $ ls -al /usr/bin/conmon
-rwxr-xr-x 1 root root 125760 Jul 14 2021 /usr/bin/conmon
pi@raspberrypi:~ $ cat /usr/bin/conmon
--> A lot of that was binary, but in the middle were lots of readable errors. attached
to this message as a file. (Does that work?)
pi@raspberrypi:~/tripod $ cat /home/pi/.config/containers/storage.conf
cat: /home/pi/.config/containers/storage.conf: No such file or directory
pi@raspberrypi:~/tripod $ ls -alRu /home/pi/.config
/home/pi/.config:
total 12
drwx------ 3 pi pi 4096 Jan 25 14:51 .
drwxr-xr-x 13 pi pi 4096 Oct 30 2021 ..
drwx------ 2 pi pi 4096 Jan 25 14:51 configstore
/home/pi/.config/configstore:
total 12
drwx------ 2 pi pi 4096 Jan 25 14:51 .
drwx------ 3 pi pi 4096 Jan 25 14:51 ..
-rw------- 1 pi pi 55 Jan 25 16:00 update-notifier-npm.json
pi@raspberrypi:~/tripod $
pi@raspberrypi:~/tripod $ ls -al /home/pi/.local/share/containers/storage
total 44
drwx------ 10 pi pi 4096 Jun 6 13:46 .
drwx------ 3 pi pi 4096 Jun 6 13:38 ..
drwx------ 2 pi pi 4096 Jun 27 13:08 cache
drwx------ 2 pi pi 4096 Jun 6 13:38 libpod
drwx------ 2 pi pi 4096 Jun 6 13:38 mounts
drwx------ 25 pi pi 4096 Jul 8 15:01 overlay
drwx------ 10 pi pi 4096 Jul 8 15:01 overlay-containers
drwx------ 5 pi pi 4096 Jul 4 18:54 overlay-images
drwx------ 2 pi pi 4096 Jul 8 15:01 overlay-layers
-rw-r--r-- 1 pi pi 64 Jul 8 15:34 storage.lock
drwx------ 2 pi pi 4096 Jun 6 13:38 tmp
-rw-r--r-- 1 pi pi 0 Jun 6 13:38 userns.lock
pi@raspberrypi:~/tripod $
The "overlay-..." folders have lots of subfolders with hundreds of files in
them.
pi@raspberrypi:~ $ cat
/home/pi/.local/share/containers/storage/overlay-layers/layers.json
--> lots of data, including:
{"id":"f7251d37a987c816499833029eae4f371a1f292da0f773b797d8f47c7abac051","names":["stupefied_napier-layer"],"parent":"80049bd614bc195dcb3e2cf825263a084c09413bd1c5280813cc3e2ade451d27","created":"2022-07-08T22:00:53.291081974Z"},{"id":"20780baabf7285b33e1c310ade29f000de4bec64aa5f9798f6a7475bc4ef28ec","names":["romantic_bohr-layer"],"parent":"80049bd614bc195dcb3e2cf825263a084c09413bd1c5280813cc3e2ade451d27","created":"2022-07-08T22:01:11.207197489Z"}]
Obviously a lot of podman is alive and running, but when I try an actual app like busybox,
it dies in two seconds.
Where to look next?
Loren
On Fri, Jul 1, 2022 at 7:08 PM Loren Amelang <loren(a)psychoros.com
<mailto:loren@psychoros.com>> wrote:
I've installed Podman on a Raspberry Pi Zero W, and want to test the
network connection. I found this:
pi@raspberrypi:~/tripod $ podman pull docker.io/library/httpd
<
http://docker.io/library/httpd>
pi@raspberrypi:~/tripod $ podman run -dt -p 8088:80/tcp
docker.io/library/httpd <
http://docker.io/library/httpd>
54a005199e38260bae58a6a5437dd0fbde62f2f596b25d928fb346328cfc9e73
pi@raspberrypi:~/tripod $
I chose "8088:80" because incoming port 8080 is already in use and
working on that Pi. Seems that is valid?
It seems to run, but closes itself in under a minute:
pi@raspberrypi:~/tripod $ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
54a005199e38 docker.io/library/httpd <
http://docker.io/library/httpd>
httpd-foreground 26 minutes ago
Exited (139) 26 minutes ago 0.0.0.0:8088->80/tcp hopeful_buck
787779b20e96 docker.io/library/httpd <
http://docker.io/library/httpd>
httpd-foreground 18 seconds ago
Exited (139) 16 seconds ago 0.0.0.0:8088->80/tcp pedantic_yonath
pi@raspberrypi:~/tripod $
pi@raspberrypi:~/tripod $ podman logs -l
pi@raspberrypi:~/tripod $
pi@raspberrypi:~/tripod $ podman top -l
Error: top can only be used on running containers
pi@raspberrypi:~/tripod $
slirp4netns is already the newest version (1.0.1-2).
Could someone please suggest what to check next?
Loren
_______________________________________________
Podman mailing list -- podman(a)lists.podman.io <mailto:podman@lists.podman.io>
To unsubscribe send an email to podman-leave(a)lists.podman.io
<mailto:podman-leave@lists.podman.io>