openvswitch / ovs-issues

Issue tracker repo for Open vSwitch
10 stars 3 forks source link

ovs-ctl start fails with "failed to lock lockfile" #306

Closed seastco closed 10 months ago

seastco commented 10 months ago

Trying to install OVS 2.17.5 on an EC2 instance using AMI 2. Kernel version 5.15.128-81.144.amzn2.x86_64. Following the installation instructions here. Hitting the following "failed to lock lockfile" error:

$ yum update -y
$ yum install -y wget openssl-devel gcc make python3-devel lipcap-ng-devel libcap-ng-utils
$ yum groupinstall -y "Development Tools"
$ wget https://github.com/openvswitch/ovs/archive/refs/tags/v2.17.5.tar.gz
$ tar -xf v2.17.5.tar.gz
$ cd ovs-2.17.5
$ ./boot.sh
$ ./configure
$ make
$ make install
$ export PATH=$PATH:/usr/local/share/openvswitch/scripts
$ ovs-ctl start
/usr/local/etc/openvswitch/conf.db does not exist ... (warning).
Creating empty database /usr/local/etc/openvswitch/conf.db ovsdb-tool: I/O error: /usr/local/etc/openvswitch/conf.db: failed to lock lockfile (Resource temporarily unavailable)
[FAILED]

selinux is disabled, ovs daemons are not already running, and /usr/local/etc/openvswitch is totally empty.

seastco commented 10 months ago

seems that I needed to do... sudo -E env "PATH=$PATH" ovs-ctl start