facebookresearch / dino

PyTorch code for Vision Transformers training with the Self-Supervised learning method DINO
Apache License 2.0
6.25k stars 905 forks source link

sock.connect(sa)TimeoutError : raise err[Errno 110] Connection timed out #233

Open wdc233 opened 1 year ago

wdc233 commented 1 year ago

I keep making these errors, but the Internet connection is fine


Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.


Downloading: "https://github.com/facebookresearch/xcit/archive/main.zip" to /home/wendongcheng/.cache/torch/hub/main.zip Downloading: "https://github.com/facebookresearch/xcit/archive/main.zip" to /home/wendongcheng/.cache/torch/hub/main.zip Downloading: "https://github.com/facebookresearch/xcit/archive/main.zip" to /home/wendongcheng/.cache/torch/hub/main.zip Downloading: "https://github.com/facebookresearch/xcit/archive/main.zip" to /home/wendongcheng/.cache/torch/hub/main.zip Downloading: "https://github.com/facebookresearch/xcit/archive/main.zip" to /home/wendongcheng/.cache/torch/hub/main.zip Downloading: "https://github.com/facebookresearch/xcit/archive/main.zip" to /home/wendongcheng/.cache/torch/hub/main.zip Downloading: "https://github.com/facebookresearch/xcit/archive/main.zip" to /home/wendongcheng/.cache/torch/hub/main.zip Downloading: "https://github.com/facebookresearch/xcit/archive/main.zip" to /home/wendongcheng/.cache/torch/hub/main.zip Traceback (most recent call last): Traceback (most recent call last): Traceback (most recent call last): Traceback (most recent call last): Traceback (most recent call last): Traceback (most recent call last): File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/urllib/request.py", line 1354, in do_open File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/urllib/request.py", line 1354, in do_open File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/urllib/request.py", line 1354, in do_open File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/urllib/request.py", line 1354, in do_open File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/urllib/request.py", line 1354, in do_open Traceback (most recent call last): Traceback (most recent call last): File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/urllib/request.py", line 1354, in do_open File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/urllib/request.py", line 1354, in do_open File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/urllib/request.py", line 1354, in do_open h.request(req.get_method(), req.selector, req.data, headers,h.request(req.get_method(), req.selector, req.data, headers,h.request(req.get_method(), req.selector, req.data, headers,

h.request(req.get_method(), req.selector, req.data, headers, File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1256, in request File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1256, in request File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1256, in request

      File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1256, in request

h.request(req.get_method(), req.selector, req.data, headers,h.request(req.get_method(), req.selector, req.data, headers,

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1256, in request File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1256, in request self._send_request(method, url, body, headers, encode_chunked)self._send_request(method, url, body, headers, encode_chunked)

self._send_request(method, url, body, headers, encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1302, in _send_request File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1302, in _send_request

self._send_request(method, url, body, headers, encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1302, in _send_request self._send_request(method, url, body, headers, encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1302, in _send_request self._send_request(method, url, body, headers, encode_chunked)

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1302, in _send_request h.request(req.get_method(), req.selector, req.data, headers,h.request(req.get_method(), req.selector, req.data, headers, File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1302, in _send_request

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1256, in request File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1256, in request self.endheaders(body, encode_chunked=encode_chunked) self.endheaders(body, encode_chunked=encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1251, in endheaders

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1251, in endheaders self.endheaders(body, encode_chunked=encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1251, in endheaders self.endheaders(body, encode_chunked=encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1251, in endheaders self.endheaders(body, encode_chunked=encode_chunked)self.endheaders(body, encode_chunked=encode_chunked)

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1251, in endheaders File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1251, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1011, in _send_output self._send_output(message_body, encode_chunked=encode_chunked)self._send_output(message_body, encode_chunked=encode_chunked)

self._send_output(message_body, encode_chunked=encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1011, in _send_output File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1011, in _send_output

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1011, in _send_output self._send_output(message_body, encode_chunked=encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1011, in _send_output self._send_request(method, url, body, headers, encode_chunked)self._send_request(method, url, body, headers, encode_chunked)

self._send_output(message_body, encode_chunked=encode_chunked) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1302, in _send_request

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1302, in _send_request File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1011, in _send_output self.send(msg) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 951, in send self.send(msg)self.send(msg)

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 951, in send File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 951, in send self.send(msg) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 951, in send self.send(msg) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 951, in send self.send(msg) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 951, in send self.connect() File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1418, in connect self.connect()self.connect()

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1418, in connect File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1418, in connect self.connect() File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1418, in connect self.connect() File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1418, in connect self.connect() File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1418, in connect self.endheaders(body, encode_chunked=encode_chunked)self.endheaders(body, encode_chunked=encode_chunked)

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1251, in endheaders File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1251, in endheaders super().connect() File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 922, in connect super().connect()super().connect()

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 922, in connect File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 922, in connect super().connect() File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 922, in connect super().connect() File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 922, in connect super().connect() File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 922, in connect self.sock = self._create_connection( File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 808, in create_connection self.sock = self._create_connection(self.sock = self._create_connection(

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 808, in create_connection File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 808, in create_connection self.sock = self._create_connection( File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 808, in create_connection self.sock = self._create_connection( File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 808, in create_connection raise err File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 796, in create_connection self.sock = self._create_connection( File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 808, in create_connection raise err
raise err File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 796, in create_connection

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 796, in create_connection self._send_output(message_body, encode_chunked=encode_chunked)self._send_output(message_body, encode_chunked=encode_chunked)

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1011, in _send_output File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 1011, in _send_output raise err File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 796, in create_connection raise err File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 796, in create_connection sock.connect(sa) TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): sock.connect(sa) File "main_dino.py", line 469, in

sock.connect(sa)TimeoutError    

: raise err[Errno 110] Connection timed out

TimeoutError During handling of the above exception, another exception occurred:

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 796, in create_connection : Traceback (most recent call last): [Errno 110] Connection timed out File "main_dino.py", line 469, in

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main_dino.py", line 469, in sock.connect(sa) TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main_dino.py", line 469, in sock.connect(sa) TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main_dino.py", line 469, in sock.connect(sa)
parser = argparse.ArgumentParser('DINO', parents=[get_args_parser()]) TimeoutError File "main_dino.py", line 48, in get_args_parser : [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main_dino.py", line 469, in parser = argparse.ArgumentParser('DINO', parents=[get_args_parser()]) File "main_dino.py", line 48, in get_args_parser parser = argparse.ArgumentParser('DINO', parents=[get_args_parser()]) File "main_dino.py", line 48, in get_args_parser self.send(msg)self.send(msg)

  File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 951, in send

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/http/client.py", line 951, in send

urllib.error.URLError: <urlopen error [Errno 110] Connection timed out> self.sock = self._create_connection(self.sock = self._create_connection(

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 808, in create_connection File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 808, in create_connection raise URLError(err) urllib.errorreturn self.do_open(http.client.HTTPSConnection, req,. URLError File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/urllib/request.py", line 1357, in do_open : <urlopen error [Errno 110] Connection timed out> raise errraise err

File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 796, in create_connection File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/socket.py", line 796, in create_connection raise URLError(err) urllib.error.URLError: <urlopen error [Errno 110] Connection timed out> sock.connect(sa)sock.connect(sa)

TimeoutErrorTimeoutError: [Errno 110] Connection timed out: [Errno 110] Connection timed out During handling of the above exception, another exception occurred:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): Traceback (most recent call last): File "main_dino.py", line 469, in File "main_dino.py", line 469, in parser = argparse.ArgumentParser('DINO', parents=[get_args_parser()])parser = argparse.ArgumentParser('DINO', parents=[get_args_parser()])

File "main_dino.py", line 48, in get_args_parser File "main_dino.py", line 48, in get_args_parser

urllib.errorurllib.error..URLErrorURLError: : <urlopen error [Errno 110] Connection timed out><urlopen error [Errno 110] Connection timed out>

Traceback (most recent call last): File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/distributed/launch.py", line 260, in main() File "/home/wendongcheng/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/distributed/launch.py", line 255, in main raise subprocess.CalledProcessError(returncode=process.returncode, subprocess.CalledProcessError: Command '['/home/wendongcheng/anaconda3/envs/pytorch/bin/python', '-u', 'main_dino.py', '--local_rank=7', '--arch', 'vit_small', '--data_path', '/path/to/imagenet/train', '--output_dir', '/path/to/saving_dir']' returned non-zero exit status 1.

crisyume commented 10 months ago

have you solved the problem? I meet a similar one.