ElasticCache Redis issue

Created on 30 April 2025, 15 days ago

This issue comes probably from upstream but I'm finding the following error when using this module with AWS/ElasticCache:

CrowdSec\RemediationEngine\CacheStorage\CacheStorageException: Error when creating Redis cache adapter:Invalid Redis DSN: parameter "dbindex" must be a number. in CrowdSec\RemediationEngine\CacheStorage\Redis->__construct() (line 35 of /opt/drupal/vendor/crowdsec/remediation-engine/src/CacheStorage/Redis.php).
CrowdSec\RemediationEngine\CacheStorage\Redis->__construct() (Line: 198)

Digging a bit more, I see that the preg_match from RedisTrait.php doesn't really expect a tls://? Maybe related https://github.com/predis/predis/issues/480 and https://github.com/predis/predis/issues/480

My endpoint is of the form tls://{ENV}.siteinstance-dev-aws-customer-{CUSTOMER}-001.{ID}.use1.cache.amazonaws.com

And the params calculated by RedisTrait:

{"scheme":"file","host":"tls","path":"\/\/{ENV}.siteinstance-dev-aws-customer-{CUSTOMER}-001.{ID}.use1.cache.amazonaws.com:6379"}

Has anybody successfully configured this? the rest of the Redis stuff works as expected.

💬 Support request
Status

Active

Version

1.1

Component

Code

Created by

🇪🇸Spain pcambra Asturies

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024