OpenAdapt icon indicating copy to clipboard operation
OpenAdapt copied to clipboard

[Bug]: "copying a recording" appears to take a very long time when scrubbing from dashboard for the first time

Open abrichr opened this issue 8 months ago • 2 comments

Describe the bug

This has been stuck like this for a few minutes:

image
[1] 2024-06-09 00:34:54.289 | INFO     | openadapt.scrub:inner:158 - Scrubbing recording with id 47...
[1] 2024-06-09 00:34:54.289 | DEBUG    | openadapt.utils:set_start_time:648 - _start_time=1717907694.2894368 _start_perf_counter=881127.921157125
[1] 2024-06-09 00:35:02.332 | INFO     | openadapt.privacy.providers.presidio:<module>:26 - Downloading en_core_web_trf model...
[1] Collecting en-core-web-trf==3.7.3

[1]   WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x105362a40>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /github-production-release-asset-2e65be/84940268/2b153889-5cf4-4337-98c9-f1510173ed63?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240609%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240609T043502Z&X-Amz-Expires=300&X-Amz-Signature=3dc54c83faec73ada7252ea77b39b213ac468dc87b25cacc6f25c108c67a3bf2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=84940268&response-content-disposition=attachment%3B%20filename%3Den_core_web_trf-3.7.3-py3-none-any.whl&response-content-type=application%2Foctet-stream
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x105362ce0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /github-production-release-asset-2e65be/84940268/2b153889-5cf4-4337-98c9-f1510173ed63?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240609%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240609T043502Z&X-Amz-Expires=300&X-Amz-Signature=3dc54c83faec73ada7252ea77b39b213ac468dc87b25cacc6f25c108c67a3bf2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=84940268&response-content-disposition=attachment%3B%20filename%3Den_core_web_trf-3.7.3-py3-none-any.whl&response-content-type=application%2Foctet-stream
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x105362e90>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /github-production-release-asset-2e65be/84940268/2b153889-5cf4-4337-98c9-f1510173ed63?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240609%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240609T043502Z&X-Amz-Expires=300&X-Amz-Signature=3dc54c83faec73ada7252ea77b39b213ac468dc87b25cacc6f25c108c67a3bf2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=84940268&response-content-disposition=attachment%3B%20filename%3Den_core_web_trf-3.7.3-py3-none-any.whl&response-content-type=application%2Foctet-stream
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x105363040>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /github-production-release-asset-2e65be/84940268/2b153889-5cf4-4337-98c9-f1510173ed63?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240609%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240609T043502Z&X-Amz-Expires=300&X-Amz-Signature=3dc54c83faec73ada7252ea77b39b213ac468dc87b25cacc6f25c108c67a3bf2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=84940268&response-content-disposition=attachment%3B%20filename%3Den_core_web_trf-3.7.3-py3-none-any.whl&response-content-type=application%2Foctet-stream
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1053631f0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /github-production-release-asset-2e65be/84940268/2b153889-5cf4-4337-98c9-f1510173ed63?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240609%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240609T043502Z&X-Amz-Expires=300&X-Amz-Signature=3dc54c83faec73ada7252ea77b39b213ac468dc87b25cacc6f25c108c67a3bf2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=84940268&response-content-disposition=attachment%3B%20filename%3Den_core_web_trf-3.7.3-py3-none-any.whl&response-content-type=application%2Foctet-stream
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='objects.githubusercontent.com', port=443): Max retries exceeded with url: /github-production-release-asset-2e65be/84940268/2b153889-5cf4-4337-98c9-f1510173ed63?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240609%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240609T043502Z&X-Amz-Expires=300&X-Amz-Signature=3dc54c83faec73ada7252ea77b39b213ac468dc87b25cacc6f25c108c67a3bf2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=84940268&response-content-disposition=attachment%3B%20filename%3Den_core_web_trf-3.7.3-py3-none-any.whl&response-content-type=application%2Foctet-stream (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1053633a0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
[1] 

We should display something more informative to the user here.

At the very least, we should replace Copying recording first... with Copying recording (this may take a while if Spacy dependencies need to be downloaded on the first run)...

To Reproduce

In a fresh clone, first create a recording, then attempt to scrub it in the dashboard:

python -m openadapt.app.dashboard.run

abrichr avatar Jun 09 '24 04:06 abrichr