summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-11-11 21:58:32 +0100
committerAlexandre Flament <alex@al-f.net>2022-12-10 09:26:38 +0100
commitb971167ced9623c038188ae7bf5a8085147bc35d (patch)
treed82d7fb4bad9d67b048bce8985cc4a3f09268503 /utils
parent34e260f88f561cf26454fe72a10a3a403faf2ff3 (diff)
move searx.shared.redisdb to searx.redisdb
Diffstat (limited to 'utils')
-rwxr-xr-xutils/searxng.sh6
-rw-r--r--utils/searxng_check.py3
2 files changed, 4 insertions, 5 deletions
diff --git a/utils/searxng.sh b/utils/searxng.sh
index e7aa8ed1..aaa69cc5 100755
--- a/utils/searxng.sh
+++ b/utils/searxng.sh
@@ -295,7 +295,7 @@ In your instance, redis DB connector is configured at:
${redis_url}
"
- if searxng.instance.exec python -c "from searx.shared import redisdb; redisdb.initialize() or exit(42)"; then
+ if searxng.instance.exec python -c "from searx import redisdb; redisdb.initialize() or exit(42)"; then
info_msg "SearXNG instance is able to connect redis DB."
return
fi
@@ -317,8 +317,8 @@ In your instance, redis DB connector is configured at:
# fedora35 there is v2.0.20 installed --> no way to get additional
# groups on fedora's tyrant mode.
#
- # 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!!!
#
# $ ps -aef | grep '/usr/sbin/uwsgi --ini searxng.ini'
diff --git a/utils/searxng_check.py b/utils/searxng_check.py
index bd2d6028..dca4f1cd 100644
--- a/utils/searxng_check.py
+++ b/utils/searxng_check.py
@@ -26,8 +26,7 @@ if os.path.isfile(OLD_SETTING):
))
warnings.warn(msg, DeprecationWarning)
-from searx.shared import redisdb
-from searx import get_setting
+from searx import redisdb, get_setting
if not redisdb.initialize():
warnings.warn("can't connect to redis DB at: %s" % get_setting('redis.url'), RuntimeWarning, stacklevel=2)