clamsproject / app-swt-detection

CLAMS app for detecting scenes with text from video input
Apache License 2.0
1 stars 0 forks source link

ConnectionResetError when building the image #55

Closed marcverhagen closed 9 months ago

marcverhagen commented 10 months ago

Because

While installing the Python requirements with these lines in the container file

COPY requirements-app.txt .
RUN pip install --no-cache-dir -r /app/requirements-app.txt

I get this error on some machines:

ConnectionResetError: [Errno 104] Connection reset by peer

This has happened in the past as well and I fixed it then by doing individual pip installs, but at some point we reverted to using a requirements file. The issue also happened with older code that installed a model in a rather hacky way, but that one was fixed with the dl_backbone.py script.

Done when

No response

Additional context

No response

keighrim commented 10 months ago

This could be a server (pypi.org) side issue. Do you keep getting the same 102 error when trying again some time later?

Or it could be docker network (mis-)configuration or (old) pip exec version.

marcverhagen commented 10 months ago

I never tried to build the image repeatedly over an extended time period, so I would have to try that. But it may be the configuration or version issue. I will compare configurations because this issue never happens at work.

keighrim commented 9 months ago

closing as non-reproducible and stale.