Project

General

Profile

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

Added by Vincent Chavanon almost 4 years ago. Updated almost 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
PNE-SR - MTES - prestation cadoles 40 - 42
Start date:
10/14/2019
Due date:
% Done:

100%

Estimated time:
0.00 h
Remaining (hours):
0.0

Description

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

Associated revisions

Revision b7e7d252 (diff)
Added by Benjamin Bohard over 3 years ago

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

Revision adbc6f2e (diff)
Added by Benjamin Bohard over 3 years ago

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)

History

#1 Updated by Thierry Bertrand almost 4 years ago

  • Parent task changed from #29523 to #30656

#2 Updated by Benjamin Bohard over 3 years ago

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

#3 Updated by Benjamin Bohard over 3 years ago

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 Updated by Benjamin Bohard over 3 years ago

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 Updated by Benjamin Bohard over 3 years ago

  • Project changed from PNE-SR to Distribution EOLE
  • Status changed from Nouveau to En cours

#6 Updated by Benjamin Bohard over 3 years ago

  • Status changed from En cours to Résolu

#7 Updated by Vincent Chavanon almost 3 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 0 to 100
  • Estimated time set to 0.00 h
  • Remaining (hours) set to 0.0

Also available in: Atom PDF