Projet

Général

Profil

Anomalie #7734

creoled : si erreur interne sans return, pas de message d'erreur explicite

Ajouté par Emmanuel GARETTE il y a environ 10 ans. Mis à jour il y a environ 10 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Début:
Echéance:
04/04/2014
% réalisé:

100%

Temps estimé:
2.00 h
Distribution:
EOLE 2.4

Description

Exemple pour moi, s'il y une erreur de calcul durant "valid_mandatory", reconfigure met dit juste "HTTP error: 500".

Voici le message en mode débug :

reconfigure - HTTP error: 500
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/creole/reconfigure.py", line 608, in main
    valid_mandatory()
  File "/usr/lib/python2.7/dist-packages/creole/reconfigure.py", line 245, in valid_mandatory
    client.valid_mandatory()
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 425, in valid_mandatory
    return self.request('/valid_mandatory')
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 295, in request
    raise CreoleClientError(u"HTTP error: {0}".format(ret.status_int))
CreoleClientError: HTTP error: 500
root@scribe:~# 

C'est tout aussi peu clair.

Il faudrait au minimum demander à l'utilisateur d'aller voir dans le log de creoled.


Demandes liées

Lié à creole - Anomalie #7735: creoled : si erreur de calcul dans valid_mandatory => error 500 Fermé 04/04/2014

Révisions associées

Révision 647f1b42 (diff)
Ajouté par Emmanuel GARETTE il y a environ 10 ans

plus d'information en cas d'erreur HTTP dans le client (fixes #7734)

Révision 59ef7b97 (diff)
Ajouté par Emmanuel GARETTE il y a environ 10 ans

var_loader.py : utilisation de UsernameOption pour le type unix_user plutot que DomainnameOption (fixes #7734)

Historique

#1 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Echéance mis à 04/04/2014
  • Temps estimé mis à 2.00 h

#2 Mis à jour par Emmanuel GARETTE il y a environ 10 ans

  • Statut changé de Nouveau à Résolu
  • % réalisé changé de 0 à 100

#3 Mis à jour par Emmanuel GARETTE il y a environ 10 ans

Pour tester j'ai ajouter un raise dans valid_mandatory de creoled et j'ai testé avec "reconfigure"

    @cherrypy.expose
    @cherrypy.tools.json_out()
    def valid_mandatory(self):
        raise Exception('paf')

#4 Mis à jour par Emmanuel GARETTE il y a environ 10 ans

Appliqué par commit 59ef7b97f8e24b64b557dc51386f82b1d47fa089. (mauvaise référence, cf. #7557)

#5 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Assigné à mis à Emmanuel GARETTE

#6 Mis à jour par Emmanuel GARETTE il y a environ 10 ans

  • Statut changé de Résolu à Fermé
--------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                 Préparation pour reconfigure                                                                 
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Stop System V service creoled                                                                                                                         [  OK  ]
Start System V service creoled                                                                                                                        [  OK  ]
Erreur HTML 500, veuillez vous référer au journal d'événement de creoled (/var/log/creoled.log) pour avoir plus d'informations

Formats disponibles : Atom PDF