CYBEX-P / cybexp-cs

1 stars 0 forks source link

filt_misp: pymongo.errors.ServerSelectionTimeoutError: connection closed #6

Open qclassified opened 5 years ago

qclassified commented 5 years ago
ERROR:root:proc.analytics.filters.filt_misp.filt_misp.1: MISP Event id 79
Traceback (most recent call last):
  File "filt_misp.py", line 145, in filt_misp
    j = Misp(raw, backend)
  File "filt_misp.py", line 197, in __init__
    obj = [self.create_att_obj(copy.deepcopy(type_list), v)]
  File "filt_misp.py", line 227, in create_att_obj
    while type_list: previous = Object(type_list.pop(0), previous)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/tahoe-0.0.1-py3.5.egg/tahoe/instance.py", line 128, in __init__
    super().__init__(data, **kwargs)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/tahoe-0.0.1-py3.5.egg/tahoe/instance.py", line 86, in __init__
    super().__init__(**kwargs)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/tahoe-0.0.1-py3.5.egg/tahoe/instance.py", line 21, in __init__
    dup = self.duplicate()
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/tahoe-0.0.1-py3.5.egg/tahoe/instance.py", line 130, in duplicate
    def duplicate(self): return self.backend.find_one({"obj_type":self.obj_type, "_ref":self._ref})
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/tahoe-0.0.1-py3.5.egg/tahoe/backend.py", line 24, in find_one
    def find_one(self, query, projection={"_id" : 0}): return self.coll.find_one(query, projection)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/collection.py", line 1262, in find_one
    for result in cursor.limit(-1):
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/cursor.py", line 1189, in next
    if len(self.__data) or self._refresh():
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/cursor.py", line 1087, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/mongo_client.py", line 1563, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/mongo_client.py", line 1516, in __start_session
    server_session = self._get_server_session()
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/mongo_client.py", line 1549, in _get_server_session
    return self._topology.get_server_session()
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/topology.py", line 427, in get_server_session
    None)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/topology.py", line 199, in _select_servers_loop
    self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: connection closed
qclassified commented 5 years ago
ERROR:root:proc.analytics.filters.filt_misp.filt_misp.1: MISP Event id 214
Traceback (most recent call last):
  File "filt_misp.py", line 145, in filt_misp
    j = Misp(raw, backend)
  File "filt_misp.py", line 185, in __init__
    comment = MispAttribute('comment', att['comment'])
  File "filt_misp.py", line 161, in __init__
    super().__init__(alias = _ALIAS.get(args[0],[]), *args, **kwargs)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/tahoe-0.0.1-py3.5.egg/tahoe/instance.py", line 142, in __init__
    super().__init__(**kwargs)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/tahoe-0.0.1-py3.5.egg/tahoe/instance.py", line 21, in __init__
    dup = self.duplicate()
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/tahoe-0.0.1-py3.5.egg/tahoe/instance.py", line 158, in duplicate
    return self.backend.find_one(q)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/tahoe-0.0.1-py3.5.egg/tahoe/backend.py", line 24, in find_one
    def find_one(self, query, projection={"_id" : 0}): return self.coll.find_one(query, projection)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/collection.py", line 1262, in find_one
    for result in cursor.limit(-1):
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/cursor.py", line 1189, in next
    if len(self.__data) or self._refresh():
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/cursor.py", line 1087, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/mongo_client.py", line 1563, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/mongo_client.py", line 1516, in __start_session
    server_session = self._get_server_session()
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/mongo_client.py", line 1549, in _get_server_session
    return self._topology.get_server_session()
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/topology.py", line 427, in get_server_session
    None)
  File "/home/fsadique/.virtualenvs/cybexp/lib/python3.5/site-packages/pymongo/topology.py", line 199, in _select_servers_loop
    self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: connection closed