misp-modules icon indicating copy to clipboard operation
misp-modules copied to clipboard

cache.py not picking up redis settings

Open elvidence opened this issue 1 year ago • 1 comments

misp-modules - INFO - Launch MISP modules server from current directory. misp-modules - WARNING - Helpers failed cache.py due to Redis not running or not installed. Helper will be disabled.

All Redis settings were setup correctly and working, inc in MISP /servers/serverSettings/MISP. Redis is located on another AWS instance. Connectivity ok. Setting REDIS_BACKEND='redis.cache.amazonaws.com', REDIS_PORT=6379 and REDIS_DATABASE=13 in /var/www/MISP/venv/bin/activate did not help.

Edited /etc/systemd/system/misp-modules.service directly and added in the [Service] section Environment="REDIS_BACKEND=redis.cache.amazonaws.com" Environment="REDIS_PORT=6379" Environment="REDIS_DATABASE=0"

run systemctl daemon-reload and systemctl restart misp-modules

no more warning. The issue has bene fixed by editing misp-modules.service

elvidence avatar Jun 16 '24 11:06 elvidence

Thanks for the feedback. We might need to update the documentation for the service configuration.

adulau avatar Jul 13 '24 07:07 adulau