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

[IMPORT] Variables dans geonature_config.toml #3341

Open
pierre56 opened this issue Jan 21, 2025 · 1 comment · May be fixed by #3344
Open

[IMPORT] Variables dans geonature_config.toml #3341

pierre56 opened this issue Jan 21, 2025 · 1 comment · May be fixed by #3344
Assignees
Labels
Milestone

Comments

@pierre56
Copy link
Contributor

Version
Version de GeoNature 2.15.2

Description du bug
Erreur lors de l'ajout de la configuration du module import dans la config de geonature

Comportement attendu
Prise en compte des variables de Import, que l'exemple dispo dans default_config.toml.example soit fonctionnel.

Comment reproduire
Dans geonature_config.toml, mettre la variable ENABLE_SYNTHESE_UUID_CHECK = TRUE

En complément, la mm variable est définie 2 fois
ENCODAGE = ["UTF-8"]
Image

Logs
Extrait du fichier /var/log/geonature.log dans le cas d’une erreur 500.


geonature.utils.errors.ConfigError: Error in the config file '/home/geonatureadmin/geonature/config/geonature_config.toml'. Fix the following:

	IMPORT:
		- {'ENABLE_SYNTHESE_UUID_CHECK': ['Unknown field.']}
[2025-01-21 15:59:59 +0100] [1701849] [INFO] Worker exiting (pid: 1701849)
[2025-01-21 15:59:59 +0100] [1701850] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/home/geonatureadmin/geonature/backend/geonature/utils/config.py", line 32, in <module>
    config_frontend = GnGeneralSchemaConf().load(config_toml, unknown=EXCLUDE)
  File "/home/geonatureadmin/geonature/backend/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 716, in load
    return self._do_load(
  File "/home/geonatureadmin/geonature/backend/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 903, in _do_load
    raise exc
marshmallow.exceptions.ValidationError: {'IMPORT': {'ENABLE_SYNTHESE_UUID_CHECK': ['Unknown field.']}}

@pierre56 pierre56 added the bug label Jan 21, 2025
@camillemonchicourt
Copy link
Member

On vient de fait un point sur ce paramètre ENABLE_SYNTHESE_UUID_CHECK et il est obsolète : PnX-SI/gn_module_import#459 (comment)

Il faut qu'on nettoie la doc et les fichiers d'exemple pour répercuter cela.

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

Successfully merging a pull request may close this issue.

3 participants