[ovs-discuss] Mininet installation fails due to ovs-appctl: cannot connect to "/var/run/openvswitch/ovsdb-server.4301.ctl" (No such file or directory)

Daniel Nelle dnelle at uni-potsdam.de
Tue Dec 18 15:48:35 UTC 2018


Hi,

I am getting the following error while trying to install mininet (output 
below).

The whole problem started after I tried to install openvswitch according 
to the tutorial at 
http://docs.openvswitch.org/en/latest/intro/install/general/ hoping to 
get the userspace switch to work.

I retried the installation procedure using

> ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
and also starting the ovsdb-server with different paths provided via the 
--remote and --unixctl options.

The ideal outcome would be if I could simply run mininet with --switch 
ovsk and --switch user again. I realize that the mininet installation 
fails due to

> /var/run/openvswitch/ovsdb-server.4301.ctl" (No such file or directory)
not being found. A similar file is created for one reason or another, 
but with the wrong pid in its name:

> kurt at kurt-UX305LA:~$ ls /var/run/openvswitch/
> ovsdb-server.2493.ctl  ovs-vswitchd.26682.ctl ovs-vswitchd.9499.ctl  
> ovs-vswitchd.pid
> kurt at kurt-UX305LA:~$ ls /usr/local/var/run/openvswitch/
> ovsdb-server.pid  ovs-vswitchd.pid  sock.db
Any help would be much appreciated.

Best,

Daniel


Output when attempting to install mininet:

> kurt at kurt-UX305LA:~$ sudo apt-get install mininet
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> mininet is already the newest version (2.2.2-1).
> 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
> 2 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n] y
> Setting up openvswitch-switch (2.8.1-0ubuntu0.17.10.2) ...
> update-alternatives: warning: forcing reinstallation of alternative 
> /usr/lib/openvswitch-switch/ovs-vswitchd because link group 
> ovs-vswitchd is broken
> update-alternatives: warning: not replacing /usr/sbin/ovs-vswitchd 
> with a link
> A dependency job for openvswitch-switch.service failed. See 
> 'journalctl -xe' for details.
> invoke-rc.d: initscript openvswitch-switch, action "start" failed.
> ● openvswitch-switch.service - Open vSwitch
>    Loaded: loaded (/lib/systemd/system/openvswitch-switch.service; 
> enabled; vendor preset: enabled)
>    Active: inactive (dead)
>
> Dez 18 22:46:20 kurt-UX305LA systemd[1]: Dependency failed for Open 
> vSwitch.
> Dez 18 22:46:20 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
> Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:02:47 kurt-UX305LA systemd[1]: Dependency failed for Open 
> vSwitch.
> Dez 18 23:02:47 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
> Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:04:18 kurt-UX305LA systemd[1]: Dependency failed for Open 
> vSwitch.
> Dez 18 23:04:18 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
> Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:05:53 kurt-UX305LA systemd[1]: Dependency failed for Open 
> vSwitch.
> Dez 18 23:05:53 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
> Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:29:47 kurt-UX305LA systemd[1]: Dependency failed for Open 
> vSwitch.
> Dez 18 23:29:47 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
> Job openvswitch-switch.service/start failed with result 'dependency'.
> dpkg: error processing package openvswitch-switch (--configure):
>  subprocess installed post-installation script returned error exit 
> status 1
> dpkg: dependency problems prevent configuration of mininet:
>  mininet depends on openvswitch-switch; however:
>   Package openvswitch-switch is not configured yet.
>
> dpkg: error processing package mininet (--configure):
>  dependency problems - leaving unconfigured
> No apport report written because the error message indicates its a 
> followup error from a previous failure.
> Errors were encountered while processing:
>  openvswitch-switch
>  mininet
> E: Sub-process /usr/bin/dpkg returned an error code (1)

