You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Kevan Jahanshahi (Jira)" <ji...@apache.org> on 2021/07/23 10:18:00 UTC

[jira] [Closed] (UNOMI-479) Docker image will not start if elastic search needs authorization

     [ https://issues.apache.org/jira/browse/UNOMI-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevan Jahanshahi closed UNOMI-479.
----------------------------------

> Docker image will not start if elastic search needs authorization 
> ------------------------------------------------------------------
>
>                 Key: UNOMI-479
>                 URL: https://issues.apache.org/jira/browse/UNOMI-479
>             Project: Apache Unomi
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0, 1.5.5
>            Reporter: Risto
>            Priority: Major
>             Fix For: 1.5.7
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> This issue can not be saved properly before UNOMI-478 is solved.
>  
> Existing docker uses ./entrypoint.sh which will start unomi if elastic (ES) is available. It uses the env variable UNOMI_ELASTICSEARCH_ADDRESSES. That's why to connect to elastic with credentials you have to change it to UNOMI_ELASTICSEARCH_ADDRESSES=elastic:password@localhost:9200 inside docker-compose.yaml.
> But UNOMI_ELASTICSEARCH_ADDRESSES is used by unomi to connect to elastic search and must be equal to "hostname:port", otherwise unomi will not connect to ES.
>  
> So there is an environment variable conflict. The way to solve it consistent is to add new environment variables ELASTIC_USERNAME, ELASTIC_PASSWORD. Please see UNOMI-478 to understand why it is important.
>  
> Once new variables are added entrypoint.sh can must be modified to use it to properly connect to ES.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)