DDP: errno: 97 - Address family not supported by protocol

I am running distributed training; it works fine but I am getting these annoying warnings:

[W socket.cpp:426] [c10d] The server socket cannot be initialized on [::]:1234 (errno: 97 - Address family not supported by protocol).
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [host]:1234 (errno: 97 - Address family not supported by protocol).
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [::ffff:xx.xx.xx.xx]:1234 (errno: 97 - Address family not supported by protocol).
              ⋮

IPv6 is disabled on all the systems. I guess these warnings are related to IPv6. Is there any way to disable this warning?

1 Like

I’ve encountered the same errors while using the high-performance computing system of TGCC/Irene where the internet is disabled.

[W socket.cpp:426] [c10d] The server socket cannot be initialized on [::]:29500 (errno: 97 - Address family not supported by protocol).
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).
| distributed init (rank 3): env://
| distributed init (rank 2): env://
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).
| distributed init (rank 1): env://
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).
| distributed init (rank 0): env://
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).
[W socket.cpp:601] [c10d] The client socket cannot be initialized to connect to [localhost.ccc.cea.fr]:29500 (errno: 97 - Address family not supported by protocol).