When I tried to solve the same problem like Elasticsearch integration with CI 2.0 [Rails project]
Even I set a value for cluster_name, still got Cannot find Elasticsearch launch script from [elasticsearch] error.
So I tried build a test environment with script below
version: 2 defaults: &defaults working_directory: ~/xxx docker: - image: circleci/ruby:2.6.1-node-browsers - image: postgres:9.5 - image: redis environment: xxxx - image: docker.elastic.co/elasticsearch/elasticsearch:6.8.0 environment: - cluster.name: es-test-cluster - xpack.security.enabled: false - transport.host: localhost - network.host: 127.0.0.1 - http.port: 9250 - discovery.type: single-node jobs: build: <<: *defaults steps: - run: xxxx
and used ssh connection to debugging.
It looks like there no elasticsearch installation!
> circleci@6d07ad02c109:~$ which elasticsearch > circleci@6d07ad02c109:~$ > circleci@xxxxxx:~$ find / -type d -name 'elasticsearch' > circleci@xxxxxx:~$
Anyone else who has had this problem?