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
gefragt vor 9 Monaten65 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen