Projet

Général

Profil

Tâche #30429

Scénario #30656: évolutions géomatique

eole-pgadmin : la modification du MdP du compte d'administration depuis l'ead3 ne fonctionne pas

Ajouté par Vincent Chavanon il y a plus de 5 ans. Mis à jour il y a plus de 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
PNE-SR - MTES - prestation cadoles 40 - 42
Début:
14/10/2019
Echéance:
% réalisé:

100%

Temps estimé:
0.00 h
Restant à faire (heures):
0.0

Description

à la modifictaion, l'erruer "JSON.parse: unexpected character at line 1 column 1 of the JSON data" remonte

Révisions associées

Révision b7e7d252 (diff)
Ajouté par Benjamin Bohard il y a plus de 5 ans

Add environment variable for locale and basic help strings.

  • salt minion is not aware of locale while click need this information
  • pgadmin-tool lacks basic help strings for interactive use.

Ref #30429

Révision adbc6f2e (diff)
Ajouté par Benjamin Bohard il y a plus de 5 ans

Add environment variable for locale and basic help strings.

  • salt minion is not aware of locale while click need this information
  • pgadmin-tool lacks basic help strings for interactive use.

Ref #30429

(cherry picked from commit b7e7d252e5db8a59a982b27b92691d2bafff28ce)

Historique

#1 Mis à jour par Thierry Bertrand il y a plus de 5 ans

  • Tâche parente changé de #29523 à #30656

#2 Mis à jour par Benjamin Bohard il y a plus de 5 ans

Il faut vérifier le passage du mot de passe en argument à la commande pour permettre l’emploi de caractères divers.

#3 Mis à jour par Benjamin Bohard il y a plus de 5 ans

debian10-psql.auth.test salt-minion-ead3[salt.state       ][ERROR   ] {'pid': 11831, 'retcode': 1, 'stdout': '', 'stderr': 'Traceback (most recent call last):\n  File "/usr/share/eole/sbin/pgadmin-tool", line 74, in <module>\n    cli()\n  File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__\n    return self.main(*args, **kwargs)\n  File "/usr/lib/python3/dist-packages/click/core.py", line 676, in main\n    _verify_python3_env()\n  File "/usr/lib/python3/dist-packages/click/_unicodefun.py", line 118, in _verify_python3_env\n    \'for mitigation steps.\' + extra)\nRuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment.  Consult http://click.pocoo.org/python3/for mitigation steps.\n\nThis system supports the C.UTF-8 locale which is recommended.\nYou might be able to resolve your issue by exporting the\nfollowing environment variables:\n\n    export LC_ALL=C.UTF-8\n    export LANG=C.UTF-8\n\nClick discovered that you exported a UTF-8 locale\nbut the locale system could not pick up from it because\nit does not exist.  The exported locale is "fr_FR.UTF-8" but it\nis not supported\nError in sys.excepthook:\nTraceback (most recent call last):\n  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 154, in apport_excepthook\n    os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), \'wb\') as f:\nFileNotFoundError: [Errno 2] No such file or directory: \'/var/crash/_usr_share_eole_sbin_pgadmin-tool.0.crash\'\n\nOriginal exception was:\nTraceback (most recent call last):\n  File "/usr/share/eole/sbin/pgadmin-tool", line 74, in <module>\n    cli()\n  File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__\n    return self.main(*args, **kwargs)\n  File "/usr/lib/python3/dist-packages/click/core.py", line 676, in main\n    _verify_python3_env()\n  File "/usr/lib/python3/dist-packages/click/_unicodefun.py", line 118, in _verify_python3_env\n    \'for mitigation steps.\' + extra)\nRuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment.  Consult http://click.pocoo.org/python3/for mitigation steps.\n\nThis system supports the C.UTF-8 locale which is recommended.\nYou might be able to resolve your issue by exporting the\nfollowing environment variables:\n\n    export LC_ALL=C.UTF-8\n    export LANG=C.UTF-8\n\nClick discovered that you exported a UTF-8 locale\nbut the locale system could not pick up from it because\nit does not exist.  The exported locale is "fr_FR.UTF-8" but it\nis not supported'}

#4 Mis à jour par Benjamin Bohard il y a plus de 5 ans

La commande pgadmin-tool utilise la bibliothèque click qui a besoin d’une variable d’environnement pour savoir l’encodage.
Le problème n’est pas détecté lorsqu’on lance salt-minion-ead3 dans la console puisque le service hérite alors des variables du shell.

#5 Mis à jour par Benjamin Bohard il y a plus de 5 ans

  • Projet changé de PNE-SR à Distribution EOLE
  • Statut changé de Nouveau à En cours

#6 Mis à jour par Benjamin Bohard il y a plus de 5 ans

  • Statut changé de En cours à Résolu

#7 Mis à jour par Vincent Chavanon il y a plus de 4 ans

  • Statut changé de Résolu à Fermé
  • % réalisé changé de 0 à 100
  • Temps estimé mis à 0.00 h
  • Restant à faire (heures) mis à 0.0

Formats disponibles : Atom PDF