Giter Club home page Giter Club logo

Comments (3)

surajssd avatar surajssd commented on May 13, 2024

Update:

On another machine got this error:

# ./bin/kpod ps                               
ERRO[0000] error updating cni config: Missing CNI default network
ERRO[0000] Missing CNI default network                                                                   
ERRO[0000] no such file or directory                
ERRO[0000] CNI monitoring error <nil>               
error creating libpod runtime: database schema version 2 does not match our schema version 4: database configuration mismatch

for this deleted the file

# cd /var/lib/containers/storage/libpod/
# ls
lock  ocispec  state.sql
# rm state.sql
rm: remove regular file 'state.sql'? y

Now seeing the original issue:

# ./bin/kpod ps
ERRO[0000] error updating cni config: Missing CNI default network
ERRO[0000] Missing CNI default network
ERRO[0000] no such file or directory
ERRO[0000] CNI monitoring error <nil>

from podman.

surajssd avatar surajssd commented on May 13, 2024

Following steps from https://github.com/kubernetes-incubator/cri-o/blob/master/tutorial.md#cni-plugins

go get -d github.com/containernetworking/plugins
cd $GOPATH/src/github.com/containernetworking/plugins
./build.sh
sudo mkdir -p /opt/cni/bin
sudo cp bin/* /opt/cni/bin/
sudo mkdir -p /etc/cni/net.d
sudo sh -c 'cat >/etc/cni/net.d/10-mynet.conf <<-EOF
{
    "cniVersion": "0.2.0",
    "name": "mynet",
    "type": "bridge",
    "bridge": "cni0",
    "isGateway": true,
    "ipMasq": true,
    "ipam": {
        "type": "host-local",
        "subnet": "10.88.0.0/16",
        "routes": [
            { "dst": "0.0.0.0/0"  }
        ]
    }
}
EOF'
sudo sh -c 'cat >/etc/cni/net.d/99-loopback.conf <<-EOF
{
    "cniVersion": "0.2.0",
    "type": "loopback"
}
EOF'

I got it working again!

from podman.

baude avatar baude commented on May 13, 2024

Just for the record, I am working on a PR #142 will fix this as it will install the needed cni configs.

from podman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.