ecotaxa / ecotaxa_front

Front end of the EcoTaxa application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Too big task logs cannot be viewed

grololo06 opened this issue · comments

Apparently the python front->python backend fails at some point, the below is front a quite big import job:


Error: <class 'urllib3.exceptions.MaxRetryError'> 
Description: HTTPConnectionPool(host='172.17.0.5', port=8000): Max retries exceeded with url: /jobs/57143/log (Caused by ProtocolError('Connection broken: IncompleteRead(54575104 bytes read, 3002 more expected)', IncompleteRead(54575104 bytes read, 3002 more expected))) 
Traceback:
  File "/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))

  File "/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(

  File "/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen
    return self.urlopen(

  File "/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen
    return self.urlopen(

  File "/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen
    return self.urlopen(

  File "/venv/lib/python3.8/site-packages/urllib3/poolmanager.py", line 376, in urlopen
    response = conn.urlopen(method, u.request_uri, **kw)

  File "/venv/lib/python3.8/site-packages/urllib3/request.py", line 96, in request_encode_url
    return self.urlopen(method, url, **extra_kw)

  File "/venv/lib/python3.8/site-packages/urllib3/request.py", line 74, in request
    return self.request_encode_url(

  File "/app/./to_back/ecotaxa_cli_py/rest.py", line 208, in request
    r = self.pool_manager.request(method, url,

  File "/app/./to_back/ecotaxa_cli_py/rest.py", line 230, in GET
    return self.request("GET", url,

  File "/app/./to_back/ecotaxa_cli_py/api_client.py", line 389, in request
    return self.rest_client.GET(url,

  File "/app/./to_back/ecotaxa_cli_py/api_client.py", line 181, in __call_api
    response_data = self.request(

  File "/app/./to_back/ecotaxa_cli_py/api_client.py", line 364, in call_api
    return self.__call_api(resource_path, method,

  File "/app/./to_back/ecotaxa_cli_py/api/jobs_api.py", line 479, in get_job_log_file_with_http_info
    return self.api_client.call_api(

  File "/app/./to_back/ecotaxa_cli_py/api/jobs_api.py", line 404, in get_job_log_file
    return self.get_job_log_file_with_http_info(job_id, **kwargs)  # noqa: E501

  File "/app/./appli/jobs/views.py", line 52, in jobDisplay
    rsp = japi.get_job_log_file(job_id=job_id)

  File "/venv/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)

  File "/venv/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()

Note the "IncompleteRead(54575104 bytes read, 3002 more expected)" at first line, it's not immediately visible due to line length and scroll.