Fail to join publication failed

[DESKTOP-QCIS6S4] failed to join {DESKTOP-QCIS6S4}{ixwcp6LQRW6z8BtIKcQdEw}{TBrVz1oESRm8d-2VOm7yvQ}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=68521037824, xpack.installed=true, ml.max_open_jobs=20} with JoinRequest{sourceNode={DESKTOP-QCIS6S4}{ixwcp6LQRW6z8BtIKcQdEw}{TBrVz1oESRm8d-2VOm7yvQ}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=68521037824, xpack.installed=true, ml.max_open_jobs=20}, optionalJoin=Optional[Join{term=12343, lastAcceptedTerm=0, lastAcceptedVersion=156, sourceNode={DESKTOP-QCIS6S4}{ixwcp6LQRW6z8BtIKcQdEw}{TBrVz1oESRm8d-2VOm7yvQ}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=68521037824, xpack.installed=true, ml.max_open_jobs=20}, targetNode={DESKTOP-QCIS6S4}{ixwcp6LQRW6z8BtIKcQdEw}{TBrVz1oESRm8d-2VOm7yvQ}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=68521037824, xpack.installed=true, ml.max_open_jobs=20}}]}
org.elasticsearch.transport.RemoteTransportException: [DESKTOP-QCIS6S4][127.0.0.1:9300][internal:cluster/coordination/join]
Caused by: org.elasticsearch.cluster.coordination.FailedToCommitClusterStateException: publication failed
        at org.elasticsearch.cluster.coordination.Coordinator$CoordinatorPublication$3.onFailure(Coordinator.java:1354) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.common.util.concurrent.ListenableFuture$1.run(ListenableFuture.java:101) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:192) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListener(ListenableFuture.java:92) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:54) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cluster.coordination.Coordinator$CoordinatorPublication.onCompletion(Coordinator.java:1294) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cluster.coordination.Publication.onPossibleCompletion(Publication.java:124) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cluster.coordination.Publication.onPossibleCommitFailure(Publication.java:172) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cluster.coordination.Publication.access$600(Publication.java:41) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cluster.coordination.Publication$PublicationTarget$PublishResponseHandler.onFailure(Publication.java:348) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cluster.coordination.Coordinator$6.onFailure(Coordinator.java:1081) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cluster.coordination.PublicationTransportHandler$2$1.onFailure(PublicationTransportHandler.java:194) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:736) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) ~[elasticsearch-7.1.1.jar:7.1.1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
Caused by: java.lang.IllegalStateException: Transport TLS ([xpack.security.transport.ssl.enabled]) is required for license type [basic] when security is enabled
        at org.elasticsearch.xpack.security.Security$ValidateTLSOnJoin.accept(Security.java:993) ~[?:?]
        at org.elasticsearch.xpack.security.Security$ValidateTLSOnJoin.accept(Security.java:976) ~[?:?]
        at java.util.function.BiConsumer.lambda$andThen$0(BiConsumer.java:71) ~[?:1.8.0_191]
        at java.util.function.BiConsumer.lambda$andThen$0(BiConsumer.java:71) ~[?:1.8.0_191]
        at java.util.function.BiConsumer.lambda$andThen$0(BiConsumer.java:71) ~[?:1.8.0_191]
        at org.elasticsearch.cluster.coordination.Coordinator.lambda$handlePublishRequest$2(Coordinator.java:313) ~[elasticsearch-7.1.1.jar:7.1.1]
        at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_191]
        at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1080) ~[?:1.8.0_191]
        at org.elasticsearch.cluster.coordination.Coordinator.handlePublishRequest(Coordinator.java:313) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.cluster.coordination.PublicationTransportHandler$2$1.doRun(PublicationTransportHandler.java:199) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:751) ~[elasticsearch-7.1.1.jar:7.1.1]
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-7.1.1.jar:7.1.1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_191]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_191]
        at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_191]

It looks like you miss some options in your config...

Can you share your elasticearch.yml file?

thanks for the quick reply mate, sorry I didn't explain much( flu + pissed at installation) here is the yml

# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
#cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
#node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
#path.data: /path/to/data
#
# Path to log files:
#
#path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
#network.host: 192.168.0.1
#
# Set a custom port for HTTP:
#
#http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
#discovery.seed_hosts: ["host1", "host2"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
#cluster.initial_master_nodes: ["node-1", "node-2"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true

but note that when i was using the installer, i chose basic i know on 7+ xpack is auto included but it never asked for username/password

@pjanzen got it running back by setting xpack.security.enabled: false
probably in a bit ill set up xpack

If you are using Security in elasticsearch, then you also need to enable TLS between nodes.
This particular error sometimes gets triggered in cases where it should not, and we're looking into it.

If you only have a single node in your cluster, you can avoid this error by adding

discovery.type: single-node

to elasticsearch.yml

If you have more than one node, then you need to configure TLS on transport. That is, set:

xpack.security.transport.ssl.enabled: true

and configure certificates, keys and trusted certificate authorities.

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