Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elasticsearch Bindexception cannot assign requested address

I am trying to start my elasticsearch node and I am getting the following error

Exception in thread "main" BindTransportException[Failed to bind to [9300-9400]]; nested: ChannelException[Failed to bind to: /192.168.0.1:9400]; nested: BindException[Cannot assign requested address];
Likely root cause: java.net.BindException: Cannot assign requested address

I am not incredibly linux savvy but I googled how to check if a process is using a certain port and found the following

lsof -n -iTCP:9400

which returns nothing. i also tried

netstat -tulpn | grep 9400

which also returned nothing

like image 719
Jeremy Fisher Avatar asked Aug 15 '16 20:08

Jeremy Fisher


1 Answers

Look at this: Elastic Search - Ubuntu - Connection Refused

Your elasticsearch config for host ip is incorrect

like image 159
ArefehTam Avatar answered Oct 14 '22 23:10

ArefehTam