when i try to setup x-pack in remote server i have some issues
(in my local ,it works perfectly) ,but it dosn't in remote sever
first :
vi /etc/elasticsearch/elasticsearch.yml
i add this option:
xpack.security.enabled: true
discovery.type: single.node
---------------------------------- Network -----------------------------------
#network.host: 0.0.0.0
network.host: 192.168.1.10
#http.port: 9200
root@xxxx:/home/cloud_user# /usr/share/elasticsearch/bin/elasticsearch-setup-passwords interactive
warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME
Connection failure to: http://192.168.1.10:9200/_xpack/security/_authenticate?pretty failed: Connection timed out (Connection timed out)
ERROR: Failed to connect to elasticsearch at http://192.168.1.10:9200/_xpack/security/_authenticate?pretty. Is the URL correct and elasticsearch running?
this is the log:
tail -f /var/log/elasticsearch/elasticsearch.log
root@xxxxxxx:/home/cloud_user# tail -f /var/log/elasticsearch/elasticsearch.log
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:446) ~[elasticsearch-6.8.10.jar:6.8.10]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:417) ~[elasticsearch-6.8.10.jar:6.8.10]
at org.elasticsearch.common.settings.SettingsModule.<init>(SettingsModule.java:148) ~[elasticsearch-6.8.10.jar:6.8.10]
at org.elasticsearch.node.Node.<init>(Node.java:374) ~[elasticsearch-6.8.10.jar:6.8.10]
at org.elasticsearch.node.Node.<init>(Node.java:266) ~[elasticsearch-6.8.10.jar:6.8.10]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.8.10.jar:6.8.10]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.10.jar:6.8.10]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.10.jar:6.8.10]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.10.jar:6.8.10]
... 6 more
even when i desactivate x-pack security ,i have the same issue, and i don't see the 9200 port
```Preformatted text Preformatted text root@xxxxxx:/home/cloud_user# netstat -nlpPreformatted text
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 1193/Xtightvnc
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 1193/Xtightvnc
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 734/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1028/sshd
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 3231/node
tcp 0 0 0.0.0.0:31297 0.0.0.0:* LISTEN 1667/node
tcp6 0 0 :::5044 :::* LISTEN 3351/java
tcp6 0 0 :::22 :::* LISTEN 1028/sshd
tcp6 0 0 127.0.0.1:9600 :::* LISTEN 3351/java
udp 0 0 127.0.0.53:53 0.0.0.0:* 734/systemd-resolve
udp 0 0 172.31.106.118:68 0.0.0.0:* 700/systemd-network
udp6 0 0 fe80::4b3:1fff:feea:546 :::* 700/systemd-network
raw6 0 0 :::58 :::* 7 700/systemd-networkPreformatted text```