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
asked 9 months ago63 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions