Comments (9)
Yes, it means mininet did not exit properly the previous time, or you have another instance of behavioral-model running. Try the following:
sudo mn -c
sudo killall behavioral-model
redis-cli FLUSHALL
from p4factory.
I too was facing the same issue. Thank you for the solution.
from p4factory.
I encounter the same issue.
Thanks.
from p4factory.
I had the same issue and solved it by:
sudo mn -c
sudo killall behavioral-model
redis-cli FLUSHALL
However, when I run
./run_cli.bash"
under "p4factory/targets/simple_router", I got TTransportException, how can I fix this?
Using default thrift server and port localhost:9090
Traceback (most recent call last):
File "../../cli/pd_cli.py", line 677, in
main(sys.argv[1:])
File "../../cli/pd_cli.py", line 665, in main
pd_cli = PdCli(p4_name, thrift_client_module, thrift_server, port)
File "../../cli/pd_cli.py", line 35, in init
self._thrift_client = pd_thrift_client.ThriftClient(self._module, thrift_server, port, self._p4_name)
File "/home/hamkuu/p4/p4factory/cli/pd_thrift_client.py", line 55, in init
self.setup(hostname, port)
File "/home/hamkuu/p4/p4factory/cli/pd_thrift_client.py", line 77, in setup
self._transport.open()
File "/usr/local/lib/python2.7/dist-packages/thrift/transport/TTransport.py", line 149, in open
return self.__trans.open()
File "/usr/local/lib/python2.7/dist-packages/thrift/transport/TSocket.py", line 101, in open
message=message)
thrift.transport.TTransport.TTransportException: Could not connect to localhost:9090
from p4factory.
Did you start the software switch? What was the output for this?
from p4factory.
Hi I am trying to add demo entries to the switch.
I did the following procedure:
From the terminal, add entries in the switch:
/p4factory/targets/simple_router$ more run_add_demo_entries.bash
and then ./run_add_demo_entries.bash
I tried using the above three commands given for killing the behavioral process and exiting the mining but still I am getting the same error.
Can you please help me out on where am I going wrong?
from p4factory.
You did not show how you started the switch in your screenshot.
We are also deprecating this software switch and replacing it with bmv2. I encourage you to look at these repositories:
- the new bmv2 software switch: https://github.com/p4lang/behavioral-model
- tutorials and examples: https://github.com/p4lang/tutorials
from p4factory.
I had the same issue which hamkuu had.
Then I changed run_cli.bash,
python ../../cli/pd_cli.py -p simple_router -i p4_pd_rpc.simple_router -s $PWD/tests/pd_thrift:$PWD/../../testutils "$@"
into
python ../../cli/pd_cli.py -p simple_router -i p4_pd_rpc.simple_router -s $PWD/tests/pd_thrift:$PWD/../../testutils "$@" -c localhost:22222
to provide the CLI with the port. After that it worked fine.
from p4factory.
root@wenxingbeng:/home/wenxingbeng/p4factory# redis-cli FLUSHALL
Could not connect to Redis at 127.0.0.1:6379: Connection refused
What should I do?
I solve it by doing the following commond.
redis-server &
from p4factory.
Related Issues (20)
- Connection reset by Peer (error 104) - When INT configuring SPINE HOT 3
- install_deps.sh error HOT 1
- install error HOT 2
- add table entries for multiple switches. HOT 6
- Configure two different switches in mininet simple_routing HOT 3
- installation is onerous - multiple issues
- int_ref_topology.py failed at docker_node.py self.pid = int(ps_out[0])
- app int mininet cannot ping between hosts due to wrong config for leaf/spine
- App INT error:Tsocket read 0 bytes error HOT 2
- run simple_router target error :No handlers could be found for logger "thrift.transport.TSocket" HOT 2
- Installation help on mininet?
- Ip fragmentation in p4 switch or host HOT 1
- Is the INT demo in p4 working? HOT 1
- Ubuntu 16.04 seems not supported
- Getting INT counters values from INT sinks
- Error while running : int_ref_topology.py
- Some questions about webclient?
- make bm error HOT 1
- saithrift cases are failing
- issues with creating docker image,vxlan driver HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p4factory.