Project

General

Profile

Tâche #33689

Scénario #33758: EOLE 2.9 : GenConfig doit être fonctionnel

revoir eoleflask en 2.9

Added by Emmanuel GARETTE over 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/17/2022
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

[2022-01-18 11:11:55 +0100] [43447] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 589, in spawn_worker
    worker.init_process()
  File "/usr/lib/python3/dist-packages/gunicorn/workers/geventlet.py", line 134, in init_process
    super().init_process()
  File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 134, in init_process
    self.load_wsgi()
  File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 146, in load_wsgi
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 58, in load
    return self.load_wsgiapp()
  File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python3/dist-packages/gunicorn/util.py", line 384, in import_app
    mod = importlib.import_module(module)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/eoleflask/application.py", line 20, in <module>
    from werkzeug.wsgi import DispatcherMiddleware
ImportError: cannot import name 'DispatcherMiddleware' from 'werkzeug.wsgi' (/usr/lib/python3/dist-packages/werkzeug/wsgi.py)

Associated revisions

Revision f640d7fc (diff)
Added by Matthieu Lamalle about 2 years ago

correction de l'appel a la lib werkzeug ref: #33689

History

#1 Updated by Emmanuel GARETTE over 2 years ago

Je propose de mettre à jour le fichier systemd comme suit :

# /lib/systemd/system/eoleflask.service
[Unit]
Description=Eole flask server
After=remote_fs.target syslog.target network.target

[Service]
Type=notify
ExecStart=/usr/bin/gunicorn -c /etc/eole/flask/eoleflask.py "eoleflask.application:run(config='eoleadmin')" 
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true

[Install]
WantedBy=multi-user.target

Dans le fichier /etc/eole/flask/eoleflask.py il faudrait également supprimer la ligne pid_file

#2 Updated by Emmanuel GARETTE over 2 years ago

  • Subject changed from eoleflask ne démarre pas to revoir eoleflask en 2.9

#3 Updated by Joël Cuissinat about 2 years ago

  • Parent task changed from #33643 to #33758

#4 Updated by Matthieu Lamalle about 2 years ago

  • Status changed from Nouveau to En cours

#5 Updated by Matthieu Lamalle about 2 years ago

  • Status changed from En cours to À valider

#6 Updated by Ludwig Seys about 2 years ago

  • Assigned To set to Matthieu Lamalle

#7 Updated by Ludwig Seys about 2 years ago

  • Status changed from À valider to Résolu

#8 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 0 to 100
  • Remaining (hours) set to 0.0

Also available in: Atom PDF