Projet

Général

Profil

Development #29297

passer à uwsgi

Ajouté par Benjamin Dauvergne il y a plus de 5 ans. Mis à jour il y a plus de 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
20 décembre 2018
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Comme tout le monde #8910.


Fichiers


Demandes liées

Lié à Authentic 2 - Development #40372: python3: debian packagingFermé03 mars 2020

Actions
Lié à Authentic 2 - Bug #46568: migration uwsgi de l'init.dFermé11 septembre 2020

Actions

Révisions associées

Révision b31754c4 (diff)
Ajouté par Emmanuel Cazenave il y a plus de 3 ans

debian: use uwsgi to serve app (#29297)

Historique

#2

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

#3

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

  • Statut changé de Nouveau à En cours
  • Assigné à mis à Emmanuel Cazenave

Je suis devenu un expert uwsgi ces dernières 24 heures.

#4

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

Il va falloir que j'augmente mon niveau d'expertise, ça fait des bizarre erreurs d'import au démarrage :

juin 30 15:08:58 cazino-laptop uwsgi[30197]: *** Operational MODE: preforking ***
juin 30 15:08:58 cazino-laptop uwsgi[30197]: Traceback (most recent call last):
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/authentic2/wsgi.py", line 36, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.core.wsgi import get_wsgi_application
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 2, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.core.handlers.wsgi import WSGIHandler
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 8, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django import http
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/http/__init__.py", line 5, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.http.response import (
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/http/response.py", line 13, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.core.serializers.json import DjangoJSONEncoder
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.core.serializers.base import SerializerDoesNotExist
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/core/serializers/base.py", line 4, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.db import models
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/db/models/__init__.py", line 3, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.db.models.aggregates import *  # NOQA
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/db/models/aggregates.py", line 5, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.db.models.expressions import Func, Star
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/db/models/expressions.py", line 6, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.db.models import fields
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 14, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django import forms
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/forms/__init__.py", line 6, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.forms.boundfield import *  # NOQA
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/forms/boundfield.py", line 7, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.forms.widgets import Textarea, TextInput
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/forms/widgets.py", line 14, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.templatetags.static import static
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/templatetags/static.py", line 1, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django import template
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/template/__init__.py", line 44, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from .engine import Engine
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/template/engine.py", line 6, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from .base import Context, Template
juin 30 15:08:58 cazino-laptop uwsgi[30197]:   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 59, in <module>
juin 30 15:08:58 cazino-laptop uwsgi[30197]:     from django.template.context import (  # NOQA: imported for backwards compatibility
juin 30 15:08:58 cazino-laptop uwsgi[30197]: ImportError: No module named context
#5

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

  • Statut changé de En cours à Nouveau
  • Assigné à Emmanuel Cazenave supprimé

Finalement plus un préalable à #40372 qui part en gunicorn3, je laisse pour l'instant.

#7

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

Plus d'erreurs d'import, ça tourne.

#8

Mis à jour par Benjamin Dauvergne il y a plus de 3 ans

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

C'est normal le point à la fin de pytracebacker.sock ou c'est une typo qu'on reprend tous (vu dans uwsgi.ini de chrono aussi) ?

py-tracebacker = /run/authentic2-multitenant/py-tracebacker.sock.

Tout bon pour moi (ça me fait penser qu'il faut que je vire debconf&co du fichier control au passage).

#9

Mis à jour par Thomas Noël il y a plus de 3 ans

Benjamin Dauvergne a écrit :

C'est normal le point à la fin de pytracebacker.sock ou c'est une typo qu'on reprend tous (vu dans uwsgi.ini de chrono aussi) ?

C'est normal, uwsgi ajoute un numéro après le nom (le numéro du worker) et donc ça donne des py-tracebacker.sock.1, py-tracebacker.sock.2, etc

#10

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit b31754c4aeba61de73f69d0784afdc5b824ca3bd 
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Thu Sep 3 15:10:26 2020 +0200

    debian: use uwsgi to serve app (#29297)
#11

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

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

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

  • Lié à Bug #46568: migration uwsgi de l'init.d ajouté

Formats disponibles : Atom PDF