MISP / misp-dashboard

A live dashboard for a real-time overview of threat intelligence from MISP instances
GNU Affero General Public License v3.0
192 stars 66 forks source link

Python Script not working. #160

Open Hennard opened 2 years ago

Hennard commented 2 years ago

./diagnostic.py Dependency not met. Either not in a virtualenv or dependency not installed. -Error: No module named 'redis'

Can run the redis module in python on the PC, but not with the script.

MISP version used: MISP_v2.4.151@6cf7d42-VMware.zip

whoisroot commented 2 years ago

Did you activate the venv (source DASHENV/bin/activate) before running?

Hennard commented 2 years ago

Hi, I run start_all.sh and all started up with no errors.

whoisroot commented 2 years ago

Yes, it sources the venv and start subprocesses using the venv, but to run the diagnostic.py you have to either source the venv for the current session or have the dependencies installed globaly.

Hennard commented 2 years ago

Hi, I restarted zmq, now getting this error:

host:/var/www/misp-dashboard$ ./diagnostic.py ✔ Virtual environment and packages ✔ Configuration ✔ File permission ✔ Redis ✔ Zmq ✔ Processes status: Both processes are running ✖ Subscriber status: zmq_subscriber seems not to be working. ➥ Consider restarting it: 1169 /var/www/misp-dashboard/DASHENV/bin/python ./zmq_subscriber.py -n misp1 -u tcp://localhost:50000