nadhirfr / rf-ids

Machine Learning Based - Intrusion Detection System
32 stars 2 forks source link

Nothing is happening when hitting the start and stop button. #9

Open ashutoshkosti1919 opened 1 year ago

ashutoshkosti1919 commented 1 year ago

The page does't respond when i hit the start buton. The terminal shows the error message given below after pressing start button.

[27/Mar/2023 22:10:53] "GET / HTTP/1.1" 200 12048
Not Found: /ws/api/
[27/Mar/2023 22:10:54] "GET /ws/api/ HTTP/1.1" 404 2894
[27/Mar/2023 22:10:54,077] - Broken pipe from ('127.0.0.1', 49782)
[27/Mar/2023 22:11:01] "POST /service/ HTTP/1.1" 200 16
Task exception was never retrieved
future: <Task finished name='Task-5' coro=<Connection.disconnect() done, defined at C:\Users\hp\Downloads\rf-ids-master\rf-ids-master\mysite\env\lib\site-packages\redis\asyncio\connection.py:728> exception=RuntimeError('Event loop is closed')>
Traceback (most recent call last):
  File "C:\Users\hp\Downloads\rf-ids-master\rf-ids-master\mysite\env\lib\site-packages\redis\asyncio\connection.py", line 737, in disconnect
    self._writer.close()  # type: ignore[union-attr]
  File "C:\Python39\lib\asyncio\streams.py", line 353, in close
    return self._transport.close()
  File "C:\Python39\lib\asyncio\selector_events.py", line 700, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "C:\Python39\lib\asyncio\base_events.py", line 746, in call_soon
    self._check_closed()
  File "C:\Python39\lib\asyncio\base_events.py", line 510, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

The sFlow host has my ip address and sFlow port is 6343 and DETECTION_NETWORK = ['192.168.29.0/24']