Flask socketIO application keeps rebooting randomly on Elastic bean stalk deployment

0

Hi,

I deployed flask application on Elastic bean stalk and it keeps rebooting in every few minutes. Below are logs.

2023-08-04T18:22:52.941+05:30	Aug 4 12:52:44 ip-172-31-6-222 web: [2023-08-04 12:52:44 +0000] [2948] [INFO] Starting gunicorn 21.2.0
2023-08-04T18:22:52.941+05:30	Aug 4 12:52:44 ip-172-31-6-222 web: [2023-08-04 12:52:44 +0000] [2948] [INFO] Listening at: http://127.0.0.1:8000 (2948)
2023-08-04T18:22:52.941+05:30	Aug 4 12:52:44 ip-172-31-6-222 web: [2023-08-04 12:52:44 +0000] [2948] [INFO] Using worker: gthread
2023-08-04T18:22:52.941+05:30
Aug  4 12:52:44 ip-172-31-6-222 web: [2023-08-04 12:52:44 +0000] [2984] [INFO] Booting worker with pid: 2984
Aug 4 12:52:44 ip-172-31-6-222 web: [2023-08-04 12:52:44 +0000] [2984] [INFO] Booting worker with pid: 2984
2023-08-04T18:22:52.941+05:30
Aug  4 12:52:46 ip-172-31-6-222 web: ERROR:aws_xray_sdk.core.context:cannot find the current segment/subsegment, please make sure you have a segment open
Aug 4 12:52:46 ip-172-31-6-222 web: ERROR:aws_xray_sdk.core.context:cannot find the current segment/subsegment, please make sure you have a segment open

I did use threading in code, and I am unable to understand what is wrong here which might cause it to reboot.

Deepti
已提問 9 個月前檢視次數 65 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南