> kurt at kurt-UX305LA:~$ journalctl -xe
> -- Support: http://www.ubuntu.com/support
> -- 
> -- Unit openvswitch-nonetwork.service has begun starting up.
> Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]:  * Starting ovsdb-server
> Dez 18 23:29:47 kurt-UX305LA ovs-vsctl[4302]: 
> ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait -- init -- set 
> Open_vSwitch . db-version=7.16.1
> Dez 18 23:29:47 kurt-UX305LA ovs-vsctl[4307]: 
> ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set Open_vSwitch . 
> ovs-version=2.10.90 "external-ids:system-id=\"32a08550-98be-4a6f-8008-ca3
> Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]:  * Configuring Open 
> vSwitch system IDs
> Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]:  * ovs-vswitchd is already 
> running
> Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]: 
> 2018-12-18T15:29:47Z|00001|unixctl|WARN|failed to connect to 
> /var/run/openvswitch/ovsdb-server.4301.ctl
> Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]: ovs-appctl: cannot connect 
> to "/var/run/openvswitch/ovsdb-server.4301.ctl" (No such file or 
> directory)
> Dez 18 23:29:47 kurt-UX305LA systemd[1]: 
> openvswitch-nonetwork.service: Main process exited, code=exited, 
> status=1/FAILURE
> Dez 18 23:29:47 kurt-UX305LA ovs-appctl[4323]: 
> ovs|00001|unixctl|WARN|failed to connect to 
> /var/run/openvswitch/ovsdb-server.4301.ctl
> Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]:  * Enabling remote OVSDB 
> managers
> Dez 18 23:29:47 kurt-UX305LA ovs-vsctl[4322]: 
> ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set Open_vSwitch . 
> external-ids:hostname=kurt-UX305LA
> Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]: 
> 2018-12-18T15:29:47Z|00002|fatal_signal|WARN|terminating with signal 
> 15 (Terminated)
> Dez 18 23:29:47 kurt-UX305LA systemd[1]: Failed to start Open vSwitch 
> Internal Unit.
> -- Subject: Unit openvswitch-nonetwork.service has failed
> -- Defined-By: systemd
> -- Support: http://www.ubuntu.com/support
> -- 
> -- Unit openvswitch-nonetwork.service has failed.
> -- 
> -- The result is failed.
> Dez 18 23:29:47 kurt-UX305LA ovs-vsctl[4322]: 
> ovs|00002|fatal_signal|WARN|terminating with signal 15 (Terminated)
> Dez 18 23:29:47 kurt-UX305LA systemd[1]: Dependency failed for Open 
> vSwitch.
> -- Subject: Unit openvswitch-switch.service has failed
> -- Defined-By: systemd
> -- Support: http://www.ubuntu.com/support
> -- 
> -- Unit openvswitch-switch.service has failed.
> -- 
> -- The result is dependency.
> Dez 18 23:29:47 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
> Job openvswitch-switch.service/start failed with result 'dependency'.
> Dez 18 23:29:47 kurt-UX305LA systemd[1]: 
> openvswitch-nonetwork.service: Unit entered failed state.
> Dez 18 23:29:47 kurt-UX305LA systemd[1]: 
> openvswitch-nonetwork.service: Failed with result 'exit-code'.
> Dez 18 23:29:49 kurt-UX305LA sudo[4225]: pam_unix(sudo:session): 
> session closed for user root
> Dez 18 23:29:50 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02281|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:29:50 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02282|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection 
> attempt failed (No such file or directory)
> Dez 18 23:29:50 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02283|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 
> seconds before reconnect
> Dez 18 23:29:58 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02284|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:29:58 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02285|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection 
> attempt failed (No such file or directory)
> Dez 18 23:29:58 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02286|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 
> seconds before reconnect
> Dez 18 23:30:06 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02287|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:30:06 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02288|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection 
> attempt failed (No such file or directory)
> Dez 18 23:30:06 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02289|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 
> seconds before reconnect
> Dez 18 23:30:14 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02290|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:30:14 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02291|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection 
> attempt failed (No such file or directory)
> Dez 18 23:30:14 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02292|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 
> seconds before reconnect
> Dez 18 23:30:22 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02293|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...
> Dez 18 23:30:22 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02294|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connection 
> attempt failed (No such file or directory)
> Dez 18 23:30:22 kurt-UX305LA ovs-vswitchd[9499]: 
> ovs|02295|reconnect|INFO|unix:/var/run/openvswitch/db.sock: waiting 8 
> seconds before reconnect


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20181218/06450a65/attachment.html>


More information about the discuss mailing list