update-searxng.rst 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. ===================
  2. SearXNG maintenance
  3. ===================
  4. .. sidebar:: further read
  5. - :ref:`toolboxing`
  6. - :ref:`uWSGI maintenance`
  7. .. contents:: Contents
  8. :depth: 2
  9. :local:
  10. :backlinks: entry
  11. .. _update searxng:
  12. How to update
  13. =============
  14. How to update depends on the :ref:`installation` method. If you have used the
  15. :ref:`installation scripts`, use the ``update`` command from the :ref:`searxng.sh`
  16. script.
  17. .. code:: sh
  18. sudo -H ./utils/searxng.sh instance update
  19. .. _inspect searxng:
  20. How to inspect & debug
  21. ======================
  22. How to debug depends on the :ref:`installation` method. If you have used the
  23. :ref:`installation scripts`, use the ``inspect`` command from the :ref:`searxng.sh`
  24. script.
  25. .. code:: sh
  26. sudo -H ./utils/searxng.sh instance inspect
  27. .. _migrate and stay tuned:
  28. Migrate and stay tuned!
  29. =======================
  30. .. sidebar:: info
  31. - :pull:`1332`
  32. - :pull:`456`
  33. - :pull:`A comment about rolling release <446#issuecomment-954730358>`
  34. SearXNG is a *rolling release*; each commit to the master branch is a release.
  35. SearXNG is growing rapidly, the services and opportunities are change every now
  36. and then, to name just a few:
  37. - Bot protection has been switched from filtron to SearXNG's :ref:`limiter
  38. <limiter>`, this requires a :ref:`Redis <settings redis>` database.
  39. - The image proxy morty is no longer needed, it has been replaced by the
  40. :ref:`image proxy <image_proxy>` from SearXNG.
  41. - To save bandwith :ref:`cache busting <static_use_hash>` has been implemented.
  42. To get in use, the ``static-expires`` needs to be set in the :ref:`uwsgi
  43. setup`.
  44. To stay tuned and get in use of the new features, instance maintainers have to
  45. update the SearXNG code regularly (see :ref:`update searxng`). As the above
  46. examples show, this is not always enough, sometimes services have to be set up
  47. or reconfigured and sometimes services that are no longer needed should be
  48. uninstalled.
  49. .. hint::
  50. First of all: SearXNG is installed by the script :ref:`searxng.sh`. If you
  51. have old filtron, morty or searx setup you should consider complete
  52. uninstall/reinstall.
  53. Here you will find a list of changes that affect the infrastructure. Please
  54. check to what extent it is necessary to update your installations:
  55. :pull:`1595`: ``[fix] uWSGI: increase buffer-size``
  56. Re-install uWSGI (:ref:`searxng.sh`) or fix your uWSGI ``searxng.ini``
  57. file manually.
  58. remove obsolete services
  59. ------------------------
  60. If your searx instance was installed *"Step by step"* or by the *"Installation
  61. scripts"*, you need to undo the installation procedure completely. If you have
  62. morty & filtron installed, it is recommended to uninstall these services also.
  63. In case of scripts, to uninstall use the scripts from the origin you installed
  64. searx from or try::
  65. $ sudo -H ./utils/filtron.sh remove all
  66. $ sudo -H ./utils/morty.sh remove all
  67. $ sudo -H ./utils/searx.sh remove all
  68. .. hint::
  69. If you are migrate from searx take into account that the ``.config.sh`` is no
  70. longer used.
  71. If you upgrade from searx or from before :pull:`1332` has been merged and you
  72. have filtron and/or morty installed, don't forget to remove HTTP sites.
  73. Apache::
  74. $ sudo -H ./utils/filtron.sh apache remove
  75. $ sudo -H ./utils/morty.sh apache remove
  76. nginx::
  77. $ sudo -H ./utils/filtron.sh nginx remove
  78. $ sudo -H ./utils/morty.sh nginx remove
  79. Check after Installation
  80. ------------------------
  81. Once you have done your installation, you can run a SearXNG *check* procedure,
  82. to see if there are some left overs. In this example there exists a *old*
  83. ``/etc/searx/settings.yml``::
  84. $ sudo -H ./utils/searxng.sh instance check
  85. SearXNG checks
  86. --------------
  87. ERROR: settings.yml in /etc/searx/ is deprecated, move file to folder /etc/searxng/
  88. INFO: [OK] (old) account 'searx' does not exists
  89. INFO: [OK] (old) account 'filtron' does not exists
  90. INFO: [OK] (old) account 'morty' does not exists
  91. ...
  92. INFO searx.redisdb : connected redis DB --> default