update-searxng.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 ``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 ``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. remove obsolete services
  54. ------------------------
  55. If your searx instance was installed *"Step by step"* or by the *"Installation
  56. scripts"*, you need to undo the installation procedure completely. If you have
  57. morty & filtron installed, it is recommended to uninstall these services also.
  58. In case of scripts, to uninstall use the scripts from the origin you installed
  59. searx from or try::
  60. $ sudo -H ./utils/filtron.sh remove all
  61. $ sudo -H ./utils/morty.sh remove all
  62. $ sudo -H ./utils/searx.sh remove all
  63. .. hint::
  64. If you are migrate from searx take into account that the ``.config.sh`` is no
  65. longer used.
  66. Check after Installation
  67. ------------------------
  68. Once you have done your installation, you can run a SearXNG *check* procedure,
  69. to see if there are some left overs. In this example there exists a *old*
  70. ``/etc/searx/settings.yml``::
  71. $ sudo -H ./utils/searxng.sh instance check
  72. SearXNG checks
  73. --------------
  74. ERROR: settings.yml in /etc/searx/ is deprecated, move file to folder /etc/searxng/
  75. INFO: [OK] (old) account 'searx' does not exists
  76. INFO: [OK] (old) account 'filtron' does not exists
  77. INFO: [OK] (old) account 'morty' does not exists
  78. ...
  79. INFO searx.shared : Use shared_simple implementation
  80. INFO searx.shared.redis : connected redis DB --> default