This 25 is how TCPStore is initialized when you call init_process_group. You can print out the args on both process to check which one went wrong.
For start_daemon, did you pass in 1 for rank0 and 0 for rank1?