StamusNetworks / scirius

Scirius is a web application for Suricata ruleset management and threat hunting.
GNU General Public License v3.0
621 stars 148 forks source link

Scirius unable to start #165

Closed lukelee1987 closed 5 years ago

lukelee1987 commented 5 years ago

Hi all, my Scirius and suricata was working previously, but after coming back from my weekend, the terminals were accidentally closed and now I am not able to do so.

By sending this command : python manage.py runserver, the system prompted me with "ModuleNotFoundError : No module named 'django'. After that I went to check, and Django is already installed with version 1.11.15.

May I know what could be the root caused and how to I overcome it? Thanks

pevma commented 5 years ago

Is that the full output or there is more ?

lukelee1987 commented 5 years ago

Yes, that is the main error msg. Usually what could be the issue causing it? How can I verify it?

pevma commented 5 years ago

Which Scirius version is that ?

lukelee1987 commented 5 years ago

I just installed it recently, should be latest one ... Scirius 2.0

pevma commented 5 years ago

3.0.1 is the latest currently

lukelee1987 commented 5 years ago

Tmr I go and double check in office again.

lukelee1987 commented 5 years ago

Hi yes, its version 3.0.1.

lukelee1987 commented 5 years ago

This is the full error msg when I execute this command ./manage.py under scirius folder.

Traceback (most recent call last): File "./manage.py", line 8, in from django.core.management import execute_from_command_line ModuleNotFoundError : No module named 'django'

pevma commented 5 years ago

Could it be full path/folder location issue ? I can not see if it was running before and nothing has changed why would it not run again.

lukelee1987 commented 5 years ago

Scirius is currently located in the user account:

/home/username/scirius

pevma commented 5 years ago

What is your full command and full output?

lukelee1987 commented 5 years ago

image

I am trying to run Scirius service again. Now I cant even view the webpage.

pevma commented 5 years ago

I think you are just starting it on the command line (judging from the command above). If it fails like that above i think it is expected not to be able to open the webpage an you try /usr/bin/python manage.py?

lukelee1987 commented 5 years ago

I have these listed in /usr/bin, but dont have python (dont have such directory) Is it because they cant detect the python? image

pevma commented 5 years ago

What happens if you try /usr/bin/python manage.py in the same folder where you were previously starting scirius ?

pevma commented 5 years ago

Can you try - . bin/activate && python bin/manage.py in the same folder? (thanks Nico)

lukelee1987 commented 5 years ago

There is only one manage.py file which is located in /home/username/scirius/manage.py

pevma commented 5 years ago

ok - can you try the command i suggested please?

lukelee1987 commented 5 years ago

image Sorry, I missed that. These are the results I got.

pevma commented 5 years ago

I meant - cd to the folder where scirius is installed - as you showed here - https://github.com/StamusNetworks/scirius/issues/165#issuecomment-446500545

then execute - . bin/activate && python bin/manage.py

lukelee1987 commented 5 years ago

image This is the one, am I execute it correctly? my manage.py is under any "bin" folder". Will your command work.

pevma commented 5 years ago

what does ls -lh show?

lukelee1987 commented 5 years ago

image I tried . bin/activate && python manage.py also doesn't work.

lukelee1987 commented 5 years ago

image I think there are some errors ... is it caused by the nodeJS ?

pevma commented 5 years ago

I am not sure what it seems to be the issue but maybe a good idea to start with a clean install.

lukelee1987 commented 5 years ago

Problem resolved. It was due to the different version of the Python was run. It requires Python 2.7 to run, but previously i was running 3.xx. Thanks

pevma commented 5 years ago

Thank you for reporting back !

lukelee1987 commented 5 years ago

image I have some issue on the logstash. I am trying to test if logstash can receive the data.

pevma commented 5 years ago

Yes - it looks something is not correct with the conf format.

-- Regards, Peter Manev

On 17 Dec 2018, at 09:33, Sky Luke notifications@github.com wrote:

I have some issue on the logstash. I am trying to test if logstash can receive the data.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.