Can not download the installation file

I found it is hard to download the qiime2-2017.2 files to install, including VirtualBox file image or using the natively installing method, it may be the reason caused by the firewall of mainland China. So, how can I solve the issue?

Hi @dxccat! Can you provide more details, such as how you’re trying to download the files (e.g. from your web browser or the command line) along with the error message you’re getting? Screenshots may also be helpful. If it’s a firewall issue at your institution/location there isn’t much we can do to help with that unfortunately.

Yes, here are the error code:

Could not connect to https://data.qiime2.org/distro/core/qiime2-2017.2-conda-linux-64.txt
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:

    https://github.com/conda/conda/issues

I think maybe I need to switch to another Internet enritonment?

Current conda install:

               platform : linux-64
          conda version : 4.2.12
       conda is private : False
      conda-env version : 4.2.12
    conda-build version : not installed
         python version : 3.5.2.final.0
       requests version : 2.11.1
       root environment : /home/dxccat/miniconda3  (writable)
    default environment : /home/dxccat/miniconda3
       envs directories : /home/dxccat/miniconda3/envs
          package cache : /home/dxccat/miniconda3/pkgs
           channel URLs : https://repo.continuum.io/pkgs/free/linux-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/pro/linux-64
                          https://repo.continuum.io/pkgs/pro/noarch
            config file : None
           offline mode : False



`$ /home/dxccat/miniconda3/bin/conda create -n qiime2-2017.2 --file https://data.qiime2.org/distro/core/qiime2-2017.2-conda-linux-64.txt`




    Traceback (most recent call last):
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 142, in _new_conn
        (self.host, self.port), self.timeout, **extra_kw)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/util/connection.py", line 98, in create_connection
        raise err
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/util/connection.py", line 88, in create_connection
        sock.connect(sa)
    socket.timeout: timed out
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 595, in urlopen
        chunked=chunked)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 352, in _make_request
        self._validate_conn(conn)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 831, in _validate_conn
        conn.connect()
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 254, in connect
        conn = self._new_conn()
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 147, in _new_conn
        (self.host, self.timeout))
    requests.packages.urllib3.exceptions.ConnectTimeoutError: (<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff079d737b8>, 'Connection to dl.dropboxusercontent.com timed out. (connect timeout=3.05)')
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/adapters.py", line 423, in send
        timeout=timeout
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 668, in urlopen
        release_conn=release_conn, **response_kw)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 668, in urlopen
        release_conn=release_conn, **response_kw)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 668, in urlopen
        release_conn=release_conn, **response_kw)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 640, in urlopen
        _stacktrace=sys.exc_info()[2])
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/packages/urllib3/util/retry.py", line 287, in increment
        raise MaxRetryError(_pool, url, error or ResponseError(cause))
    requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='dl.dropboxusercontent.com', port=443): Max retries exceeded with url: /u/2868868/data/qiime2/distro/core/qiime2-2017.2-conda-linux-64.txt (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff079d737b8>, 'Connection to dl.dropboxusercontent.com timed out. (connect timeout=3.05)'))
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/conda/fetch.py", line 404, in download
        resp = session.get(url, stream=True, proxies=session.proxies, timeout=(3.05, 27))
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/sessions.py", line 488, in get
        return self.request('GET', url, **kwargs)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/sessions.py", line 475, in request
        resp = self.send(prep, **send_kwargs)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/sessions.py", line 617, in send
        history = [resp for resp in gen] if allow_redirects else []
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/sessions.py", line 617, in <listcomp>
        history = [resp for resp in gen] if allow_redirects else []
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/sessions.py", line 177, in resolve_redirects
        **adapter_kwargs
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/sessions.py", line 596, in send
        r = adapter.send(request, **kwargs)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/requests/adapters.py", line 479, in send
        raise ConnectTimeout(e, request=request)
    requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='dl.dropboxusercontent.com', port=443): Max retries exceeded with url: /u/2868868/data/qiime2/distro/core/qiime2-2017.2-conda-linux-64.txt (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff079d737b8>, 'Connection to dl.dropboxusercontent.com timed out. (connect timeout=3.05)'))
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/conda/exceptions.py", line 479, in conda_exception_handler
        return_value = func(*args, **kwargs)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/conda/cli/main.py", line 145, in _main
        exit_code = args.func(args, p)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/conda/cli/main_create.py", line 68, in execute
        install(args, parser, 'create')
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/conda/cli/install.py", line 189, in install
        specs.extend(common.specs_from_url(fpath, json=context.json))
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/conda/cli/common.py", line 517, in specs_from_url
        with TmpDownload(url, verbose=False) as path:
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/conda/fetch.py", line 494, in __enter__
        download(self.url, dst)
      File "/home/dxccat/miniconda3/lib/python3.5/site-packages/conda/fetch.py", line 415, in download
        raise CondaRuntimeError(msg)
    conda.exceptions.CondaRuntimeError: Runtime error: Connection error: HTTPSConnectionPool(host='dl.dropboxusercontent.com', port=443): Max retries exceeded with url: /u/2868868/data/qiime2/distro/core/qiime2-2017.2-conda-linux-64.txt (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff079d737b8>, 'Connection to dl.dropboxusercontent.com timed out. (connect timeout=3.05)')): https://data.qiime2.org/distro/core/qiime2-2017.2-conda-linux-64.txt

Thanks @dxccat! You’re likely not able to download files that are hosted on Dropbox because that service is blocked in your country. We currently host many of our resources via Dropbox, but will be transitioning everything to Amazon S3, which isn’t blocked. I recommend waiting until the files are migrated away from Dropbox (that’ll happen within the next two weeks).

1 Like

Yes, Dropbox is blocked in my country, hopes will be downloaded via Amazon S3. Thanks a lot!

We migrated everything to Amazon S3 last week. Can you try installing again?

1 Like

Some files were still hard to download because the speed is low, and I am now repeating downloading them. Or, do you have some suggestion on how can let the Terminal use the same proxy of browser? It seems that my proxy is only available via browser. Thanks a lot!

Hi @dxccat, We don’t have specific suggestions on how to speed this up, but there may be a system administrator at your institution that could help with this.

2 Likes