Fix:upgrade elasticsearch from 6.2.2 to 7.11 in mac docker compose ,and "unsupported version: [6.4.3] minimal compatible version is: [6.8.0]"

upgrade elasticsearch from 6.2.2 to 7.11 in mac docker
run test
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.1.1

[mac run error]
[linux ok]

error:
{"type": "server", "timestamp": "2019-06-25T10:50:36,031+0000", "level": "WARN", "component": "o.e.t.TcpTransport", "cluster.name": "docker-cluster", "node.name": "674aa7d83d8c", "cluster.uuid": "YH7XE3uzRPiJlVqfyh4ehA", "node.id": "VvFND4eZRBCGxsEfVjhAJw", "message": "exception caught on transport layer [Netty4TcpChannel{localAddress=/172.17.0.2:9300, remoteAddress=/172.17.0.1:42938}], closing connection" ,
"stacktrace": ["java.lang.IllegalStateException: Received message from unsupported version: [6.4.3] minimal compatible version is: [6.8.0]",
"at org.elasticsearch.transport.InboundMessage.ensureVersionCompatibility(InboundMessage.java:137) ~[elasticsearch-7.1.1.jar:7.1.1]",
"at org.elasticsearch.transport.InboundMessage.access$000(InboundMessage.java:39) ~[elasticsearch-7.1.1.jar:7.1.1]",
"at org.elasticsearch.transport.InboundMessage$Reader.deserialize(InboundMessage.java:76) ~[elasticsearch-7.1.1.jar:7.1.1]",
"at org.elasticsearch.transport.TcpTransport.messageReceived(TcpTransport.java:917) ~[elasticsearch-7.1.1.jar:7.1.1]",
"at org.elasticsearch.transport.TcpTransport.inboundMessage(TcpTransport.java:753) [elasticsearch-7.1.1.jar:7.1.1]",

....

fix:
in old deployment :

  1. docker-compose up -d
  2. docker-compose down -v

-v, --volumes Remove named volumes declared in the volumes
section of the Compose file and anonymous volumes
attached to containers.

then run ok.

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