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

Returned non-zore exit status 1 when run diagnostic.py script #142

Open hmnguyen1201 opened 4 years ago

hmnguyen1201 commented 4 years ago

Hi team,

Can you someone help me resolve this issue? I am trying to set up MISP dashboard for my MISP instance and having no luck so I tried the diagnostic.py to see where the problem is but the script fails as well.

`../diagnostic.py

✔ Virtual environment and packages ✔ Configuration ✔ File permission ✔ Redis ✔ Zmq Traceback (most recent call last): File "./diagnostic.py", line 439, in main() File "./diagnostic.py", line 435, in main start_diagnostic() File "./diagnostic.py", line 425, in start_diagnostic check_processes_status() File "./diagnostic.py", line 70, in wrapper_add_spinner result = func(spinner, *args, kwargs) File "./diagnostic.py", line 218, in check_processes_status universal_newlines=True File "/usr/lib/python3.6/subprocess.py", line 356, in check_output kwargs).stdout File "/usr/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['pgrep', '-laf', 'zmq_']' returned non-zero exit status 1.`

mokaddem commented 4 years ago

Hey, thanks for the feedback. I added a catch that should tell more about the error you are experiencing. My guess is that you are trying to access process information (using pgrep) from a user that do not have the permission. Could it be?

SteveClement commented 4 years ago

@hmnguyen1201 any news on this issue?