RPC connection failing

Hello,

I have been trying to tune a model via rpc connection on an android device. I can see my android device with query tracker in free devices, but when I try rpc.connect(…), I get the following error in rpc_connect script.

Check failed: sock.RecvAll(&code, sizeof(code)) == sizeof(code) (0 vs. 4) :

And the following in rpc_tracker side.

2023-03-09 09:13:40.823 WARNING Invalid connection from TCPSocket: ('127.0.0.1', 42162)
ERROR:asyncio:Exception in callback None()
handle: <Handle cancelled>
magic = struct.unpack("<i", message)[0]

Can you please suggest me what I might be missing?

Thanks in advance!

Kuladeep.

Hi , did you resolved this issue?
It is also occurred in my project.

Thanks

I was following the guide from Deploy the Pretrained Model on Adreno™ — tvm 0.16.dev0 documentation. for running a model via rpc connection on an android device.

they were using rpc tracker connect.

tracker = rpc.connect_tracker(tracker_host, tracker_port)
# When running a heavy model, we should increase the `session_timeout`
remote = tracker.request(key, priority=0, session_timeout=600)

this works fine for me.

P.S rpc.connect was causing similar issue for me as well.

thanks!

Siva.