Skip to content

Bug | python function auto restart crash in debugging mode #2968

@abd-shouman

Description

@abd-shouman

So a backgorund first, when you locally run an Azure Function (python) in debugging mode and make any changes it will crash with the following error

The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command .venv\Scripts\activate ; func host start" terminated with exit code: 1.

A more detailed output when a restart occurs

For detailed output, run func with --verbose flag.
[2021-09-16T08:02:56.358Z] Worker process started and initialized.
[2021-09-16T08:03:00.411Z] Host lock lease acquired by instance ID '0000000000000000000000001FFECD17'.
[2021-09-16T08:04:51.515Z] File 'C:\Program Files\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable.
[2021-09-16T08:04:51.616Z] File 'C:\Program Files\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable.
[2021-09-16T08:04:52.579Z] Worker process started and initialized.
The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command .venv\Scripts\activate ; func host start" terminated with exit code: 1.

The issue was first raised in #781 and after a long discussion and a series of mentions and redirections it seems that the issue to track this bug is #2576

However, last interaction was in Jan 13 by @dirkesquire in this comment #2576 (comment) and then the conversation was locked and limited to collabroators.

In a related issue @dirkesquire mentioned that it was a priority (Azure/azure-functions-host#3543 (comment)). Not sure if this is still the case or was there a workaround that rendered this low-priority.

P.S. I am aware of some workarounds, listed below, but all for Javascript/Node afaik
#781 (comment) and Azure/azure-functions-core-tools#1738 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions