Issue in starting Datafari 4.0.2 - Elasticsearch Fail

68 views
Skip to first unread message

Gonch Gonch

unread,
Feb 19, 2018, 5:26:39 AM2/19/18
to Datafari
Hey everyone,

I want to install Datafari 4.0.2 (datafari.deb) in an environnement Ubuntu 14.04 LTS 64bits.
I follow the instruction to install the datafari, but when I execute the following command:

 "bash start-datafari.sh",

I receive always an error message from elasticsearch and datafari will be not started.



Can anybody help me to resolve this problem, please ?

Best Regards,
Auto Generated Inline Image 1

Olivier Tavard

unread,
May 22, 2018, 10:29:31 AM5/22/18
to Datafari
Hi,

Sorry for the delay.
Did you solve your problem ? It seems that the ES port is not reachable. Do you have a firewall installed on the machine ?

Best regards,

Olivier

Gonch Gonch

unread,
May 24, 2018, 10:43:58 AM5/24/18
to Datafari
Hello,

No problem.
No I don't have resolve the problem yet.
Here, it is only a Linux Ubuntu 16.04 LTS machine that has no firewall installed.

Thanks for the reply.

Best regards,

Olivier Tavard

unread,
Jun 1, 2018, 3:26:55 PM6/1/18
to Datafari
Hello,

Could you tell me what are the resources of the machine especially CPU and RAM ?
It seems that ES could not start in time. It can be either a service running on the same port as I thought before but it seems that not. So it can be either that ElasticSearch had not enough time to start and the start script exits.
You can try to edit manually the file /opt/datafari/bin/start-datafari.sh :
Lines 68 to 72 there is a code block related to ELK :

# Configure ELK
echo "Configure ELK"
cd $ELASTICSEARCH_HOME/bin
sudo -E su datafari -p -c "bash elasticsearch -p $ELASTICSEARCH_PID_FILE" &
sleep 10
#Test if Elasticsearch is up, if not then exit
    curl -s --fail -XGET http://localhost:9200/ || { echo "Fail to reach Elasticsearch on localhost:9200"; echo "Please check your network connection and, in case a proxy is configured, that a proxy exception exists for 'localhost' and '127.0.0.1' !"; sudo -E su datafari -p -c "kill $(cat $ELASTICSEARCH_PID_FILE)"; exit 1; }   

First you can try to increase the sleep value to 120 so change sleep 10 to
sleep 120

If it still does not work, you can comment the line :
curl -s --fail -XGET http://localhost:9200/ || { echo "Fail to reach Elasticsearch on localhost:9200"; echo "Please check your network connection and, in case a proxy is configured, that a proxy exception exists for 'localhost' and '127.0.0.1' !"; sudo -E su datafari -p -c "kill $(cat $ELASTICSEARCH_PID_FILE)"; exit 1; }  
Just add # before the line :
#curl -s --fail -XGET http://localhost:9200/ || { echo "Fail to reach Elasticsearch on localhost:9200"; echo "Please check your network connection and, in case a proxy is configured, that a proxy exception exists for 'localhost' and '127.0.0.1' !"; sudo -E su datafari -p -c "kill $(cat $ELASTICSEARCH_PID_FILE)"; exit 1; }  

We added another check mechanism in Datafari 4.1 to avoid this problem and be more verbose in the log.

Let me know if it solves your issue meantime.

Thanks,
Best regards,

Olivier Tavard
Reply all
Reply to author
Forward
0 new messages