Skip to content

Redis died with Connection refused after 48hs of running #1782

@eldraco

Description

@eldraco

Describe the bug
Slips running in an interface for 48hs, suddendly is dead

Ask me where the logs are

errors.log

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/timewindow_updater_thread/tw_updater.py", line 16, in timewindow_updater
    db.set_current_timewindow(cur_tw)
  File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 849, in set_current_timewindow
    return self.rdb.set_current_timewindow(*args, **kwargs)
  File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/profile_handler.py", line 1106, in set_current_timewindow
    self.r.set(self.constants.CURRENT_TIMEWINDOW, timewindow)
  File "/usr/local/lib/python3.10/dist-packages/redis/commands/core.py", line 2335, in set
    return self.execute_command("SET", *pieces, **options)
  File "/usr/local/lib/python3.10/dist-packages/redis/client.py", line 559, in execute_command
    return self._execute_command(*args, **options)
  File "/usr/local/lib/python3.10/dist-packages/redis/client.py", line 565, in _execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "/usr/local/lib/python3.10/dist-packages/redis/connection.py", line 1422, in get_connection
    connection.connect()
  File "/usr/local/lib/python3.10/dist-packages/redis/connection.py", line 363, in connect
    raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:32768. Connection refused.

Branch
sebas-fix-error-update

Environment (please complete the following information):

  • OS: linux
  • Are you running slips in docker or locally? docker
  • Docker version (if running slips in docker) Docker version 28.0.4, build b8034c0
  • Commit hash: ( git rev-parse --short HEAD )6565210ab5ad157a4c436c901d326bcc74ddaf5a

Sub-issues

Metadata

Metadata

Assignees

Labels

BugA bug that needs to be fixed

Type

Projects

Status

Working on it

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions