Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ds004478-mriqc: "HTTPSConnectionPool(host='mriqc.nimh.nih.gov', port=443): Read timed out. (read timeout=15)" #91

Open
jbwexler opened this issue Sep 5, 2024 · 0 comments

Comments

@jbwexler
Copy link
Collaborator

jbwexler commented Sep 5, 2024

All datasets from a recent batch failed with this error. I'm wondering if the internet was down on Frontera at the time?

    Node: mriqc_wf.anatMRIQC.UploadMetrics
Working directory: /node_tmp/work_dir/mriqc/ds004478_sub-01/mriqc_wf/anatMRIQC/a63125fa58866c73d5b1e2e2859283294faa562b/UploadMetrics

Node inputs:

auth_token = 8sSYVI0XjFqacEMZ8wF4
email = <undefined>
endpoint = https://mriqc.nimh.nih.gov:443/api/v1
in_iqms = /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/mriqc/ds004478-mriqc/sub-01/anat/sub-01_T1w.json
modality = undefined
strict = False

Traceback (most recent call last):
  File "/opt/conda/lib/python3.11/site-packages/mriqc/engine/plugin.py", line 64, in run_node
    result['result'] = node.run(updatehash=updatehash)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 771, in _run_command
    raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node UploadMetrics.

Traceback:
        Traceback (most recent call last):
          File "/opt/conda/lib/python3.11/site-packages/urllib3/connectionpool.py", line 537, in _make_request
            response = conn.getresponse()
                       ^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/urllib3/connection.py", line 466, in getresponse
            httplib_response = super().getresponse()
                               ^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/http/client.py", line 1390, in getresponse
            response.begin()
          File "/opt/conda/lib/python3.11/http/client.py", line 325, in begin
            version, status, reason = self._read_status()
                                      ^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/http/client.py", line 286, in _read_status
            line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/socket.py", line 706, in readinto
            return self._sock.recv_into(b)
                   ^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/ssl.py", line 1314, in recv_into
            return self.read(nbytes, buffer)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/ssl.py", line 1166, in read
            return self._sslobj.read(len, buffer)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        TimeoutError: The read operation timed out

        The above exception was the direct cause of the following exception:

        Traceback (most recent call last):
          File "/opt/conda/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
            resp = conn.urlopen(
                   ^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/urllib3/connectionpool.py", line 847, in urlopen
            retries = retries.increment(
                      ^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/urllib3/util/retry.py", line 470, in increment
            raise reraise(type(error), error, _stacktrace)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/urllib3/util/util.py", line 39, in reraise
            raise value
          File "/opt/conda/lib/python3.11/site-packages/urllib3/connectionpool.py", line 793, in urlopen
            response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/urllib3/connectionpool.py", line 539, in _make_request
            self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
          File "/opt/conda/lib/python3.11/site-packages/urllib3/connectionpool.py", line 370, in _raise_timeout
            raise ReadTimeoutError(
        urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='mriqc.nimh.nih.gov', port=443): Read timed out. (read timeout=15)

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/opt/conda/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 397, in run
            runtime = self._run_interface(runtime)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/mriqc/interfaces/webapi.py", line 148, in _run_interface
            response, payload = upload_qc_metrics(
                                ^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/mriqc/interfaces/webapi.py", line 272, in upload_qc_metrics
            response = requests.post(
                       ^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/requests/api.py", line 115, in post
            return request("post", url, data=data, json=json, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/requests/api.py", line 59, in request
            return session.request(method=method, url=url, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
            resp = self.send(prep, **send_kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
            r = adapter.send(request, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/conda/lib/python3.11/site-packages/requests/adapters.py", line 532, in send
            raise ReadTimeout(e, request=request)
        requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='mriqc.nimh.nih.gov', port=443): Read timed out. (read timeout=15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant