Project

General

Profile

Tâche #13006

Scénario #13002: Résolution de problèmes divers sur l'infocentre

Pb remontées infocentre erreur lors de l'exécution du script python

Added by Emmanuel IHRY over 8 years ago. Updated over 8 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
08/31/2015
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

sur le serveur 1-1465, erreur lors de l'exécution du script python

/etc/cron.d# /root/scripts/infocentre/infocentre.py -s stats.eole.i2 -d uploads -f /root/scripts/infocentre/variables/variables.ini
Traceback (most recent call last):
File "/root/scripts/infocentre/infocentre.py", line 101, in <module>
main()
File "/root/scripts/infocentre/infocentre.py", line 97, in main
stats = write_stats(conf_out)
File "/root/scripts/infocentre/infocentre.py", line 65, in write_stats
conf_out.write(ic)
File "/root/scripts/infocentre/SafeUTF8ConfigParser.py", line 12, in write
fp.write("{0} = {1}\n".format(key, unicode(value).replace('\n', '\n\t').encode('utf8')))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal not in range(128)
root@sbl-dom-pne-t1:/etc/cron.d#


Related issues

Copied from supervision-psin - Tâche #12517: Pb remontées infocentre erreur lors de l'exécution du script python Reporté 08/31/2015

Associated revisions

Revision ccfcaa6e (diff)
Added by Benjamin Bohard over 8 years ago

Présumer que les fichiers de configuration sont encodés en utf-8.

Ref #13006

History

#1 Updated by Benjamin Bohard over 8 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.5

Modifications dans les branches 2.4.x/master et 2.5.1/master

#2 Updated by Benjamin Bohard over 8 years ago

  • Status changed from Nouveau to Résolu

#3 Updated by Emmanuel IHRY over 8 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.5 to 0.0

Also available in: Atom PDF