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회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인