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
preguntada hace 9 meses65 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas