Skip to content

Error: starting container ... setting up Pasta: pasta failed with exit code 1 #22015

@paulrenn67

Description

@paulrenn67

Issue Description

Hi,

I'm new to Podman, and trying to setup a new server with only a basic Debian 12 install. I spent a while configuring the server, trying to load all the dependencies needed for Podman, upgraded Go, and Podman should be the latest:

Client:       Podman Engine
Version:      5.0.0-dev
API Version:  5.0.0-dev
Go Version:   go1.22.1
Git Commit:   38e22d443cc4ba0300712fa6532c79730b829f21
Built:        Mon Mar 11 19:39:45 2024
OS/Arch:      linux/amd64

I'm attempting to install a rootless user, and I'm finally at a place where I can actually create and attempt to start a pod.

podman network create test-network
podman pod create --name psp-pod --network test-network 

However, Pasta networking fails at startup, here is output from podman pod start psp-pod --log-level=debug

INFO[0000] podman filtering at log level debug
DEBU[0000] Called start.PersistentPreRunE(podman pod start psp-pod --log-level=debug)
DEBU[0000] Using conmon: "/usr/bin/conmon"
INFO[0000] Using sqlite as database backend
DEBU[0000] systemd-logind: Unknown object '/'.
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /home/psp/.local/share/containers/storage
DEBU[0000] Using run root /run/user/1000/containers
DEBU[0000] Using static dir /home/psp/.local/share/containers/storage/libpod
DEBU[0000] Using tmp dir /run/user/1000/libpod/tmp
DEBU[0000] Using volume path /home/psp/.local/share/containers/storage/volumes
DEBU[0000] Using transient store: false
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that metacopy is not being used
DEBU[0000] Cached value indicated that native-diff is usable
DEBU[0000] backingFs=extfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false
DEBU[0000] Initializing event backend journald
DEBU[0000] Configured OCI runtime runc initialization failed: no valid executable found for OCI runtime runc: invalid argument
DEBU[0000] Configured OCI runtime youki initialization failed: no valid executable found for OCI runtime youki: invalid argument
DEBU[0000] Configured OCI runtime ocijail initialization failed: no valid executable found for OCI runtime ocijail: invalid argument
DEBU[0000] Configured OCI runtime crun-vm initialization failed: no valid executable found for OCI runtime crun-vm: invalid argument
DEBU[0000] Configured OCI runtime crun-wasm initialization failed: no valid executable found for OCI runtime crun-wasm: invalid argument
DEBU[0000] Configured OCI runtime runj initialization failed: no valid executable found for OCI runtime runj: invalid argument
DEBU[0000] Configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument
DEBU[0000] Configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument
DEBU[0000] Configured OCI runtime krun initialization failed: no valid executable found for OCI runtime krun: invalid argument
DEBU[0000] Using OCI runtime "/usr/bin/crun"
INFO[0000] Setting parallel job count to 49
DEBU[0000] Strongconnecting node 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964
DEBU[0000] Pushed 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964 onto stack
DEBU[0000] Finishing node 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964. Popped 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964 off stack
DEBU[0000] Cached value indicated that idmapped mounts for overlay are not supported
DEBU[0000] Made network namespace at /run/user/1000/netns/netns-8238d692-8b38-1c9b-7cae-83eb84bc3852 for container 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964
DEBU[0000] Check for idmapped mounts support
DEBU[0000] overlay: mount_data=lowerdir=/home/psp/.local/share/containers/storage/overlay/l/BK6K7MHETGSAMGGN5DHK5PRYGQ,upperdir=/home/psp/.local/share/containers/storage/overlay/f4267117530de68e42c6edef8bb7a81a5662f3f0cb708f39ca2baa1b61f95efb/diff,workdir=/home/psp/.local/share/containers/storage/overlay/f4267117530de68e42c6edef8bb7a81a5662f3f0cb708f39ca2baa1b61f95efb/work,userxattr
DEBU[0000] Mounted container "2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964" at "/home/psp/.local/share/containers/storage/overlay/f4267117530de68e42c6edef8bb7a81a5662f3f0cb708f39ca2baa1b61f95efb/merged"
DEBU[0000] Successfully loaded network test-network: &{test-network 0932e8bed08d20d078792b39e9dbad47d1e1ba5de0482b12a5eabf71ccd371e0 bridge podman1 2024-03-11 20:17:16.380692008 +0100 CET [{{{10.89.0.0 ffffff00}} 10.89.0.1 <nil>}] [] false false true [] map[] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded 2 networks
DEBU[0000] Created root filesystem for container 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964 at /home/psp/.local/share/containers/storage/overlay/f4267117530de68e42c6edef8bb7a81a5662f3f0cb708f39ca2baa1b61f95efb/merged
DEBU[0000] Creating rootless network namespace at "/run/user/1000/containers/networks/rootless-netns/rootless-netns"
DEBU[0000] pasta arguments: --config-net --pid /run/user/1000/containers/networks/rootless-netns/rootless-netns-conn.pid -t none -u none -T none -U none --no-map-gw --dns none --quiet --netns /run/user/1000/containers/networks/rootless-netns/rootless-netns
DEBU[0000] Unmounted container "2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964"
DEBU[0000] Network is already cleaned up, skipping...
DEBU[0000] Cleaning up container 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964
DEBU[0000] Network is already cleaned up, skipping...
DEBU[0000] Container 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964 storage is already unmounted, skipping...
Error: starting container 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964: setting up Pasta: pasta failed with exit code 1:
Couldn't open network namespace /run/user/1000/containers/networks/rootless-netns/rootless-netns

Checking the rootless-netns file, it is empty:

psp@primary:~$ ls -l /run/user/1000/containers/networks/rootless-netns/rootless-netns
-rw------- 1 psp psp 0 Mar 11 21:08 /run/user/1000/containers/networks/rootless-netns/rootless-netns

Not sure how to continue further, does anybody have any clues? Happy to assist and provide any further information if required!

Thanks in advance,
Paul

Steps to reproduce the issue

Steps to reproduce the issue

  1. Install clean version of Debian 12
  2. Install a ton of packages required by Podman (mostly
  3. Upgrade to latest version of Go
  4. Compiled Podman from source (mostly followed instructions here https://podman.io/docs/installation)
  5. Attempt to start a pod
  6. Tear out last remaining hair

Describe the results you received

Error: starting container 2ba3568f71cfd3779ebfbc53ccfeb084e539605c2f3299ef4630f9ba8a743964: setting up Pasta: pasta failed with exit code 1:
Couldn't open network namespace /run/user/1000/containers/networks/rootless-netns/rootless-netns

Describe the results you expected

Pod should start cleanly

podman info output

host:
  arch: amd64
  buildahVersion: 1.35.0
  cgroupControllers:
  - cpu
  - memory
  - pids
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon_2.1.6+ds1-1_amd64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.6, commit: unknown'
  cpuUtilization:
    idlePercent: 99.95
    systemPercent: 0.03
    userPercent: 0.02
  cpus: 16
  databaseBackend: sqlite
  distribution:
    codename: bookworm
    distribution: debian
    version: "12"
  eventLogger: journald
  freeLocks: 2046
  hostname: primary.my-hostname.io
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 6.1.0-18-amd64
  linkmode: dynamic
  logDriver: journald
  memFree: 133924184064
  memTotal: 134750760960
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns_1.4.0-3_amd64
      path: /usr/lib/podman/aardvark-dns
      version: aardvark-dns 1.4.0
    package: netavark_1.4.0-3_amd64
    path: /usr/lib/podman/netavark
    version: netavark 1.4.0
  ociRuntime:
    name: crun
    package: crun_1.8.1-1+deb12u1_amd64
    path: /usr/bin/crun
    version: |-
      crun version 1.8.1
      commit: f8a096be060b22ccd3d5f3ebe44108517fbf6c30
      rundir: /run/user/1000/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt_0.0~git20230309.7c7625d-1_amd64
    version: |
      pasta unknown version
      Copyright Red Hat
      GNU Affero GPL version 3 or later <https://www.gnu.org/licenses/agpl-3.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: false
    path: /run/user/1000/podman/podman.sock
  security:
    apparmorEnabled: false
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 4289720320
  swapTotal: 4289720320
  uptime: 1h 41m 1.00s (Approximately 0.04 days)
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - docker.io
  - quay.io
store:
  configFile: /home/psp/.config/containers/storage.conf
  containerStore:
    number: 1
    paused: 0
    running: 0
    stopped: 1
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/psp/.local/share/containers/storage
  graphRootAllocated: 229732732928
  graphRootUsed: 5696118784
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 1
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/psp/.local/share/containers/storage/volumes
version:
  APIVersion: 5.0.0-dev
  Built: 1710182385
  BuiltTime: Mon Mar 11 19:39:45 2024
  GitCommit: 38e22d443cc4ba0300712fa6532c79730b829f21
  GoVersion: go1.22.1
  Os: linux
  OsArch: linux/amd64
  Version: 5.0.0-dev

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.networkNetworking related issue or featurepastapasta(1) bugs or features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions