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

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

Open
grololo06 opened this issue Jun 24, 2022 · 1 comment
Open
Assignees

Comments

@grololo06
Copy link
Member

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
Copy link
Member Author

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

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

No branches or pull requests

2 participants