CRM contact search not working properly

Suggestions on Community Server Installation/Functionality
Post Reply
sanjaya
Posts: 6
Joined: Fri Nov 24, 2017 1:26 pm

CRM contact search not working properly

Post by sanjaya » Fri Oct 11, 2019 3:36 pm

we are running onlyoffice community server Version 10.0.4.959 on CentOS 7 using docker
the CRM search seems to be not working properly - it did not shows some contact which are already in the contacts.
Did anyone having similar issues with onlyoffice CRM ?

Andrew
Posts: 87
Joined: Mon Apr 01, 2019 1:09 pm

Re: CRM contact search not working properly

Post by Andrew » Thu Oct 24, 2019 7:08 am

Hello sanjaya,

Looks like it was an issue with insufficient operative memory available for Elasticsearch, solution for this:

1. Enter the Community Server container

Code: Select all

docker exec -it onlyoffice-community-server bash
2.

Code: Select all

service god stop
3.

Code: Select all

service onlyofficeIndex stop
4. Open the config /etc/elasticsearch/jvm.options and comment out the line

Code: Select all

#-XX:+HeapDumpOnOutOfMemoryError 
This parameter is responsible for spawning lots of java_pid files. These are memory dump files that are created each time elastic crashes when it is out of memory.

5. In the same config, you can also increase the amount of RAM dedicated to elastic. From our experience, the most optimal amount is 4 GB (default value is 1 GB)

Code: Select all

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms4g
-Xmx4g
6. Now you need to remove all created indexes.

Code: Select all

curl http://localhost:9200/_cat/indices
curl -X DELETE http://localhost:9200/mail_mail
curl -X DELETE http://localhost:9200/files_file

and all others...

Code: Select all

​mysql -h onlyoffice-mysql-server -u onlyoffice_user -ponlyoffice_pass -D onlyoffice 
delete from webstudio_index; 
exit; 
7.

Code: Select all

service onlyofficeIndex start
8.

Code: Select all

service elasticsearch restart
9.

Code: Select all

service god start
Wait for indexing process to complete.

Post Reply