ResQueue icon indicating copy to clipboard operation
ResQueue copied to clipboard

Error thrown in Docker Deployment on Azure App Service

Open stuart-sharein opened this issue 10 months ago • 2 comments

Hi I was hoping to get this up and running quickly on an azure app service but I'm getting the following error in the logs on startup:

2025-02-27T13:25:41.826447400Z fail: Microsoft.Extensions.Hosting.Internal.Host[11]
2025-02-27T13:25:41.826520045Z       Hosting failed to start
2025-02-27T13:25:41.826525998Z       System.NotSupportedException: Globalization Invariant Mode is not supported.
2025-02-27T13:25:41.826529466Z          at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
2025-02-27T13:25:41.826533152Z          at Microsoft.Data.SqlClient.SqlConnection.InternalOpenAsync(SqlConnectionOverrides overrides, CancellationToken cancellationToken)
2025-02-27T13:25:41.826536933Z       --- End of stack trace from previous location ---
2025-02-27T13:25:41.826548899Z          at MassTransit.SqlTransport.SqlServer.SqlServerDatabaseMigrator.CreateDatabaseIfNotExist(SqlTransportOptions options, CancellationToken cancellationToken) in /_/src/Transports/MassTransit.SqlTransport.SqlServer/SqlTransport/SqlServer/SqlServerDatabaseMigrator.cs:line 1907
2025-02-27T13:25:41.826553174Z          at MassTransit.SqlTransport.SqlServer.SqlServerDatabaseMigrator.CreateDatabaseIfNotExist(SqlTransportOptions options, CancellationToken cancellationToken) in /_/src/Transports/MassTransit.SqlTransport.SqlServer/SqlTransport/SqlServer/SqlServerDatabaseMigrator.cs:line 1932
2025-02-27T13:25:41.826557145Z          at MassTransit.SqlTransport.SqlServer.SqlServerDatabaseMigrator.CreateDatabase(SqlTransportOptions options, CancellationToken cancellationToken) in /_/src/Transports/MassTransit.SqlTransport.SqlServer/SqlTransport/SqlServer/SqlServerDatabaseMigrator.cs:line 1844
2025-02-27T13:25:41.826560953Z          at MassTransit.SqlTransport.SqlTransportMigrationHostedService.StartAsync(CancellationToken cancellationToken) in /_/src/MassTransit/SqlTransport/SqlTransport/SqlTransportMigrationHostedService.cs:line 33
2025-02-27T13:25:41.826564487Z          at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
2025-02-27T13:25:41.826568430Z          at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)

stuart-sharein avatar Feb 27 '25 13:02 stuart-sharein

Have created a new image with the following definition which resolves the issue:

FROM ghcr.io/filipbekic01/resqueue
USER root
RUN apk add icu-libs
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

stuart-sharein avatar Feb 27 '25 19:02 stuart-sharein

Thank you for the report, we will include this in our image.

miroljub1995 avatar Mar 04 '25 14:03 miroljub1995