update-searxng.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. - The image proxy morty is no longer needed, it has been replaced by the
  41. :ref:`image proxy <image_proxy>` from SearXNG.
  42. - To save bandwidth :ref:`cache busting <static_use_hash>` has been implemented.
  43. To get in use, the ``static-expires`` needs to be set in the :ref:`uwsgi
  44. setup`.
  45. To stay tuned and get in use of the new features, instance maintainers have to
  46. update the SearXNG code regularly (see :ref:`update searxng`). As the above
  47. examples show, this is not always enough, sometimes services have to be set up
  48. or reconfigured and sometimes services that are no longer needed should be
  49. uninstalled.
  50. .. hint::
  51. First of all: SearXNG is installed by the script :ref:`searxng.sh`. If you
  52. have old filtron, morty or searx setup you should consider complete
  53. uninstall/reinstall.
  54. Here you will find a list of changes that affect the infrastructure. Please
  55. check to what extent it is necessary to update your installations:
  56. :pull:`1595`: ``[fix] uWSGI: increase buffer-size``
  57. Re-install uWSGI (:ref:`searxng.sh`) or fix your uWSGI ``searxng.ini``
  58. file manually.
  59. remove obsolete services
  60. ------------------------
  61. If your searx instance was installed *"Step by step"* or by the *"Installation
  62. scripts"*, you need to undo the installation procedure completely. If you have
  63. morty & filtron installed, it is recommended to uninstall these services also.
  64. In case of scripts, to uninstall use the scripts from the origin you installed
  65. searx from or try::
  66. $ sudo -H ./utils/filtron.sh remove all
  67. $ sudo -H ./utils/morty.sh remove all
  68. $ sudo -H ./utils/searx.sh remove all
  69. .. hint::
  70. If you are migrate from searx take into account that the ``.config.sh`` is no
  71. longer used.
  72. If you upgrade from searx or from before :pull:`1332` has been merged and you
  73. have filtron and/or morty installed, don't forget to remove HTTP sites.
  74. Apache::
  75. $ sudo -H ./utils/filtron.sh apache remove
  76. $ sudo -H ./utils/morty.sh apache remove
  77. nginx::
  78. $ sudo -H ./utils/filtron.sh nginx remove
  79. $ sudo -H ./utils/morty.sh nginx remove
  80. Check after Installation
  81. ------------------------
  82. Once you have done your installation, you can run a SearXNG *check* procedure,
  83. to see if there are some left overs. In this example there exists a *old*
  84. ``/etc/searx/settings.yml``::
  85. $ sudo -H ./utils/searxng.sh instance check
  86. SearXNG checks
  87. --------------
  88. ERROR: settings.yml in /etc/searx/ is deprecated, move file to folder /etc/searxng/
  89. INFO: [OK] (old) account 'searx' does not exists
  90. INFO: [OK] (old) account 'filtron' does not exists
  91. INFO: [OK] (old) account 'morty' does not exists
  92. ...
  93. INFO searx.redisdb : connecting to Redis db=0 path='/usr/local/searxng-redis/run/redis.sock'
  94. INFO searx.redisdb : connected to Redis