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 home /var/www/misp-dashboard/DASHENV is not accessible #149

Closed quentinJE closed 3 years ago

quentinJE commented 3 years ago

Hi,

I'm installing a MISP instance on a Centos . Everything seems to works fine but i have an errors that are flooding the file /var/log/httpd/error_log :

here is the error :


Current thread 0x00007f32d1194880 (most recent call first):
[Mon Sep 07 09:24:26.159043 2020] [core:notice] [pid 1113] AH00052: child pid 2256 exit signal Aborted (6)
[Mon Sep 07 09:24:26.162639 2020] [wsgi:warn] [pid 2257] mod_wsgi (pid=2257): Python home /var/www/misp-dashboard/DASHENV is not accessible. Python interpreter may not be able to be initialized correctly. Verify the supplied path and access permissions on the directory.
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

however the virtualenv "DASHENV" seems ok and accessible :

[root@misp01 ~]# ll /var/www/misp-dashboard/DASHENV/
total 8
drwxrwx---. 2 apache apache 4096 Sep  7 07:18 bin
drwxrwx---. 3 apache apache   23 Sep  7 07:18 lib
drwxrwx---. 3 apache apache   23 Sep  7 07:18 lib64
-rw-rw----. 1 apache apache  202 Sep  7 07:18 pyvenv.cfg

Any idea to solve this error ? I probably made a mistake during the installation...

Thanks.

mokaddem commented 3 years ago

Hello, Could you try the manual installation of the misp-dashboard? Thanks!

quentinJE commented 3 years ago

Hi mokaddem,

Indeed, a manual installation has solved the issue. I probably forgot a step somewhere :)

Thanks for your help !