cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot proceed alfresco installation because of encoding mismatch

ejandra
Champ in-the-making
Champ in-the-making

Hello , I am new to Alfresco and I am trying to install alfresco in my debian server(via ssh access) following the installation guide. However, the installation stops and shows me this error :

Error: There has been an error. 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.

I tried updating the locales of the server but still the issue exists. How do I fix this?

10 REPLIES 10

ycoulon
Employee
Employee

Hi,

Maybe your issue is related to [ACE-4162] Alfresco Enterprise full installer for Linux quits on RHEL7.1 - Alfresco JIRA 

Could you check all your locale ?

Yann

ejandra
Champ in-the-making
Champ in-the-making

I have updated my locale and chose the "All locales" option during the locales update both on the debian where I am doing the ssh access to my server and to the debian server as well. What do I try?

I have a problem with the workaround stated here:

As a workaround add the following in the /etc/locale.conf file, log out and then log in:
LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"

I cannot seem to find the file locale.conf in etc. I only have locale.gen. Or is it in a different directory in debian? I am sorry I am not very much adept in Linux.

ejandra
Champ in-the-making
Champ in-the-making

I have successfully installed it by doing the following steps:

1. Commented out the Send_ENV in /etc/ssh/ssh_config variable in the local machine and Accept_ENV in /etc/ssh/sshd_config variable in the server.

2. Edited /etc/locale.gen to uncomment en_US.UTF-8.

3. Ran locale-gen

4. Edited /etc/locale.conf and added LANG=en_US.UTF-8.

5. Successfully installed alfresco.

However, when I am trying to reach it via its URL which is <server ip address>:8081/share (I used 8081 as its port during the installation because 8080 is being used by another application), it shows me a 404 page. How do I fix this?

Can you attach the log file ?

Yann

ejandra
Champ in-the-making
Champ in-the-making

I have found the log file. Attached is the alfresco.log file.

ycoulon
Employee
Employee

Tomcat's log file is located under $ALF_HOME/tomcat/logs.

$ALF_HOME is the directory where you installed Alfresco.

Yann

ejandra
Champ in-the-making
Champ in-the-making

Here are the logs I found Sir in the directory you specified.

Here is the errors : 

"SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-apr-8081"]
java.lang.Exception: Socket bind failed: [98] Address already in use"

It seems that you more than one services trying to bind on 8081 port. Shutdown the service that use the port and restart Alfresco.

You can use the command "netstat" to achieve this.

Yann