lancer l'instance avec cubicweb-ctl pyramid ne marche plus
Erreur
quand on essaie de lancer l'application cubicweb par pyramid, on a une erreur liée aux arguments trusted_proxy_headers et clear_untrusted_proxy_headers de waitress
Versions
(sur l'instance cms de francearchives)
cubicweb 3.28.3
pyramid 1.10.2
(sur l'instance logilabfr)
cubicweb 3.28.2
pyramid 1.10.2
Détails
(sur l'instance cms de francearchives)
cubicweb@frarchives-edition-7599c65cdd-q8rng:~$ cubicweb-ctl pyramid -D instance
[...]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cubicweb/cwctl.py", line 180, in run
status = cmdmeth(appid) or 0
File "/usr/lib/python3/dist-packages/cubicweb/pyramid/pyramidctl.py", line 294, in pyramid_instance
clear_untrusted_proxy_headers=True)
File "/usr/lib/python3/dist-packages/waitress/__init__.py", line 11, in serve
server = _server(app, **kw)
File "/usr/lib/python3/dist-packages/waitress/server.py", line 49, in create_server
adj = Adjustments(**kw)
File "/usr/lib/python3/dist-packages/waitress/adjustments.py", line 378, in __init__
"The values trusted_proxy_headers and clear_untrusted_proxy_headers "
ValueError: The values trusted_proxy_headers and clear_untrusted_proxy_headers have no meaning without setting trusted_proxy. Cowardly refusing to continue.
instance instance not started: The values trusted_proxy_headers and clear_untrusted_proxy_headers have no meaning without setting trusted_proxy. Cowardly refusing to continue.
Process exited with 8
INFO - Reloading failed. Waiting for a file to change
sur l'instance logilabfr sur notre cluster ext
cubicweb@logilabfr-b94b6df96-84z8f:~$ cubicweb-ctl pyramid -D logilabfr
[...]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cubicweb/cwctl.py", line 180, in run
status = cmdmeth(appid) or 0
File "/usr/lib/python3/dist-packages/cubicweb/pyramid/pyramidctl.py", line 294, in pyramid_instance
clear_untrusted_proxy_headers=True)
File "/usr/lib/python3/dist-packages/waitress/__init__.py", line 11, in serve
server = _server(app, **kw)
File "/usr/lib/python3/dist-packages/waitress/server.py", line 49, in create_server
adj = Adjustments(**kw)
File "/usr/lib/python3/dist-packages/waitress/adjustments.py", line 378, in __init__
"The values trusted_proxy_headers and clear_untrusted_proxy_headers "
ValueError: The values trusted_proxy_headers and clear_untrusted_proxy_headers have no meaning without setting trusted_proxy. Cowardly refusing to continue.
instance logilabfr not started: The values trusted_proxy_headers and clear_untrusted_proxy_headers have no meaning without setting trusted_proxy. Cowardly refusing to continue.
Process exited with 8
INFO - Reloading failed. Waiting for a file to change
(à voir aussi discussion et commentaires sur le ticket https://forge.extranet.logilab.fr/francearchives/cubicweb-francearchives/-/issues/80)