Podman doesn't work on 22.10 (worked on 22.04 LTS)

Bug #1995094 reported by Peter
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
libpod (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Podman 3.4.4, which is the version available both in 22.10 and 22.04, no longer works after upgrading to 22.10:

```
$ podman run -it --rm docker.io/bash # Or any other image..
Error: OCI runtime error: runc create failed: unable to start container process: can't get final child's PID from pipe: EOF
```

On the same machine, Docker works.

## WORKAROUNDS:

- As noted below by @blk-u, run podman as root
- Alternatively, as noted by @enokijn, install crun

Peter (vp2177)
information type: Public → Public Security
information type: Public Security → Public
Changed in podman (Ubuntu):
assignee: nobody → Peter (vp2177)
assignee: Peter (vp2177) → nobody
tags: added: regression-release
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in podman (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter (vp2177) wrote :

It looks like Debian testing (and unstable) have Podman 3.4.7, which is newer. Perhaps syncing the Ubuntu package would resolve the issue?

description: updated
description: updated
description: updated
description: updated
Peter (vp2177)
description: updated
affects: podman (Ubuntu) → libpod (Ubuntu)
tags: added: kinetic
Revision history for this message
Brant Knudson (blk-u) wrote (last edit ):

I also hit this after upgrading to 22.10.
Not noted in the bug description is that podman works as root but not as a user.

Some discussion here https://groups.google.com/g/linux.debian.bugs.dist/c/pnQcz8V6dQ8 says it's fixed with podman 4.1.

Revision history for this message
Erik van Konijnenburg (ekonijn) wrote :

The previous comment refers to https://groups.google.com/g/linux.debian.bugs.dist/c/pnQcz8V6dQ8

which notes upstream issue https://github.com/containers/podman/issues/13731

which notes cause is systemd v250,
https://github.com/systemd/systemd/issues/22437

one upstream comment explains why the change in systemd was made:
https://github.com/containers/podman/issues/13731#issuecomment-1094253537

"The change in systemd was introduced so that user services would be
more likely to be killed by the OOM killer than system services or the
managers themselves. It did cause at least one other issue in dbus-daemon
but the argument was that processes without privileges shouldn't attempt
to lower their score."

The fix is here, part of podman 4.1
https://github.com/containers/podman/pull/13765/commits/164b64ea3baa8502a23fc0c7674f4a7e60507aa0

this is a small commit, but it does not apply cleanly to 3.4.4, and
anyway I'm not familiar enough with golang to attempt building the package
from source.

A workaround is to install crun(1) in addition to runc(1).

Podman will then use crun(1) in preference to runc(1), and will be able
to start images.

You could automate that by replacing the "crun | runc" dependency of
podman by a simple "crun". The downside of that approach is that this
leaves you with a crun(1) that would be redundant once ubuntu upgrades
to podman 4.X, but at least you have a podman that runs out of the box.

Peter (vp2177)
description: updated
Revision history for this message
Peter (vp2177) wrote :

Podman works again in Ubuntu 23.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.