Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

App INT error:Tsocket read 0 bytes error #195

Open
haseebnaseem opened this issue May 18, 2017 · 2 comments
Open

App INT error:Tsocket read 0 bytes error #195

haseebnaseem opened this issue May 18, 2017 · 2 comments

Comments

@haseebnaseem
Copy link

haseebnaseem commented May 18, 2017

I get the following error when I run the int topology
Tsocket read 0 bytes
Here's the trace:

Adding switch spine1
Adding switch spine2
Adding switch leaf1
Adding switch leaf2
Waiting 10 seconds for switches to intialize...
INT Config  spine1
Traceback (most recent call last):
  File "./int_ref_topology.py", line 131, in <module>
    run_cfg(model_dir)
  File "./int_ref_topology.py", line 91, in run_cfg
    net = mgr.setupAndStartNetwork()
  File "/home/haseeb/p4factory/mininet/int_cfg.py", line 147, in setupAndStartNetwork
    self.configSwitches()
  File "/home/haseeb/p4factory/mininet/int_cfg.py", line 237, in configSwitches
    self.configSwitch(s)
  File "/home/haseeb/p4factory/mininet/int_cfg.py", line 251, in configSwitch
    client.switcht_api_init( device )
  File "/home/haseeb/p4factory/submodules/switch/switchapi/switch_api_thrift/switch_api_rpc.py", line 1565, in switcht_api_init
    return self.recv_switcht_api_init()
  File "/home/haseeb/p4factory/submodules/switch/switchapi/switch_api_thrift/switch_api_rpc.py", line 1577, in recv_switcht_api_init
    (fname, mtype, rseqid) = iprot.readMessageBegin()
  File "/usr/local/lib/python2.7/dist-packages/thrift/protocol/TBinaryProtocol.py", line 134, in readMessageBegin
    sz = self.readI32()
  File "/usr/local/lib/python2.7/dist-packages/thrift/protocol/TBinaryProtocol.py", line 217, in readI32
    buff = self.trans.readAll(4)
  File "/usr/local/lib/python2.7/dist-packages/thrift/transport/TTransport.py", line 60, in readAll
    chunk = self.read(sz - have)
  File "/usr/local/lib/python2.7/dist-packages/thrift/transport/TTransport.py", line 161, in read
    self.__rbuf = BufferIO(self.__trans.read(max(sz, self.__rbuf_size)))
  File "/usr/local/lib/python2.7/dist-packages/thrift/transport/TSocket.py", line 132, in read
    message='TSocket read 0 bytes')
thrift.transport.TTransport.TTransportException: TSocket read 0 bytes
@ersuneetsingh
Copy link

hey,
I am facing the same problem, could anyone give any suggestion to resolve this problem ?

@jafingerhut
Copy link
Contributor

Note that the top level README of this project points out that it is deprecated, and recommends looking at p4lang/tutorials instead, which has several people working on it, and thus you are more likely to get help with problems. It is fairly unlikely someone will be interested in helping you debug issues with the code in this repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants