# Elasticsearch setup on ubuntu with SpiceCRM

**URL:** https://community.spicecrm.io/t/elasticsearch-setup-on-ubuntu-with-spicecrm/443
**Category:** SpiceUI
**Created:** [April 18, 2019, 1:43am UTC](https://community.spicecrm.io/t/elasticsearch-setup-on-ubuntu-with-spicecrm/443 "2019-04-18T01:43:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tornmarketing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/tornmarketing/32/195_2.png) [@tornmarketing](https://community.spicecrm.io/u/tornmarketing)
#### Post date: [April 18, 2019, 1:43am UTC](https://community.spicecrm.io/t/elasticsearch-setup-on-ubuntu-with-spicecrm/443/1 "2019-04-18T01:43:23Z")

</div>

[https://www.upwork.com/jobs/~01f67d4398362768c2](https://www.upwork.com/jobs/~01f67d4398362768c2)

## Elasticsearch setup on ubuntu with SpiceCRM

1. [DevOps Engineering](https://www.upwork.com/o/jobs/browse/?occupation_uid=1110580753140797440)

We have setup a staging environment and can not get a stable elasticsearch with our demo Spicecrm instance

Steps taken

> **[Installing SpiceCRM 2019.001.01 – a short tutorial](https://www.spicecrm.io/installing-spicecrm-2019-001-01-a-short-tutorial/)**
>
> Unless you consume SpiceCRM as a cloud offer the first step is to set up the system. In the following post I want to highlight the steps necessary. The post is split in two parts. The first part is…

Elasticsearch server crashes when data is indexed

Looking for a dev to stabilise and build a stable environment

---

<div class="post-metadata">

### Author: ![tornmarketing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/tornmarketing/32/195_2.png) [@tornmarketing](https://community.spicecrm.io/u/tornmarketing)
#### Post date: [April 18, 2019, 10:06am UTC](https://community.spicecrm.io/t/elasticsearch-setup-on-ubuntu-with-spicecrm/443/2 "2019-04-18T10:06:54Z")

</div>

Still suffering the issues with the Scheduler consuming all the CPU and memory which crashes the elasticsearch server

Secondly, Accounts and opportunities work but not contacts or other random records although indexed in elasticsearch.  
Contact records wont load completely, unable to create tasks and there is a error " Component **PiplContainer** Missing"

Opportunities Kanban view is still not showing correctly, only table list view

Have the issues raised earlier in the year been reviewed?

> [@Installation - UI Language Config - REST Call error somewhere... Action aborted](https://community.spicecrm.io/t/installation-ui-language-config-rest-call-error-somewhere-action-aborted/377/34):
>
> I got it working There were three key issues resolved via the below but there are still issues with KREST not loading the tabular pages such as opportunities, reports etc. Able to get the list not the tabular layouts Territories and Dashboards module is missing from KREST There is still the contact Component PiplContainer Missing The directory being read in this case,’./modules/Schedulers/ScheduledTasks’, does not exist in the code base. On linux environment the code was getting stuck i…

---

<div class="post-metadata">

### Author: ![tornmarketing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/tornmarketing/32/195_2.png) [@tornmarketing](https://community.spicecrm.io/u/tornmarketing)
#### Post date: [April 18, 2019, 10:11am UTC](https://community.spicecrm.io/t/elasticsearch-setup-on-ubuntu-with-spicecrm/443/3 "2019-04-18T10:11:08Z")

</div>

Do you have a working demo environment which an image of the server instance could be generated and shared?  
I feel myself and our developers are missing something with the configuration, can not get a stable environment following your user guides

---

<div class="post-metadata">

### Author: ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)
#### Post date: [April 21, 2019, 8:26pm UTC](https://community.spicecrm.io/t/elasticsearch-setup-on-ubuntu-with-spicecrm/443/4 "2019-04-21T20:26:27Z")

</div>

Is date.timezone set in php.ini?

Are file permissions set properly for modules/Schedulers/ and custom/modules/Schedulers (if customized)? Owner shall be webuser (www-data) and permission 0755

Infinite loop error in scheduler was corrected in SpiceCRM 2019.01.001

elasticsearch mapping improvements were made in SpiceCRM 2019.04.001. Use that version.

Package Loader in UI was also enhanced. Get Kanban view and other settings using Package Loader.

---

<div class="post-metadata">

### Author: ![tornmarketing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spicecrm.io/tornmarketing/32/195_2.png) [@tornmarketing](https://community.spicecrm.io/u/tornmarketing)
#### Post date: [April 23, 2019, 3:59pm UTC](https://community.spicecrm.io/t/elasticsearch-setup-on-ubuntu-with-spicecrm/443/5 "2019-04-23T15:59:53Z")

</div>

Installed with the latest release from Github

php.ini setup (I have confirmed this is the case over all variations of the php.ini file)

```
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = UTC

```

I have the whole directory setup with www-data user 755 permissions

I have installed all modules in the Package loader via the frontend

Can’t see anything else that I have missed from the video tutorial which seems a little more indepth than the written. But have stepped through all documentation I could find to see if there were any additional configuration. I don’t understand why Accounts would work and the other modules would not, I would have thought it would be the same logic

---

<div class="post-metadata">

### Author: ![maretval](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maretval](https://community.spicecrm.io/u/maretval)
#### Post date: [April 23, 2019, 8:13pm UTC](https://community.spicecrm.io/t/elasticsearch-setup-on-ubuntu-with-spicecrm/443/6 "2019-04-23T20:13:32Z")

</div>

OK.  
Would it be possible to have a screensharing meeting so that you can show what doesn’t work and we check elastic mappings?  
I use GoToMeeting.  
Please, contact me directly at [valerie.maret@twentyreason.com](mailto:valerie.maret@twentyreason.com)
