Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.92k stars 441 forks source link

Python worker exiting with code 143 #10479

Open gavin-aguiar opened 1 week ago

gavin-aguiar commented 1 week ago

Description:

We have started seeing a rise in the error message "python exited with code 143". We see this error when the worker is being deleted. The platform initiates a container delete command. It then sends a sigterm to the worker. Python worker responds with the 143 which is logged as an error message.

This is the python app logs with the sequence of messages leading to the error log. image

older logs from around 3 months ago, we see the same behavior but the only difference is the host is not logging any error message.

image

This error is reported for node apps too. I haven't seen a spike in error logs for other runtimes. And also it happens only for consumption. More details are on this teams channel.

Here are some starter kusto queries: https://wawswus.kusto.windows.net/wawsprod?query=H4sIAAAAAAAEAGWNQQrCMBRE9z3FkFWFLqy6rVAQV0WEeoFP%2bmmiaROSX6vg4a0bXbgbHvNmaudydZxGLdaPqfF9UqvshdlwZJwja5v4YgduhYaAPaj3edn9Kg3f2QFVhQ2%2b8MBC1iUYSlDhKcaP4IcV7jBbMdC%2bY5S7rVqMEP2Vtfx9FahDONHABVo%2fRc2fnAJpXiSh2zKwXmfZG%2f25bsXAAAAA&web=0

https://wawswus.kusto.windows.net/wawsprod?query=H4sIAAAAAAAEAI2OOwvCMBhFd8H%2fEDpVaCVN2jQWK%2fgEwUHUyS3UD62kSUlSRfDH%2bxpEujhdONzDvWMpfW%2fRqMKVWtmVPlqv1%2b3c0fUEBtDaQFFa2JUVbJ2oajTK0UE4cE%2fgE0ziEPOQ8B3GWRJllPVpwtKIpfseEurQ1od%2f6JTzp%2f79sNESlso6oQpAeY68cV2Hacon8ymdh4xyhkkU8TimbDAgNPa%2b6gouIF%2bjyYvVRp%2bhcK1XwacX%2fCwFaKsb886mqoS5BTNwopT2AZyao0UxAQAA&web=0

Investigative information

Please provide the following:

Repro steps

Provide the steps required to reproduce the problem:

Expected behavior

Provide a description of the expected behavior.

Actual behavior

Provide a description of the actual behavior observed.

Known workarounds

Provide a description of any known workarounds.

Related information

Provide any related information