We have one mistral server and 8 mistral api processes are running on a host, when i restart the mistral
process everything runs fine for some hours.
After 8-10 hours mistral api process start getting restarted automatically with the below error in logs:
[2018-08-23 13:37:20 +0000] [3239] [INFO] Worker exiting (pid: 3239) [2018-08-23 13:37:21 +0000] [3390] [INFO] Booting worker with pid: 3390 [2018-08-23 13:38:49 +0000] [23257] [CRITICAL] WORKER TIMEOUT (pid:3348)
and either at the time of restarting or just after start of mistral-api all workflows execution failed with error code 1 and below is the stack trace:
2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier [req-052991f8-d388-484e-bd88-73c8f30f6788 - - - - -] Unable to process event for publisher "st2".: Exception: [a34f2cd0-75e2-4af0-9dc3-3d878e846345] Unable to publish event because st2 returned status code 401. { "faultstring": "Unauthorized" } 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier Traceback (most recent call last): 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier File "/opt/stackstorm/mistral/lib/python2.7/site-packages/mistral/notifiers/default_notifier.py", line 39, in notify 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier publisher.publish(ex_id, data, event, timestamp, **params) 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier File "/opt/stackstorm/mistral/lib/python2.7/site-packages/st2mistral/notifiers/stackstorm_notifier.py", line 297, in publish 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier func(ex_id, data, event, timestamp, **kwargs) 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier File "/opt/stackstorm/mistral/lib/python2.7/site-packages/st2mistral/notifiers/stackstorm_notifier.py", line 145, in on_workflow_status_update 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier 'status code %s. %s' % (root_id, resp.status_code, resp.text) 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier Exception: [a34f2cd0-75e2-4af0-9dc3-3d878e846345] Unable to publish event because st2 returned status code 401. { 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier "faultstring": "Unauthorized" 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier } 2018-08-23 18:39:15.289 23325 ERROR mistral.notifiers.default_notifier
Kindly help to find the cause of this.