Skip to content

nightly test: tests.test_download_and_extract #3725

Description

@wyli

Describe the bug

======================================================================
FAIL: test_default (tests.test_download_and_extract.TestDownloadAndExtract)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/agent/workspace/Monai-pytorch-versions/tests/test_download_and_extract.py", line 65, in test_default
    file_type="tar",
RuntimeError: Download of file from https://drive.google.com/uc?id=1HrQd-AKPbts9jkTNN4pT8vLZyhM5irVn to /tmp/tmp5dkug159/uc?id=1HrQd-AKPbts9jkTNN4pT8vLZyhM5irVn failed due to network issue or denied permission.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/jenkins/agent/workspace/Monai-pytorch-versions/tests/test_download_and_extract.py", line 78, in test_default
    self.assertTrue(str(e).startswith("md5 check"))
AssertionError: False is not true

----------------------------------------------------------------------

and additional issues such as:


======================================================================
ERROR: test_pretrain_consistency_0 (tests.test_densenet.TestPretrainedDENSENET)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/parameterized/parameterized.py", line 533, in standalone_func
    return func(*(a + p.args), **p.kwargs)
  File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/tests/test_densenet.py", line 95, in test_pretrain_consistency
    net = model(**input_param).to(device)
  File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/networks/nets/densenet.py", line 311, in __init__
    _load_state_dict(self, "densenet121", progress)
  File "/home/jenkins/agent/workspace/MONAI-postmerge/monai_github/monai/networks/nets/densenet.py", line 276, in _load_state_dict
    state_dict = load_state_dict_from_url(model_url, progress=progress)
  File "/usr/local/lib/python3.9/dist-packages/torch/hub.py", line 586, in load_state_dict_from_url
    download_url_to_file(url, cached_file, hash_prefix, progress=progress)
  File "/usr/local/lib/python3.9/dist-packages/torch/hub.py", line 474, in download_url_to_file
    buffer = u.read(8192)
  File "/usr/lib/python3.9/http/client.py", line 463, in read
    n = self.readinto(b)
  File "/usr/lib/python3.9/http/client.py", line 507, in readinto
    n = self.fp.readinto(b)
  File "/usr/lib/python3.9/socket.py", line 704, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.9/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer

----------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions