update-searxng.rst 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .. _searxng maintenance:
  2. ===================
  3. SearXNG maintenance
  4. ===================
  5. .. sidebar:: further read
  6. - :ref:`toolboxing`
  7. - :ref:`uWSGI maintenance`
  8. .. contents::
  9. :depth: 2
  10. :local:
  11. :backlinks: entry
  12. .. _update searxng:
  13. How to update
  14. =============
  15. How to update depends on the :ref:`installation` method. If you have used the
  16. :ref:`installation scripts`, use the ``update`` command from the :ref:`searxng.sh`
  17. script.
  18. .. code:: sh
  19. sudo -H ./utils/searxng.sh instance update
  20. .. _inspect searxng:
  21. How to inspect & debug
  22. ======================
  23. How to debug depends on the :ref:`installation` method. If you have used the
  24. :ref:`installation scripts`, use the ``inspect`` command from the :ref:`searxng.sh`
  25. script.
  26. .. code:: sh
  27. sudo -H ./utils/searxng.sh instance inspect
  28. .. _migrate and stay tuned:
  29. Migrate and stay tuned!
  30. =======================
  31. .. sidebar:: info
  32. - :pull:`1332`
  33. - :pull:`456`
  34. - :pull:`A comment about rolling release <446#issuecomment-954730358>`
  35. SearXNG is a *rolling release*; each commit to the master branch is a release.
  36. SearXNG is growing rapidly, the services and opportunities are change every now
  37. and then, to name just a few:
  38. - Bot protection has been switched from filtron to SearXNG's :ref:`limiter
  39. <limiter>`, this requires a :ref:`Redis <settings redis>` database.
  40. - To save bandwidth :ref:`cache busting <static_use_hash>` has been implemented.
  41. To get in use, the ``static-expires`` needs to be set in the :ref:`uwsgi
  42. setup`.
  43. To stay tuned and get in use of the new features, instance maintainers have to
  44. update the SearXNG code regularly (see :ref:`update searxng`). As the above
  45. examples show, this is not always enough, sometimes services have to be set up
  46. or reconfigured and sometimes services that are no longer needed should be
  47. uninstalled.
  48. Here you will find a list of changes that affect the infrastructure. Please
  49. check to what extent it is necessary to update your installations:
  50. :pull:`1595`: ``[fix] uWSGI: increase buffer-size``
  51. Re-install uWSGI (:ref:`searxng.sh`) or fix your uWSGI ``searxng.ini``
  52. file manually.
  53. Check after Installation
  54. ------------------------
  55. Once you have done your installation, you can run a SearXNG *check* procedure,
  56. to see if there are some left overs. In this example there exists a *old*
  57. ``/etc/searx/settings.yml``::
  58. $ sudo -H ./utils/searxng.sh instance check
  59. SearXNG checks
  60. --------------
  61. ERROR: settings.yml in /etc/searx/ is deprecated, move file to folder /etc/searxng/
  62. ...
  63. INFO searx.redisdb : connecting to Redis db=0 path='/usr/local/searxng-redis/run/redis.sock'
  64. INFO searx.redisdb : connected to Redis