Invalid local setting

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Invalid local setting

Hello,
I'm trying to install Alfresco Community Edition on my ubuntu 17 server and at one point of the installation I encounter the following error:

Erreur: Une erreur s'est produite.
initdb.bin: encoding mismatch
The encoding you selected (UTF8) and the encoding that the
selected locale uses (LATIN1) do not match.  This would lead to
misbehavior in various character string processing functions.
Rerun initdb.bin and either do not specify an encoding explicitly,
or choose a matching combination.
Pressez [Entr▒e] pour continuer

I am stuck at this level

6 Replies
Highlighted
Senior Member II

Re: Invalid local setting

I think there was an older thread... ah, yes: Cannot proceed alfresco installation because of encoding mismatch 

Maybe this helps.

if not, you can see your installed locales with

locale

or see all locales that could be used

locale -a

and create the missing with

sudo locale-gen fr_FR.UTF-8

for example.. Also check your default in /etc/default/locale

Highlighted
Member II

Re: Invalid local setting

Le 11/10/2017 15:27, mehe a écrit :

>

Alfresco Community

<https://community.alfresco.com/?et=watches.email.thread>

>

Re: Invalid local setting

reply from Martin Ehe

<https://community.alfresco.com/people/mehe?et=watches.email.thread>

in /Alfresco Content Services (ECM)/ - View the full discussion

<https://community.alfresco.com/message/822419-re-invalid-local-setting?commentID=822419&et=watches.email.thread#comment-822419>

>

Highlighted
Member II

Re: Invalid local setting

Here are my local settings installed:
LANG = en_US.UTF-8
LANGUAGE = en_US:
LC_CTYPE = "en_US.UTF-8"
LC_NUMERIC = "en_US.UTF-8"
LC_TIME = "en_US.UTF-8"
LC_COLLATE = "en_US.UTF-8"
LC_MONETARY = "en_US.UTF-8"
LC_MESSAGES = "en_US.UTF-8"
LC_PAPER = "en_US.UTF-8"
Lc_name = "en_US.UTF-8"
LC_ADDRESS = "en_US.UTF-8"
LC_TELEPHONE = "en_US.UTF-8"
LC_MEASUREMENT = "en_US.UTF-8"
LC_IDENTIFICATION = "en_US.UTF-8"
LC_ALL =
  Here are all my usable locale:
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US
en_US.iso88591
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX

I do not know if we need to add another one.

Senior Member II

Re: Invalid local setting

Do you use english or french as installation language? I'm asking because some of your error messages are in french and you haven't a fr_FR.UTF-8 locale.

What's the content of /etc/default/locale if this file exists?

Highlighted
Member II

Re: Invalid local setting

Le 12/10/2017 11:16, mehe a écrit :

Do you use english or french as installation language? I'm asking

because some of your error messages are in french and you haven't a

fr_FR.UTF-8 locale.

What's the content of /etc/default/locale if this file exists?

Here is the contents of / etc / default / locale

LANG = "en_US"

LANGUAGE = "en_US"

--

Cordialement

Fabrice Wilson NZANMENE

Highlighted
Customer

Re: Invalid local setting

Hi:

I think you should have something like in /etc/default/locale

LANG=en_US.UTF-8
LANGUAGE=en_US

Then these variables have to be obtained (or exported) on your user session (when installing alfresco). In a new terminal, you should type echo $LANG and having the previous values.

If you want to install / configure new locales in Ubuntu like french, you may check this:

Configure Locales in Ubuntu - Thomas-Krenn-Wiki 

Finally take into consideration that this $LANG variable is used, by java and Alfresco too, for getting the language of the spaces in Data Dictionary in some give language, when starting Alfresco for the first time.

Regards.

--C.