Kibana and Elasticsearch Node configuration not working after moving data directory

I have two elasticsearch nodes and for one of them, I moved the the /var/lib/elasticsearch folder to a mount with more storage. I chown'd an elasticsearch user and changed the in the elasticsearch.yml file and everything worked fine with that node.

However, Kibana and my other elasticsearch node are unable to connect and I am getting the below errors in the log data:

Aug 10 10:11:58 server kibana[3136]: FATAL Error: [config validation of [elasticsearch].hosts]: types that failed validation:
Aug 10 10:11:58 server kibana[3136]: - [config validation of [elasticsearch].hosts.0]: expected value of type [string] but got [Array].
Aug 10 10:11:58 server kibana[3136]: - [config validation of [elasticsearch].hosts.1.1]: expected URI with scheme [http|https].
Aug 10 10:12:00 server systemd[1]: kibana.service: main process exited, code=exited, status=1/FAILURE
Aug 10 10:12:00 server systemd[1]: Unit kibana.service entered failed state.
Aug 10 10:12:00 server systemd[1]: kibana.service failed.

Other elasticsearch Node:

org.elasticsearch.transport.ConnectTransportException: [NODE][IP INFO] connect_exception
at org.elasticsearch.transport.TcpTransport$ChannelsConnectedListener.onFailure( ~[elasticsearch-7.8.1.jar:7.8.1]
at org.elasticsearch.action.ActionListener.lambda$toBiConsumer$2( ~[elasticsearch-7.8.1.jar:7.8.1]
at org.elasticsearch.common.concurrent.CompletableContext.lambda$addListener$0( ~[elasticsearch-core-7.8.1.jar:7.8.1]
at java.util.concurrent.CompletableFuture.uniWhenComplete( ~[?:?]
at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire( ~[?:?]
at java.util.concurrent.CompletableFuture.postComplete( ~[?:?]
at java.util.concurrent.CompletableFuture.completeExceptionally( ~[?:?]
at org.elasticsearch.common.concurrent.CompletableContext.completeExceptionally( ~[elasticsearch-core-7.8.1.jar:7.8.1]
at org.elasticsearch.transport.netty4.Netty4TcpChannel.lambda$addListener$0( ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListener0( ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListeners0( ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow( ~[?:?]
at io.netty.util.concurrent.DefaultPromise.notifyListeners( ~[?:?]
at io.netty.util.concurrent.DefaultPromise.setValue0( ~[?:?]
at io.netty.util.concurrent.DefaultPromise.setFailure0( ~[?:?]
at io.netty.util.concurrent.DefaultPromise.tryFailure( ~[?:?]
at$AbstractNioUnsafe.fulfillConnectPromise( ~[?:?]
at$AbstractNioUnsafe.finishConnect( ~[?:?]
at ~[?:?]
at ~[?:?]
at ~[?:?]
at ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$ ~[?:?]
at io.netty.util.internal.ThreadExecutorMap$ ~[?:?]
at [?:?]
Caused by:$AnnotatedConnectException: Connection refused: IP INFORMATION
Caused by: Connection refused
at Method) ~[?:?]
at ~[?:?]
at ~[?:?]
at ~[?:?]
at$AbstractNioUnsafe.finishConnect( ~[?:?]

That looks pretty relevant, what's your setting there look like?

Here are my kibana.yml settings: "" "SERVER NAME"
elasticsearch.hosts: ["http://localhost:9200", "Other elasticsearch node"]

This set up was working fine before I moved the directory

I still can't seem to figure this error out. Any update on how I can fix this?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.