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

Python Script not working.

Open Hennard opened this issue 3 years ago • 4 comments

./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: [email protected]

Hennard avatar Dec 22 '21 10:12 Hennard

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

whoisroot avatar Dec 27 '21 16:12 whoisroot

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

Hennard avatar Dec 27 '21 19:12 Hennard

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.

whoisroot avatar Dec 27 '21 22:12 whoisroot

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

Hennard avatar Dec 30 '21 16:12 Hennard