You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the redis server is listening over a unix domain socket you can use redis+unix:///path/to/sock or redis+unix:///path/to/socket?db=n (for database n).
Traceback (most recent call last):
File "/project/indico/home/.local/bin/indico", line 33, in <module>
sys.exit(load_entry_point('indico', 'console_scripts', 'indico')())
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/project/indico/home/.local/lib/python3.9/site-packages/flask/cli.py", line 579, in main
return super().main(*args, **kwargs)
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/project/indico/home/.local/lib/python3.9/site-packages/flask/cli.py", line 426, in decorator
with __ctx.ensure_object(ScriptInfo).load_app().app_context():
File "/project/indico/home/.local/lib/python3.9/site-packages/flask/cli.py", line 382, in load_app
app = self.create_app()
File "/project/indico/home/src/indico/indico/cli/util.py", line 26, in _create_app
return make_app()
File "/project/indico/home/src/indico/indico/web/flask/app.py", line 416, in make_app
limiter.init_app(app)
File "/project/indico/home/.local/lib/python3.9/site-packages/flask_limiter/extension.py", line 311, in init_app
storage_from_string(
File "/project/indico/home/.local/lib/python3.9/site-packages/limits/storage/__init__.py", line 62, in storage_from_string
raise ConfigurationError("unknown storage scheme : %s" % storage_string)
limits.errors.ConfigurationError: unknown storage scheme : unix:///project/indico/tmp/redis.sock?virtual_host=1
The other scheme causes:
Traceback (most recent call last):
File "/project/indico/home/.local/bin/indico", line 33, in <module>
sys.exit(load_entry_point('indico', 'console_scripts', 'indico')())
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/project/indico/home/.local/lib/python3.9/site-packages/flask/cli.py", line 579, in main
return super().main(*args, **kwargs)
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/pkg/python-3.9.12-0/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/project/indico/home/.local/lib/python3.9/site-packages/flask/cli.py", line 426, in decorator
with __ctx.ensure_object(ScriptInfo).load_app().app_context():
File "/project/indico/home/.local/lib/python3.9/site-packages/flask/cli.py", line 382, in load_app
app = self.create_app()
File "/project/indico/home/src/indico/indico/cli/util.py", line 26, in _create_app
return make_app()
File "/project/indico/home/src/indico/indico/web/flask/app.py", line 406, in make_app
cache.init_app(app)
File "/project/indico/home/.local/lib/python3.9/site-packages/flask_caching/__init__.py", line 141, in init_app
self._set_cache(app, config)
File "/project/indico/home/.local/lib/python3.9/site-packages/flask_caching/__init__.py", line 172, in _set_cache
app.extensions["cache"][self] = cache_factory(
File "/project/indico/home/src/indico/indico/core/cache.py", line 82, in factory
kwargs['host'] = redis_from_url(config['CACHE_REDIS_URL'], socket_timeout=1)
File "/project/indico/home/.local/lib/python3.9/site-packages/redis/utils.py", line 28, in from_url
return Redis.from_url(url, **kwargs)
File "/project/indico/home/.local/lib/python3.9/site-packages/redis/client.py", line 896, in from_url
connection_pool = ConnectionPool.from_url(url, **kwargs)
File "/project/indico/home/.local/lib/python3.9/site-packages/redis/connection.py", line 1271, in from_url
url_options = parse_url(url)
File "/project/indico/home/.local/lib/python3.9/site-packages/redis/connection.py", line 1208, in parse_url
raise ValueError(
ValueError: Redis URL must specify one of the following schemes (redis://, rediss://, unix://)
The text was updated successfully, but these errors were encountered:
I am trying to use Redis socket, but it looks like the Python components use different URL formats.
The Python package redis uses the schemes
redis://
,rediss://
, andunix://
.The Python library limits uses:
With
it fails:
The other scheme causes:
The text was updated successfully, but these errors were encountered: