Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect does not work after lost connection #60

Open
podliashanyk opened this issue May 31, 2024 · 1 comment
Open

Reconnect does not work after lost connection #60

podliashanyk opened this issue May 31, 2024 · 1 comment
Labels
bug Something isn't working howitz uncaught exception Subtype of bug

Comments

@podliashanyk
Copy link
Contributor

When losing connection to zinolib due to either NotConnectedError , LostConnectionError or BrokenPipeError, reconnect to the Zino1EventManager does not work as expected.

The reconnect seems to work since Zino1EventManager returns True for both is_connected and is_authenticated, yet none of the requests work.

3 possible scenarios have occurred, depending on the reconnect steps taken after the connection was lost:

  1. When attempting disconnect from the Zino1EventManager if the connection is still dangling, then reconfigure Zino1EventManager, then connect, then authenticate the current user. Seems to work, getting True for both is_connected and is_authenticated. All of the requests arter this reconnect are failing with:
  • either (most of the cases):
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 375, in _request
    self._sock.send(command)
BrokenPipeError: [Errno 32] Broken pipe

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 122, in poll_current_events
    current_app.event_manager.get_events()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 564, in get_events
    for event_id in self._event_adapter.get_event_ids(self.session.request):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 367, in get_event_ids
    return request.get_caseids()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 550, in get_caseids
    response = self._request(b"caseids")
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 377, in _request
    raise NotConnectedError(f'Lost connection to server: {e}') from e
zinolib.ritz.NotConnectedError: Lost connection to server: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 375, in _request
    self._sock.send(command)
BrokenPipeError: [Errno 32] Broken pipe

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 347, in poll_events
    poll_events_list = poll_current_events()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 131, in poll_current_events
    current_app.event_manager.get_events()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 564, in get_events
    for event_id in self._event_adapter.get_event_ids(self.session.request):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 367, in get_event_ids
    return request.get_caseids()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 550, in get_caseids
    response = self._request(b"caseids")
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 377, in _request
    raise NotConnectedError(f'Lost connection to server: {e}') from e
zinolib.ritz.NotConnectedError: Lost connection to server: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 2213, in __call__
    return self.wsgi_app(environ, start_response)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 2193, in wsgi_app
    response = self.handle_exception(e)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1348, in handle_user_exception
    return self.ensure_sync(handler)(e)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/error_handlers.py", line 86, in handle_lost_connection
    current_app.event_manager.disconnect()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 539, in disconnect
    self.session = self._session_adapter.close_session(self.session)
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 298, in close_session
    cls.close_push_channel()
TypeError: SessionAdapter.close_push_channel() missing 1 required positional argument: 'session'
  • or (happened once):
2024-05-30 16:07:55,292 ERROR howitz /Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/error_handlers.py:46:: Exception in /poll_events: list index out of range:
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 347, in poll_events
    poll_events_list = poll_current_events()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 122, in poll_current_events
    current_app.event_manager.get_events()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 566, in get_events
    event = self.create_event_from_id(event_id)
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 574, in create_event_from_id
    attrlist = self.rename_exception(self._event_adapter.get_attrlist, self.session.request, event_id)
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 508, in rename_exception
    return function(*args)
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 323, in get_attrlist
    return request.get_raw_attributes(event_id)
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 572, in get_raw_attributes
    response = self._request(cmd.encode("UTF-8"))
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 396, in _request
    header = (int(rawh[0]), rawh[1])
IndexError: list index out of range
2024-05-30 16:08:36,397 ERROR zinolib.controllers.zino1 /Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py:329:: "getattrs" is spewing garbage: ['77049', '157776', '157777', '159440', '159643', '162170', '162173', '163057', '163306', '163307', '167319', '167444', '167494', '167516', '168405', '169117', '169446', '170052', '170060', '170613', '170614', '170951', '170952', '170993', '171091', '171664', '172246', '172250', '172298', '172454', '172473', '173048', '173049', '173050', '173054', '173055', '173056', '173776', '174096', '174723', '174978', '174979', '174986', '174989', '176455', '176456', '176459', '176460', '176778', '176780', '176781', '176782', '176806', '176840', '176850', '176908', '176909', '176970', '176971', '176972', '176973', '176974', '176975', '176976', '176977', '176978', '176979', '176980', '176981', '176982', '176983', '176984', '176985', '176986', '176987', '176988', '176989', '176990', '176991', '176992', '176993', '176994', '176995', '176996', '176997', '176998', '176999', '177000', '177001', '177002', '177003', '177004', '177005', '177006', '177007', '177008', '177009', '177010', '177011', '177012', '177013', '177014']
2024-05-30 16:08:36,398 ERROR howitz /Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/error_handlers.py:46:: Exception in /poll_events: Zino 1 did not send event attributes, retry:
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 347, in poll_events
    poll_events_list = poll_current_events()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 122, in poll_current_events
    current_app.event_manager.get_events()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 566, in get_events
    event = self.create_event_from_id(event_id)
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 576, in create_event_from_id
    raise RetryError('Zino 1 did not send event attributes, retry')
zinolib.controllers.zino1.RetryError: Zino 1 did not send event attributes, retry
2024-05-30 16:08:44,934 ERROR zinolib.controllers.zino1 /Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py:329:: "getattrs" is spewing garbage: ['77049', '157776', '157777', '159440', '159643', '162170', '162173', '163057', '163306', '163307', '167319', '167444', '167494', '167516', '168405', '169117', '169446', '170052', '170060', '170613', '170614', '170951', '170952', '170993', '171091', '171664', '172246', '172250', '172298', '172454', '172473', '173048', '173049', '173050', '173054', '173055', '173056', '173776', '174096', '174723', '174978', '174979', '174986', '174989', '176455', '176456', '176459', '176460', '176778', '176780', '176781', '176782', '176806', '176840', '176850', '176908', '176909', '176970', '176971', '176972', '176973', '176974', '176975', '176976', '176977', '176978', '176979', '176980', '176981', '176982', '176983', '176984', '176985', '176986', '176987', '176988', '176989', '176990', '176991', '176992', '176993', '176994', '176995', '176996', '176997', '176998', '176999', '177000', '177001', '177002', '177003', '177004', '177005', '177006', '177007', '177008', '177009', '177010', '177011', '177012', '177013', '177014']
2024-05-30 16:08:44,935 ERROR howitz /Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py:256:: RetryError when fetching event details Zino 1 did not send event attributes, retry
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 253, in get_event_details
    event_attr = vars(current_app.event_manager.create_event_from_id(int(id)))
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 576, in create_event_from_id
    raise RetryError('Zino 1 did not send event attributes, retry')
zinolib.controllers.zino1.RetryError: Zino 1 did not send event attributes, retry
2024-05-30 16:08:44,935 ERROR howitz /Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/error_handlers.py:46:: Exception in /events/176991/expand_row: Zino 1 did not send event attributes, retry:
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 364, in expand_event_row
    event_attr, event_logs, event_history, event_msgs = get_event_details(event_id)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 253, in get_event_details
    event_attr = vars(current_app.event_manager.create_event_from_id(int(id)))
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 576, in create_event_from_id
    raise RetryError('Zino 1 did not send event attributes, retry')
zinolib.controllers.zino1.RetryError: Zino 1 did not send event attributes, retry
2024-05-30 16:08:48,361 ERROR zinolib.controllers.zino1 /Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/utils.py:77:: "parse_response" failed with: args=(sensitive info removed, see logs,) kwargs={}
Zino 1 did not send a log, retry
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 479, in parse_response
    timestamp = int(timestamp)
ValueError: invalid literal for int() with base 10: 'state:'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/utils.py", line 72, in wrapper
    result = function(*args, **kwargs)
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 481, in parse_response
    raise RetryError('Zino 1 did not send a log, retry') from e
zinolib.controllers.zino1.RetryError: Zino 1 did not send a log, retry
2024-05-30 16:08:48,374 ERROR howitz /Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/error_handlers.py:46:: Exception in /events/177012/expand_row: Zino 1 did not send a log, retry:
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 479, in parse_response
    timestamp = int(timestamp)
ValueError: invalid literal for int() with base 10: 'state:'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 364, in expand_event_row
    event_attr, event_logs, event_history, event_msgs = get_event_details(event_id)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 259, in get_event_details
    event_logs = current_app.event_manager.get_log_for_id(int(id))
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 624, in get_log_for_id
    parsed_log = self._log_adapter.parse_response(raw_log)
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/utils.py", line 72, in wrapper
    result = function(*args, **kwargs)
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 481, in parse_response
    raise RetryError('Zino 1 did not send a log, retry') from e
zinolib.controllers.zino1.RetryError: Zino 1 did not send a log, retry
2024-05-30 16:08:53,098 ERROR zinolib.controllers.zino1 /Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py:329:: "getattrs" is spewing garbage: ['77049', '157776', '157777', '159440', '159643', '162170', '162173', '163057', '163306', '163307', '167319', '167444', '167494', '167516', '168405', '169117', '169446', '170052', '170060', '170613', '170614', '170951', '170952', '170993', '171091', '171664', '172246', '172250', '172298', '172454', '172473', '173048', '173049', '173050', '173054', '173055', '173056', '173776', '174096', '174723', '174978', '174979', '174986', '174989', '176455', '176456', '176459', '176460', '176778', '176780', '176781', '176782', '176806', '176840', '176850', '176908', '176909', '176970', '176971', '176972', '176973', '176974', '176975', '176976', '176977', '176978', '176979', '176980', '176981', '176982', '176983', '176984', '176985', '176986', '176987', '176988', '176989', '176990', '176991', '176992', '176993', '176994', '176995', '176996', '176997', '176998', '176999', '177000', '177001', '177002', '177003', '177004', '177005', '177006', '177007', '177008', '177009', '177010', '177011', '177012', '177013', '177014']
2024-05-30 16:08:53,099 ERROR howitz /Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py:256:: RetryError when fetching event details Zino 1 did not send event attributes, retry
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 253, in get_event_details
    event_attr = vars(current_app.event_manager.create_event_from_id(int(id)))
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 576, in create_event_from_id
    raise RetryError('Zino 1 did not send event attributes, retry')
