Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too big task logs cannot be viewed #830

Closed
grololo06 opened this issue Jun 10, 2022 · 0 comments
Closed

Too big task logs cannot be viewed #830

grololo06 opened this issue Jun 10, 2022 · 0 comments
Labels

Comments

@grololo06
Copy link
Member

grololo06 commented Jun 10, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants