MISP / misp-modules

Modules for expansion services, enrichment, import and export in MISP and other tools.
http://misp.github.io/misp-modules
GNU Affero General Public License v3.0
332 stars 233 forks source link

cache.py not picking up redis settings #668

Open elvidence opened 3 weeks ago

elvidence commented 3 weeks ago

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