dthonon / Client_API_VN

Export from VisioNature (Biolovision) web site to local postgresql database
GNU General Public License v3.0
3 stars 1 forks source link

Version 3.9.2 : ERROR - transfer_vn - The job Places_fb crashed #178

Closed dthonon closed 2 years ago

dthonon commented 2 years ago

In GitLab by @mgageo on Nov 6, 2021, 12:20

Bonjour,

Suite à une installation fraiche de l'api j'ai ces messages :
job "full_download_1 (trigger: date[2021-11-06 11:15:59 UTC], next run at: 2021-11-06 11:15:59 UTC)" raised an exception
Traceback (most recent call last):
File "/home/xfer38/VN_env/lib/python3.7/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/home/xfer38/VN_env/lib/python3.7/site-packages/export_vn/transfer_vn.py", line 413, in full_download_1
territorial_unit_ids=cfg.territorial_unit_ids,
File "/home/xfer38/VN_env/lib/python3.7/site-packages/export_vn/download_vn.py", line 867, in store
super().store()
File "/home/xfer38/VN_env/lib/python3.7/site-packages/export_vn/download_vn.py", line 159, in store
items_dict = self._api_instance.api_list(opt_params=opt_params)
File "/home/xfer38/VN_env/lib/python3.7/site-packages/biolovision/api.py", line 516, in api_list
return self._api_list(opt_params=h_params, optional_headers=h_headers)
File "/home/xfer38/VN_env/lib/python3.7/site-packages/biolovision/api.py", line 452, in _api_list
entities = self._url_get(params, self._ctrl, optional_headers=optional_headers)[
File "/home/xfer38/VN_env/lib/python3.7/site-packages/biolovision/api.py", line 416, in _url_get
raise MaxChunksError
biolovision.api.MaxChunksError
2021-11-06 12:16:43,061 - ERROR - transfer_vn - The job Places_fb crashed

dthonon commented 2 years ago

Bonjour Il faut augmenter le paramètre max_chunks dans le fichier de configuration YAML, car fb doit contenir beaucoup de lieux dits. Cordialement Daniel

... Le sam. 6 nov. 2021 à 12:20, Marc Gauthier (@mgageo) a écrit : > Marc Gauthier created an issue: #178 > > > Bonjour, > > Suite à une installation fraiche de l'api j'ai ces messages : job > "full_download_1 (trigger: date[2021-11-06 11:15:59 UTC], next run at: > 2021-11-06 11:15:59 UTC)" raised an exception Traceback (most recent call > last): File > "/home/xfer38/VN_env/lib/python3.7/site-packages/apscheduler/executors/base.py", > line 125, in run_job retval = job.func(*job.args, **job.kwargs) File > "/home/xfer38/VN_env/lib/python3.7/site-packages/export_vn/transfer_vn.py", > line 413, in full_download_1 territorial_unit_ids=cfg.territorial_unit_ids, > File > "/home/xfer38/VN_env/lib/python3.7/site-packages/export_vn/download_vn.py", > line 867, in store super().store() File > "/home/xfer38/VN_env/lib/python3.7/site-packages/export_vn/download_vn.py", > line 159, in store items_dict = > self._api_instance.api_list(opt_params=opt_params) File > "/home/xfer38/VN_env/lib/python3.7/site-packages/biolovision/api.py", line > 516, in api_list return self._api_list(opt_params=h_params, > optional_headers=h_headers) File > "/home/xfer38/VN_env/lib/python3.7/site-packages/biolovision/api.py", line > 452, in _api_list entities = self._url_get(params, self._ctrl, > optional_headers=optional_headers)[ File > "/home/xfer38/VN_env/lib/python3.7/site-packages/biolovision/api.py", line > 416, in _url_get raise MaxChunksError biolovision.api.MaxChunksError > 2021-11-06 12:16:43,061 - ERROR - transfer_vn - The job Places_fb crashed > > — > Reply to this email directly or view it on GitLab > . > You're receiving this email because of your account on framagit.org. If > you'd like to receive fewer emails, you can unsubscribe > > from this thread or adjust your notification settings. >
dthonon commented 2 years ago

In GitLab by @mgageo on Nov 6, 2021, 20:52

Je viens de passer à 1000 la valeur de max_chunks et c'est passé. C'est parti pour les observations (~ 4 heures).

dthonon commented 2 years ago

mentioned in commit 70286cad56141a46d03d7082a67f0390e7964269