Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Error while running P4 example code on fresh mnwifi with Ubuntu 22.04

11 views
Skip to first unread message

Amar Sinha

unread,
Feb 1, 2025, 3:59:47 AMFeb 1
to mininet-wifi-discuss
Please help to resolve the following error-

amar@amaru22:~/mininet-wifi/examples/p4$ sudo python3 p4.py
[sudo] password for amar:
*** Adding stations/hosts
*** Adding P4APs
*** Creating links
*** Starting network
*** Starting controller(s)

*** Starting L2 nodes
ap1 ......................................................................................................................................................................................................
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
ap1 log (from /tmp/bmv2-ap1-log):simple_switch_grpc --device-id 1 -i 1@ap1-wlan1 -i 2@ap1-eth2 --thrift-port 34913 --log-console -Linfo /home/amar/mininet-wifi/examples/p4/ap-runtime.json -- --cpu-port 255 --grpc-server-addr 0.0.0.0:49039--------------------------------------------------------------------------------simple_switch_grpc: No such file or directoryTraceback (most recent call last):
  File "/home/amar/mininet-wifi/examples/p4/p4.py", line 72, in <module>
    topology(remote_controller)
  File "/home/amar/mininet-wifi/examples/p4/p4.py", line 58, in topology
    net.start()
  File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/net.py", line 834, in start
    nodeL2.start(self.controllers)
  File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/bmv2.py", line 362, in start
    self.waitBmv2Start()
  File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/bmv2.py", line 532, in waitBmv2Start
    raise Exception("Switch did not start before timeout")
Exception: Switch did not start before timeout

Ramon Fontes

unread,
Feb 1, 2025, 5:04:57 AMFeb 1
to Amar Sinha, mininet-wifi-discuss

Dear,

Whenever you open a thread, please provide detailed information. If you encounter an error stating "No such file or directory," it's important to include the troubleshooting steps you've already taken.

The error message itself is quite clear, but without additional context, there isn't much we can do to assist you effectively. Providing more details will help us guide you toward a solution.

Reply all
Reply to author
Forward
0 new messages