ecotaxa / ecopart

A web application dedicated to particle data from UVP and LISST.
Other
0 stars 1 forks source link

Erreur 404 dans les logs quotidiens sur la machine de production #61

Open grololo06 opened 2 years ago

grololo06 commented 2 years ago

Pour constater le problème, aller voir le fichier/home/ecopart/DailyTask.out sur la machine de production.

La trace python suivante s'y trouve, répétée chaque jour (nuit):

[2022-06-24 01:15:19,537] ERROR in cron: Exception in Daily Task : (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'date': 'Fri, 24 Jun 2022 01:15:18 GMT', 'server': 'uvicorn', 'content-length': '23', 'content-type': 'application/json'})
HTTP response body: {"detail":"Not found."}

  File "/home/ecopart/git/py/to_back/ecotaxa_cli_py/rest.py", line 224, in request
    raise ApiException(http_resp=r)

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

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

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

  File "/home/ecopart/git/py/to_back/ecotaxa_cli_py/api_client.py", line 188, in __call_api
    raise e

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

  File "/home/ecopart/git/py/to_back/ecotaxa_cli_py/api/samples_api.py", line 374, in samples_search_with_http_info
    return self.api_client.call_api(

  File "/home/ecopart/git/py/to_back/ecotaxa_cli_py/api/samples_api.py", line 291, in samples_search
    return self.samples_search_with_http_info(project_ids, id_pattern, **kwargs)  # noqa: E501

  File "/home/ecopart/git/py/part_app/remote.py", line 291, in all_samples_for_project
    return sma.samples_search(str(projid), "")

  File "/home/ecopart/git/py/part_app/views/prj.py", line 199, in GlobalTaxoCompute
    samples_for_proj = ecotaxa_if.all_samples_for_project(ecotaxa_projid)  # La totale

  File "part_app/cron.py", line 28, in <module>
    GlobalTaxoCompute(ecotaxa_if, part_app.logger)
grololo06 commented 2 years ago

Une analyse sur la cause probable du souci a été envoyée.