From 2b94fef7ec38e72acb8103634a55aabbf13e405d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Tiek=C3=B6tter?= Date: Sun, 31 Jul 2022 11:40:43 +0200 Subject: [PATCH 1/2] [fix] uWSGI: increase buffer-size Increase max size of a request, by default it is 4k [1]. 4096 as buffer-size is too small and will result in the preference urls not working. [1] https://uwsgi-docs.readthedocs.io/en/latest/Options.html#buffer-size --- utils/templates/etc/uwsgi/apps-archlinux/searxng.ini | 1 + utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket | 1 + utils/templates/etc/uwsgi/apps-available/searxng.ini | 1 + utils/templates/etc/uwsgi/apps-available/searxng.ini:socket | 1 + 4 files changed, 4 insertions(+) diff --git a/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini b/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini index 04c32c662..c5b6fb70c 100644 --- a/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini +++ b/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini @@ -70,6 +70,7 @@ pythonpath = ${SEARXNG_SRC} # Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html http = ${SEARXNG_INTERNAL_HTTP} +buffer-size = 8192 # uWSGI serves the static files and in settings.yml we use:: # diff --git a/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket b/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket index bbfaf63be..404936e7f 100644 --- a/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket +++ b/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket @@ -67,6 +67,7 @@ pythonpath = ${SEARXNG_SRC} # ----------------- socket = ${SEARXNG_UWSGI_SOCKET} +buffer-size = 8192 # uWSGI serves the static files and in settings.yml we use:: # diff --git a/utils/templates/etc/uwsgi/apps-available/searxng.ini b/utils/templates/etc/uwsgi/apps-available/searxng.ini index 5ea7d991a..10cfeb637 100644 --- a/utils/templates/etc/uwsgi/apps-available/searxng.ini +++ b/utils/templates/etc/uwsgi/apps-available/searxng.ini @@ -73,6 +73,7 @@ pythonpath = ${SEARXNG_SRC} # Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html http = ${SEARXNG_INTERNAL_HTTP} +buffer-size = 8192 # uWSGI serves the static files and in settings.yml we use:: # diff --git a/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket b/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket index 304ea3500..698529bf9 100644 --- a/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket +++ b/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket @@ -70,6 +70,7 @@ pythonpath = ${SEARXNG_SRC} # ----------------- socket = ${SEARXNG_UWSGI_SOCKET} +buffer-size = 8192 # uWSGI serves the static files and in settings.yml we use:: # From 48968bf46a992f9f7b51d5f8e5979cd6aa481122 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 31 Jul 2022 13:08:06 +0200 Subject: [PATCH 2/2] [doc] list of changes that affect the infrastructure Signed-off-by: Markus Heiser --- docs/admin/update-searxng.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/admin/update-searxng.rst b/docs/admin/update-searxng.rst index c2a34aeee..6c199638a 100644 --- a/docs/admin/update-searxng.rst +++ b/docs/admin/update-searxng.rst @@ -75,6 +75,13 @@ uninstalled. have old filtron, morty or searx setup you should consider complete uninstall/reinstall. +Here you will find a list of changes that affect the infrastructure. Please +check to what extent it is necessary to update your installations: + +:pull:`1595`: ``[fix] uWSGI: increase buffer-size`` + Re-install uWSGI (:ref:`searxng.sh`) or fix your uWSGI ``searxng.ini`` + file manually. + remove obsolete services ------------------------