Projet

Général

Profil

Development #52655

you have to enable the uWSGI spooler to use @_spool decorator

Ajouté par Frédéric Péters il y a environ 3 ans. Mis à jour il y a environ 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
02 avril 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

File "/usr/lib/python3/dist-packages/authentic2/manager/user_views.py" in <module>
  45. from authentic2.utils import (

File "/usr/lib/python3/dist-packages/authentic2/utils/spooler.py" in <module>
  89. @tenantspool

File "/usr/lib/python3/dist-packages/authentic2/utils/spooler.py" in tenantspool
  77.     base_spooler = spool(pass_arguments=True)(spooler_func)

File "/usr/lib/python3/dist-packages/uwsgidecorators.py" in __init__
  122.                 "you have to enable the uWSGI spooler to use @%s decorator" % self.__class__.__name__)

Exception Type: Exception at /api/statistics/
Exception Value: you have to enable the uWSGI spooler to use @_spool decorator

Fichiers

Révisions associées

Révision 4af9b012 (diff)
Ajouté par Benjamin Dauvergne il y a environ 3 ans

debian: add --spooler option to uwsgi (#52655)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a environ 3 ans

  • Assigné à mis à Valentin Deniaud
#2

Mis à jour par Frédéric Péters il y a environ 3 ans

La partie packaging debian est visiblement incomplète; il faut créer le répertoire spooler dans le postinst et le mentionner dans l'unit systemd.

#3

Mis à jour par Benjamin Dauvergne il y a environ 3 ans

  • Assigné à changé de Valentin Deniaud à Benjamin Dauvergne
#4

Mis à jour par Benjamin Dauvergne il y a environ 3 ans

#5

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 3 ans

  • Statut changé de Solution proposée à En cours

Il manque aussi:

ExecStartPre=/bin/mkdir -p /var/lib/%p/spooler/%m/

dans authentic2-multitenant.service

et aussi corriger dans authentic2.service:

- ExecStartPre=/bin/mkdir -p /var/lib/authentic2/spooler/%m/
+ ExecStartPre=/bin/mkdir -p /var/lib/%p/spooler/%m/

#6

Mis à jour par Benjamin Dauvergne il y a environ 3 ans

voilà.

#7

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 3 ans

  • Statut changé de Solution proposée à Solution validée
#8

Mis à jour par Benjamin Dauvergne il y a environ 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit b817546b574357be00a6304bb478b6c8b8c525b8
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Fri Apr 2 10:25:32 2021 +0200

    debian: add --spooler option to uwsgi (#52655)
#9

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF