cockpit-podman icon indicating copy to clipboard operation
cockpit-podman copied to clipboard

netavark (exit code 1): invalid version number starting container

Open voltagex opened this issue 2 years ago • 4 comments

Cockpit version: 300.1-1 Cockpit-podman version: Where do I find this? apt show says Version: 76-1 Podman version:podman version 4.5.1 OS: Debian testing

I can't start any containers. netavark (exit code 1): invalid version number also appears in the UI.

If you let me know

Sep 24 01:32:18 scratch podman[18068]: @ - - [24/Sep/2023:01:32:18 +1000] "GET /v1.12/libpod/containers/f54e6983f4c9540c62f9cc46fd6a7edcc5450544081d19662ea2e2b5a0156f22/logs?follow=true&stdout=true&stderr=true HTTP/1.1" 200 0 "" ""
Sep 24 01:33:28 scratch podman[18161]: [INFO  netavark::firewall] Using iptables firewall driver
Sep 24 01:33:28 scratch podman[18068]: time="2023-09-24T01:33:28+10:00" level=info msg="Request Failed(Internal Server Error): netavark (exit code 1): invalid version number"
Sep 24 01:33:28 scratch podman[18068]: @ - - [24/Sep/2023:01:33:28 +1000] "POST /v1.12/libpod/containers/f54e6983f4c9540c62f9cc46fd6a7edcc5450544081d19662ea2e2b5a0156f22/start? HTTP/1.1" 500 133 "" ""

Steps to reproduce

  1. Install cockpit and cockpit-podman from Debian Testing packages
  2. Start cockpit
  3. Create an alpine container
  4. Try to start it

voltagex avatar Sep 23 '23 15:09 voltagex

Can you start containers from the command line?

I've spun up a testing VM and it all seems to work fine with:

root@debian-testing-127-0-0-2-2201:~# dpkg -l | grep netavark
ii  netavark                             1.4.0-4                        amd64        Rust based network stack for containers
root@debian-testing-127-0-0-2-2201:~# dpkg -l | grep podman
ii  cockpit-podman                       77-1                           all          Cockpit component for Podman containers
ii  podman                               4.6.2+ds1-2                    amd64        tool to manage containers and pods

jelly avatar Sep 25 '23 07:09 jelly

I wonder if all the dependencies are there.

This is my first exposure to podman, I'll have to check later.

Can cockpit warn when critical packages are missing?

voltagex avatar Sep 25 '23 09:09 voltagex

I wonder if all the dependencies are there.

This is my first exposure to podman, I'll have to check later.

Can cockpit warn when critical packages are missing?

It does not warn, it only expects /var/run/podman/podman.sockt.

jelly avatar Sep 26 '23 11:09 jelly

Installed podman and I can run containers from the command line. Still cannot create and run containers as system from cockpit.

If I create a container on the command line it appears as one owned by my user account and I can start it from cockpit.

image

voltagex avatar Sep 27 '23 12:09 voltagex