podman: Trying to use --init fails with "container-init binary not found on the host: stat /usr/libexec/podman/catatonit: no such file or directory"

/kind bug

Description

Running the fedora:31 image with --init fails with:

Creating f31: Error: container-init binary not found on the host: stat /usr/libexec/podman/catatonit: no such file or directory

Steps to reproduce the issue:

  1. sudo podman run -ti --privileged --rm --init registry.fedoraproject.org/fedora:31

Describe the results you received:

Creating f31: Error: container-init binary not found on the host: stat /usr/libexec/podman/catatonit: no such file or directory

Describe the results you expected:

No errors

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

$ podman version
Version:            1.5.1
RemoteAPI Version:  1
Go Version:         go1.12.7
OS/Arch:            linux/amd64

Output of podman info --debug:

debug:
  compiler: gc
  git commit: ""
  go version: go1.12.7
  podman version: 1.5.1
host:
  BuildahVersion: 1.10.1
  Conmon:
    package: podman-1.5.1-3.fc30.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 2.0.0, commit: d728afa06cd2df86a27f32a4692c7099a56acc97-dirty'
  Distribution:
    distribution: fedora
    version: "30"
  MemFree: 322580480
  MemTotal: 12489740288
  OCIRuntime:
    package: runc-1.0.0-93.dev.gitb9b6cc6.fc30.x86_64
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc8+dev
      commit: e3b4c1108f7d1bf0d09ab612ea09927d9b59b4e3
      spec: 1.0.1-dev
  SwapFree: 19308523520
  SwapTotal: 19323154432
  arch: amd64
  cpus: 4
  eventlogger: journald
  hostname: lux
  kernel: 5.2.17-200.fc30.x86_64
  os: linux
  rootless: true
  uptime: 24h 21m 26.53s (Approximately 1.00 days)
registries:
  blocked: null
  insecure: null
  search:
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.access.redhat.com
  - registry.centos.org
store:
  ConfigFile: /var/home/jlebon/.config/containers/storage.conf
  ContainerStore:
    number: 0
  GraphDriverName: overlay
  GraphOptions:
  - overlay.mount_program=/usr/bin/fuse-overlayfs
  GraphRoot: /var/home/jlebon/.local/share/containers/storage
  GraphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  ImageStore:
    number: 0
  RunRoot: /tmp/1000
  VolumePath: /var/home/jlebon/.local/share/containers/storage/volumes

Package info (e.g. output of rpm -q podman or apt list podman):

$ rpm -q podman
podman-1.5.1-3.fc30.x86_64

And indeed the catatonic binary is missing from the package:

$ rpm -ql podman | grep libexec
/usr/libexec/podman
/usr/libexec/podman/conmon

Additional environment details (AWS, VirtualBox, physical, etc.):

Fedora Silverblue 30.

This used to work, so I’m guessing it was dropped in a recent version.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 58 (41 by maintainers)

Most upvoted comments

Is there a workaround right now? I’m new to Docker and I just can’t get it to run on one of my machines and switching to Podman I’m stuck on this.

If you’re on ubuntu/debian you can get it from the kubic repos. See: https://software.opensuse.org//download.html?project=devel%3Akubic%3Alibcontainers%3Astable&package=catatonit

catatonit package is being reviewed for Fedora right now so it’s not available in the base repos for Fedora or CentOS yet. If you don’t mind installing an unreleased rpm directly to get unblocked right away, you can get it from https://lsm5.fedorapeople.org/catatonit-0.1.4-1.x86_64.rpm

I’ve fixed the two bugs I linked, and released 0.1.5.

Friendly ping.

catatonit is now in the fedora testing repos https://bodhi.fedoraproject.org/updates/?packages=catatonit . I’d recommend people install this instead of any prior builds I posted.

It’s also present on the OBS repos now except for CentOS Stream which has some dependency issues on the rpm package which can only be fixed by OBS admins.

@lsm5 I’m not a recognized fedora packager although I sometimes provide patches to existing one. I just did it quickly to solve the problem here. But if this can solve the problem on the fedora level, why not. And as suggested by @rhatdan , I’ll update the spec file to install in /usr/libexec/catatonit/catatonit which makes more sense. Although that does not solve the installation for podman on fedora. But I suppose this should be properly handled in the fedora bugzilla instead of here.

I’ll post a fedora review request and @jnovy will review it. Patches are welcome anytime!

It’s been broken that way for a while now (I only just got around to reporting it now 😃 ). If catatonic is the upstream default and what gets tested in CI, then my personal recommendation is to just do it properly and package it, even if it takes a few days.