I have Windows App Service in Azure (Docker image: mcr.microsoft.com/dotnet/sdk:5.0) with .NET 5 and I can't start container. Docker image is working correctly on my machine (Windows 10).
Log stream from App Service:
05/07/2021 11:02:33.454 INFO - Site: MYWebJob - Creating container image05/07/2021 11:02:33.465 INFO - Site: MYWebJob - Verifying container image and pull image if necesary05/07/2021 11:02:33.465 INFO - Site: MYWebJob - Pulling container image: mycontainers.azurecr.io/dev/mywebjob:latest using credentials.05/07/2021 11:02:33.465 INFO - Site: MYWebJob - Pulling from custom registry: https://mycontainers.azurecr.io05/07/2021 11:02:33.465 INFO - Site: MYWebJob - Pulling image using registry credentials
05/07/2021 11:02:33.565 INFO - Site: MYWebJob - Image: mycontainers.azurecr.io/dev/mywebjob:latestStatus: latest Pulling from dev/mywebjob
05/07/2021 11:02:33.574 INFO - Site: MYWebJob - Image: mycontainers.azurecr.io/dev/mywebjob:latestStatus: Digest: sha256:d76d66c8a380a7e8f71f8e157f3820674f51e97e1400cbe0775ecc6c3a02b269
05/07/2021 11:02:33.575 INFO - Site: MYWebJob - Image: mycontainers.azurecr.io/dev/mywebjob:latestStatus: Status: Image is up to date for mycontainers.azurecr.io/dev/mywebjob:latest
05/07/2021 11:02:33.623 INFO - Site: MYWebJob - Purging pending logs after stopping container05/07/2021 11:02:33.623 INFO - Site: MYWebJob - Attempting to stop container: . Site MYWebJob05/07/2021 11:02:33.631 INFO - Site: MYWebJob - Purging after container failed to start05/07/2021 11:02:33.631 ERROR - Site: MYWebJob - Unable to start container. Error message: Index was outside the bounds of the array.
2021-07-05 11:02:33 ~1MYWEBJOB GET / - 80 - 10.0.32.21 AlwaysOn - - mywebjob.azurewebsites.net 200 0 0 2697 489 9
2021-07-05 11:02:33 MYWEBJOB GET / - 80 - 10.0.32.21 AlwaysOn ARRAffinity=2b87b1c25b5b9581cbfc4a0595c9550228d4534986743abaa523c8e4d524807d - MYWebJob 409 49 64 156398 759 316
Yes, my Release Pipeline Agent in Azure DevOps is set to
I'm pretty sure I do. The Configuration list in Azure:
They are (I have few of them) Web Jobs that are using Microsoft.Azure.WebJobs with TimerTrigger
@AdamStachowicz-8288 , Thank you for your response. Based on all the information shared, I believe the best course of action would be to open Microsoft Support Request on this.
Also, once you get the issue fixed, request you to reply back here on the thread with the resolution steps for the benefit of the community.
Any developments on this? I'm seeing the same issue. ("Unable to start container. Error message: Index was outside the bounds of the array.")
I'm using an Azure App Service to host a custom container I created. My container image is based on mcr.microsoft.com/dotnet/aspnet:5.0-windowsservercore-ltsc2019 and is stored in an Azure Container Registry. The application within the image is a web api application written in aspnetcore 5.0 .
I get the error even if I change the ENTRYPOINT to "cmd.exe", so I don't think it's my application.
If I pull the image from the registry and run it locally on my dev VM (running Win 10 Enterprise), it runs fine.
I've looked at the logs from the app service. It would be nice if the app service logged the docker commands it was using so I could try and reproduce the problem.
I created repository in GitHub: https://github.com/Saibamen/dotnet5-webjob-docker
Sign in to comment