Tâche #10979
Distribution EOLE - Scénario #10982: Assistance aux utilisateurs (14-16)
Erreur lors de l'exécution des actions à distance depuis Zéphir
Description
Problème remonté par Tweety sur des amonecole 2.4.1 gérés par Zéphir:
mars 19 11:28:37 <tweety_> dans zephir_backend.alert.log, je n'ai que mars 19 11:28:40 <tweety_> Feb 8 06:24:56 tille zephir_backend: [-] #011 self._runCallbacks() mars 19 11:28:40 <tweety_> Feb 8 06:24:56 tille zephir_backend: [-] #011--- <exception caught here> --- mars 19 11:28:40 <tweety_> Feb 8 06:24:56 tille zephir_backend: [-] #011 File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 371, in _runCallbacks mars 19 11:28:40 <tweety_> Feb 8 06:24:56 tille zephir_backend: [-] #011 self.result = callback(self.result, *args, **kw) mars 19 11:28:40 <tweety_> Feb 8 06:24:56 tille zephir_backend: [-] #011 File "/usr/lib/python2.6/dist-packages/zephir/backend/uucp_rpc.py", line 1354, in _alerte2 mars 19 11:28:43 <tweety_> Feb 8 06:24:56 tille zephir_backend: [-] #011 msg +="""\n\nlog du %s : %s""" % (etat[1].encode(config.charset),etat[2].encode(config.charset)) mars 19 11:28:46 <tweety_> Feb 8 06:24:56 tille zephir_backend: [-] #011exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128) ... mars 19 10:59:33 <tweety_> j'ai tous mes serveur amonEcole 2.4.1 en alerte mars 19 10:59:58 <tweety_> 2015-03-09 17:27:39 RECONFIGURE ECHEC 'ascii' codec can't encode character u'\u011f' in position 75: ordinal not in range(128) mars 19 11:00:18 <tweety_> si je passe un reconfigure à la main ca passe mars 19 11:01:06 <tweety_> sur mes zephir qui ne sont pas sur zephir je n'ai pas rencontré le problème mars 19 11:02:36 <tweety_> <tweety_> sur mes serveurs qui ne sont pas sur zephir je n'ai pas rencontré le problème ... mars 19 11:18:41 <tweety_> obligé de faire un reconfigure sur le serveur pour que ca refonctionne
Après différents tests sur un serveur 2.4.1, il semble que le problème vienne de l'appel à reconfigure fait dans reconifgure.zephir (problème d'environnement) :
ret = system_code(['/usr/bin/at', 'now', '+', str(nb_heures), 'hours'], stdin=stdin, env={'PATH': '/usr/share/eole:/usr/share/eole/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'})
Associated revisions
Correction dans reconfigure (si appel depuis at)
- erreur unicode dans la copie des certificats
ref #10979 @3h
History
#1 Updated by Joël Cuissinat about 8 years ago
- Estimated time changed from 2.00 h to 4.00 h
- Parent task changed from #10666 to #10982
- Remaining (hours) changed from 2.0 to 4.0
#2 Updated by Bruno Boiget almost 8 years ago
- Assigned To set to Bruno Boiget
- % Done changed from 0 to 80
- Remaining (hours) changed from 4.0 to 1.0
le problème se situe dans creole/reconfigure.py : concaténation d'unicode et str dans un chemin (copie des certificats dans les conteneurs).
corrigé dans la branche 2.4.1/10979 et merge dans creole 2.4.2 et master (2.5)
à merger dans 2.4.1 après publication du 'hotfix' sur Maj-Auto -C
pas de paquets compilés pour l'instant
#3 Updated by force bleue almost 8 years ago
- Status changed from Nouveau to En cours
#4 Updated by force bleue almost 8 years ago
- Status changed from En cours to Résolu
#5 Updated by Joël Cuissinat almost 8 years ago
- % Done changed from 80 to 100
- Remaining (hours) changed from 1.0 to 0.15
#6 Updated by Joël Cuissinat almost 8 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) changed from 0.15 to 0.0
Modification présente dans toutes les branches >= 2.4.1 :
jojo-zotac:~/git/creole(2.4.1/master)$ git branch -r --contains 8d44a96e origin/2.4.1/10979 origin/2.4.1/master origin/2.4.2/master origin/HEAD -> origin/master origin/dist/eole/2.4.1/master origin/dist/eole/2.4.2/master origin/dist/eole/2.5/master origin/master