Сбои при запуске AzureFunction в контейнере Docker на процессоре M1.C#

Место общения программистов C#
Ответить
Гость
 Сбои при запуске AzureFunction в контейнере Docker на процессоре M1.

Сообщение Гость »


I'm trying to run an AzureFunction with .NET 8 in dotnet-isolated mode in a docker container on my M1 MacBook Air.

I was just upgrading a few weeks ago from .NET 6 to .NET 8 and at first everything seemed to be fine, but since a week or so I get these error messages inside the container:

2024-03-01 17:02:00 fail: Host.Results[0] 2024-03-01 17:02:00 Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: Functions.MailSendingFunction 2024-03-01 17:02:00 ---> Microsoft.Azure.WebJobs.Script.Workers.WorkerProcessExitException: dotnet exited with code 133 (0x85) 2024-03-01 17:02:00 ---> System.Exception: assertion failed [node != nullptr]: There is a hole in the VmTracker tree at address 0xffffffffffffffff 2024-03-01 17:02:00 --- End of inner exception stack trace --- 2024-03-01 17:02:00 at Microsoft.Azure.WebJobs.Script.Description.WorkerFunctionInvoker.InvokeCore(Object[] parameters, FunctionInvocationContext context) After that message the container stops with an error and I've no clue what to do about it.

The image I am using is: mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated8.0 Also, I've activated Use Rosetta for x86_64/amd64 emulation on Apple Silicon to run the image.

Nuget packages referenced in my project:

I was trying to update docker: no success Was trying to use the nightly builds of the docker image no success.

On windows the same AzureFunction works fine.


Источник: https://stackoverflow.com/questions/780 ... -processor
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»