OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.42k stars 2.39k forks source link

Change language: Invariant Language #8448

Closed luis3199correia closed 3 years ago

luis3199correia commented 3 years ago

Describe the bug

When I'm setting up my Orchard, the "Change language" field only have "Invariant Language" options, and with that option I have an error in database field "An error occurred while initializing the datastore: Globalization Invariant Mode is not supported."

Expected behavior

image

Screenshots

image

image

image

I've pre configured my database setup with appsettings image

Skrypt commented 3 years ago

We need more details to repro the issue. Which OS are you using first?

luis3199correia commented 3 years ago

We need more details to repro the issue. Which OS are you using first?

I've Orchard deployed in a AKS pod.

PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" VERSION_CODENAME=stretch ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

luis3199correia commented 3 years ago

I found a system property that was not defined and should be.

motord commented 3 years ago

@luis3199correia I am having the same problem. What is this system property you are referring to and how should it be defined?

rickythefox commented 2 years ago

I found a system property that was not defined and should be.

Very helpful...

rickythefox commented 2 years ago

For me the problem appeared on the mcr.microsoft.com/dotnet/aspnet:5.0-alpine image and was solved by installing lcu-libs.

Change to Dockerfile:

RUN apk add --no-cache icu-libs
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false