Exception: Please shut down the controller which is running on port 6653: Mininet
For following error:
"""
*** Creating network
*** Adding controller
--------------------------------------------------------------------------------
Caught exception. Cleaning up...
Exception: Please shut down the controller which is running on port 6653:
Active Internet connections (servers and established)
tcp 0 0 0.0.0.0:6653 0.0.0.0:* LISTEN 1828/ovs-testcontro
tcp 0 0 127.0.0.1:42042 127.0.0.1:6653 TIME_WAIT -
--------------------------------------------------------------------------------
*** Removing excess controllers/ofprotocols/ofdatapaths/pings/noxes
killall controller ofprotocol ofdatapath ping nox_core lt-nox_core ovs-openflowd ovs-controller udpbwtest mnexec ivs 2> /dev/null
killall -9 controller ofprotocol ofdatapath ping nox_core lt-nox_core ovs-openflowd ovs-controller udpbwtest mnexec ivs 2> /dev/null
pkill -9 -f "sudo mnexec"
*** Removing junk from /tmp
rm -f /tmp/vconn* /tmp/vlogs* /tmp/*.out /tmp/*.log
*** Removing old X11 tunnels
*** Removing excess kernel datapaths
ps ax | egrep -o 'dp[0-9]+' | sed 's/dp/nl:/'
*** Removing OVS datapaths
ovs-vsctl --timeout=1 list-br
ovs-vsctl --timeout=1 list-br
*** Removing all links of the pattern foo-ethX
ip link show | egrep -o '([-_.[:alnum:]]+-eth[[:digit:]]+)'
ip link show
*** Killing stale mininet node processes
pkill -9 -f mininet:
*** Shutting down stale tunnels
pkill -9 -f Tunnel=Ethernet
pkill -9 -f .ssh/mn
rm -f ~/.ssh/mn/*
*** Cleanup complete.
"""
SoLUTION
~~~~~~~~~
Execute following in terminal:- sudo fuser -k 6653/tcp
Result:- 6653/tcp: 1828
Explanation:- Killed the previous controller instance. Now new network can be created in Mininet.
Thank you! It saved me time.
ReplyDeleteCheers Sam 🙌
DeleteThanks so much! it has helped me a lot
ReplyDeleteHappiness 🙌
DeleteThanks u so much it worked
ReplyDeleteThank you so mush.
ReplyDelete