spleeter icon indicating copy to clipboard operation
spleeter copied to clipboard

[Bug] Failure to download 2stems.tar.gz

Open all-the-good-ones-are-gone opened this issue 11 months ago • 1 comments

  • [x] I didn't find a similar issue already open.
  • [x] I read the documentation (README AND Wiki)
  • [x] I have installed FFMpeg
  • [x] My problem is related to Spleeter only, not a derivative product (such as Webapplication, or GUI provided by others)

Description

Yesterday and today, running the docker container results in error message that model was not found to download.

Step to reproduce

  1. Installed using docker pull researchdeezer/spleeter

1.a. pull now results in Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.100:44489->10.0.2.3:53: i/o timeout

  1. using existing container, running docker run -v ~/Spleeter/output:/output -v ~/Spleeter/input:/input researchdeezer/spleeter separate -i input/* -o /output -p spleeter:2stems -d 7000
  2. Got
INFO:spleeter:Downloading model archive https://github.com/deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 61, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.7/socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 976, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 308, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fc6ec13e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc6ec13e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/spleeter", line 8, in <module>
    sys.exit(entrypoint())
  File "/usr/local/lib/python3.7/site-packages/spleeter/__main__.py", line 54, in entrypoint
    main(sys.argv)
  File "/usr/local/lib/python3.7/site-packages/spleeter/__main__.py", line 46, in main
    entrypoint(arguments, params)
  File "/usr/local/lib/python3.7/site-packages/spleeter/commands/separate.py", line 45, in entrypoint
    synchronous=False
  File "/usr/local/lib/python3.7/site-packages/spleeter/separator.py", line 228, in separate_to_file
    sources = self.separate(waveform, audio_descriptor)
  File "/usr/local/lib/python3.7/site-packages/spleeter/separator.py", line 195, in separate
    return self._separate_librosa(waveform, audio_descriptor)
  File "/usr/local/lib/python3.7/site-packages/spleeter/separator.py", line 180, in _separate_librosa
    sess = self._get_session()
  File "/usr/local/lib/python3.7/site-packages/spleeter/separator.py", line 159, in _get_session
    latest_checkpoint = tf.train.latest_checkpoint(get_default_model_dir(self._params['model_dir']))
  File "/usr/local/lib/python3.7/site-packages/spleeter/utils/estimator.py", line 31, in get_default_model_dir
    return model_provider.get(model_dir)
  File "/usr/local/lib/python3.7/site-packages/spleeter/model/provider/__init__.py", line 67, in get
    model_directory)
  File "/usr/local/lib/python3.7/site-packages/spleeter/model/provider/github.py", line 97, in download
    with requests.get(url, stream=True) as response:
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc6ec13e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

error

Output

:~/Spleeter>  ./spleet 
INFO:spleeter:Downloading model archive https://github.com/deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 61, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.7/socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 976, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 308, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fc6ec13e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc6ec13e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/spleeter", line 8, in <module>
    sys.exit(entrypoint())
  File "/usr/local/lib/python3.7/site-packages/spleeter/__main__.py", line 54, in entrypoint
    main(sys.argv)
  File "/usr/local/lib/python3.7/site-packages/spleeter/__main__.py", line 46, in main
    entrypoint(arguments, params)
  File "/usr/local/lib/python3.7/site-packages/spleeter/commands/separate.py", line 45, in entrypoint
    synchronous=False
  File "/usr/local/lib/python3.7/site-packages/spleeter/separator.py", line 228, in separate_to_file
    sources = self.separate(waveform, audio_descriptor)
  File "/usr/local/lib/python3.7/site-packages/spleeter/separator.py", line 195, in separate
    return self._separate_librosa(waveform, audio_descriptor)
  File "/usr/local/lib/python3.7/site-packages/spleeter/separator.py", line 180, in _separate_librosa
    sess = self._get_session()
  File "/usr/local/lib/python3.7/site-packages/spleeter/separator.py", line 159, in _get_session
    latest_checkpoint = tf.train.latest_checkpoint(get_default_model_dir(self._params['model_dir']))
  File "/usr/local/lib/python3.7/site-packages/spleeter/utils/estimator.py", line 31, in get_default_model_dir
    return model_provider.get(model_dir)
  File "/usr/local/lib/python3.7/site-packages/spleeter/model/provider/__init__.py", line 67, in get
    model_directory)
  File "/usr/local/lib/python3.7/site-packages/spleeter/model/provider/github.py", line 97, in download
    with requests.get(url, stream=True) as response:
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc6ec13e5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

real    0m23.126s
user    0m0.006s
sys     0m0.012s

Environment

OS Linux
Installation type Docker
RAM available 48GiB
Hardware spec R7 5800, 48 GiB DDR4, NVMe

Additional context

I had the same issue with the 4stem version as well working locally on my Mac Mini.

A temporary workaround is to manually download and unzip the model files from https://github.com/deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz and place them in the pretrained_models directory.

richa-namballa avatar Mar 14 '25 22:03 richa-namballa