zinolib.controllers.zino1.RetryError: Zino 1 did not send event attributes, retry
2024-05-30 16:08:53,099 ERROR howitz /Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/error_handlers.py:46:: Exception in /events/177012/expand_row: Zino 1 did not send event attributes, retry:
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 364, in expand_event_row
    event_attr, event_logs, event_history, event_msgs = get_event_details(event_id)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 253, in get_event_details
    event_attr = vars(current_app.event_manager.create_event_from_id(int(id)))
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 576, in create_event_from_id
    raise RetryError('Zino 1 did not send event attributes, retry')
zinolib.controllers.zino1.RetryError: Zino 1 did not send event attributes, retry
  1. When did not disconnect from the Zino1EventManager before attempting to reconfigure Zino1EventManager, then connect, then authenticate the current user. Seems to work, getting True for both is_connected and is_authenticated. All of the requests arter this reconnect are failing with:
ERROR howitz in get_current_events: Recurrent NotConnectedError Lost connection to server: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 375, in _request
    self._sock.send(command)
BrokenPipeError: [Errno 32] Broken pipe

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 91, in get_current_events
    current_app.event_manager.get_events()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 564, in get_events
    for event_id in self._event_adapter.get_event_ids(self.session.request):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 367, in get_event_ids
    return request.get_caseids()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 550, in get_caseids
    response = self._request(b"caseids")
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 377, in _request
    raise NotConnectedError(f'Lost connection to server: {e}') from e
zinolib.ritz.NotConnectedError: Lost connection to server: [Errno 32] Broken pipe
ERROR howitz in handle_lost_connection: Lost connection to Zino server Lost connection to server: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 375, in _request
    self._sock.send(command)
BrokenPipeError: [Errno 32] Broken pipe

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 340, in get_events
    table_events = get_current_events()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 96, in get_current_events
    raise notConnErr
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 91, in get_current_events
    current_app.event_manager.get_events()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 564, in get_events
    for event_id in self._event_adapter.get_event_ids(self.session.request):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 367, in get_event_ids
    return request.get_caseids()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 550, in get_caseids
    response = self._request(b"caseids")
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 377, in _request
    raise NotConnectedError(f'Lost connection to server: {e}') from e
zinolib.ritz.NotConnectedError: Lost connection to server: [Errno 32] Broken pipe
INFO howitz in load_user: User "ilopod" logged in
DEBUG howitz in handle_lost_connection: Reconnected to Zino True
DEBUG howitz in handle_lost_connection: Reauthenticated in Zino True
127.0.0.1 - - [31/May/2024 09:41:53] "GET /get_events HTTP/1.1" 200 -
ERROR howitz in poll_current_events: Recurrent NotConnectedError Lost connection to server: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 375, in _request
    self._sock.send(command)
BrokenPipeError: [Errno 32] Broken pipe

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 122, in poll_current_events
    current_app.event_manager.get_events()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 564, in get_events
    for event_id in self._event_adapter.get_event_ids(self.session.request):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 367, in get_event_ids
    return request.get_caseids()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 550, in get_caseids
    response = self._request(b"caseids")
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 377, in _request
    raise NotConnectedError(f'Lost connection to server: {e}') from e
zinolib.ritz.NotConnectedError: Lost connection to server: [Errno 32] Broken pipe
ERROR howitz in handle_lost_connection: Lost connection to Zino server Lost connection to server: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 375, in _request
    self._sock.send(command)
BrokenPipeError: [Errno 32] Broken pipe

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/howitzvenv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 347, in poll_events
    poll_events_list = poll_current_events()
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 127, in poll_current_events
    raise notConnErr
  File "/Users/ilopod/Desktop/zino-dev/Howitz/src/howitz/endpoints.py", line 122, in poll_current_events
    current_app.event_manager.get_events()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 564, in get_events
    for event_id in self._event_adapter.get_event_ids(self.session.request):
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/controllers/zino1.py", line 367, in get_event_ids
    return request.get_caseids()
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 550, in get_caseids
    response = self._request(b"caseids")
  File "/Users/ilopod/Desktop/zino-dev/zinolib/src/zinolib/ritz.py", line 377, in _request
    raise NotConnectedError(f'Lost connection to server: {e}') from e
zinolib.ritz.NotConnectedError: Lost connection to server: [Errno 32] Broken pipe
@podliashanyk podliashanyk added bug Something isn't working uncaught exception Subtype of bug howitz labels May 31, 2024
@podliashanyk
Copy link
Contributor Author

podliashanyk commented May 31, 2024

Related to Uninett/Howitz#94, #59, Uninett/Howitz#105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working howitz uncaught exception Subtype of bug
Projects
None yet
Development

No branches or pull requests

1 participant