From b971167ced9623c038188ae7bf5a8085147bc35d Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 11 Nov 2022 21:58:32 +0100 Subject: move searx.shared.redisdb to searx.redisdb --- docs/admin/engines/settings.rst | 2 +- docs/admin/installation-uwsgi.rst | 4 ++-- docs/admin/update-searxng.rst | 3 +-- docs/src/searx.redisdb.rst | 8 ++++++++ docs/src/searx.shared.redisdb.rst | 8 -------- 5 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 docs/src/searx.redisdb.rst delete mode 100644 docs/src/searx.shared.redisdb.rst (limited to 'docs') diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst index 3ac992d3e..c747e3f43 100644 --- a/docs/admin/engines/settings.rst +++ b/docs/admin/engines/settings.rst @@ -294,7 +294,7 @@ Global Settings .. _Redis.from_url(url): https://redis-py.readthedocs.io/en/stable/connections.html#redis.client.Redis.from_url -A redis DB can be connected by an URL, in :py:obj:`searx.shared.redisdb` you +A redis DB can be connected by an URL, in :py:obj:`searx.redisdb` you will find a description to test your redis connection in SerXNG. When using sockets, don't forget to check the access rights on the socket:: diff --git a/docs/admin/installation-uwsgi.rst b/docs/admin/installation-uwsgi.rst index a6ea85608..e888d067e 100644 --- a/docs/admin/installation-uwsgi.rst +++ b/docs/admin/installation-uwsgi.rst @@ -239,8 +239,8 @@ For example on Fedora (RHEL): If you try to install a redis DB with socket communication and you want to connect to it from the SearXNG uWSGI, you will see a *Permission denied* in the log of your instance:: - ERROR:searx.shared.redis: [searxng (993)] can't connect redis DB ... - ERROR:searx.shared.redis: Error 13 connecting to unix socket: /usr/local/searxng-redis/run/redis.sock. Permission denied. + ERROR:searx.redisdb: [searxng (993)] can't connect redis DB ... + ERROR:searx.redisdb: Error 13 connecting to unix socket: /usr/local/searxng-redis/run/redis.sock. Permission denied. ERROR:searx.plugins.limiter: init limiter DB failed!!! Even if your *searxng* user of the uWSGI process is added to additional groups diff --git a/docs/admin/update-searxng.rst b/docs/admin/update-searxng.rst index 6c199638a..0d7b5e1b8 100644 --- a/docs/admin/update-searxng.rst +++ b/docs/admin/update-searxng.rst @@ -132,5 +132,4 @@ to see if there are some left overs. In this example there exists a *old* INFO: [OK] (old) account 'filtron' does not exists INFO: [OK] (old) account 'morty' does not exists ... - INFO searx.shared : Use shared_simple implementation - INFO searx.shared.redis : connected redis DB --> default + INFO searx.redisdb : connected redis DB --> default diff --git a/docs/src/searx.redisdb.rst b/docs/src/searx.redisdb.rst new file mode 100644 index 000000000..625378c91 --- /dev/null +++ b/docs/src/searx.redisdb.rst @@ -0,0 +1,8 @@ +.. _redis db: + +======== +Redis DB +======== + +.. automodule:: searx.redisdb + :members: diff --git a/docs/src/searx.shared.redisdb.rst b/docs/src/searx.shared.redisdb.rst deleted file mode 100644 index 265d87617..000000000 --- a/docs/src/searx.shared.redisdb.rst +++ /dev/null @@ -1,8 +0,0 @@ -.. _redis db: - -======== -Redis DB -======== - -.. automodule:: searx.shared.redisdb - :members: -- cgit v1.2.3 From 3050e2b6e875ccfb0162e83075802467c527c7fe Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 10 Dec 2022 10:06:54 +0100 Subject: [fix] documentation about update-searxng.rst --- docs/admin/update-searxng.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/admin/update-searxng.rst b/docs/admin/update-searxng.rst index 0d7b5e1b8..3ddb41b59 100644 --- a/docs/admin/update-searxng.rst +++ b/docs/admin/update-searxng.rst @@ -132,4 +132,5 @@ to see if there are some left overs. In this example there exists a *old* INFO: [OK] (old) account 'filtron' does not exists INFO: [OK] (old) account 'morty' does not exists ... - INFO searx.redisdb : connected redis DB --> default + INFO searx.redisdb : connecting to Redis db=0 path='/usr/local/searxng-redis/run/redis.sock' + INFO searx.redisdb : connected to Redis -- cgit v1.2.3