0

I'm following this guide to run APM with kibana and elasticsearch:

and when I run this command: ./scripts/compose.py start master --no-kibana

this is the output I get:

Kibana will be launched to configure APM integration and stopped after that.
Starting/Building stack services..

Pulling elasticsearch ... done
Pulling kibana        ... done
Pulling apm-server    ... done
Pulling wait-service  ... done
Starting localtesting_8.4.1_elasticsearch ... done
Starting localtesting_8.4.1_kibana        ... done

ERROR: for wait-service  Container "3897cf4e31e4" is unhealthy.

ERROR: for apm-server  Container "3897cf4e31e4" is unhealthy.
ERROR: Encountered errors while bringing up the project.
Traceback (most recent call last):
  File "/home/omar/Downloads/apm-integration-testing/./scripts/compose.py", line 31, in <module>
    main()
  File "/home/omar/Downloads/apm-integration-testing/./scripts/compose.py", line 17, in main
    setup()
  File "/home/omar/Downloads/apm-integration-testing/scripts/modules/cli.py", line 213, in __call__
    self.args.func()
  File "/home/omar/Downloads/apm-integration-testing/scripts/modules/cli.py", line 590, in start_handler
    self.build_start_handler("start")
  File "/home/omar/Downloads/apm-integration-testing/scripts/modules/cli.py", line 782, in build_start_handler
    self.run_docker_compose_process(docker_compose_cmd + up_params)
  File "/home/omar/Downloads/apm-integration-testing/scripts/modules/cli.py", line 476, in run_docker_compose_process
    subprocess.check_call(docker_compose_cmd)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['docker-compose', '-f', '/home/omar/Downloads/apm-integration-testing/docker-compose.yml', 'up', '-d']' returned non-zero exit status 1.

and when I run docker ps I get this:

CONTAINER ID   IMAGE                                                          COMMAND                  CREATED      STATUS                     PORTS                                NAMES
3897cf4e31e4   docker.elastic.co/kibana/kibana:8.4.1-SNAPSHOT                 "/bin/tini -- /usr/l…"   2 days ago   Up 7 minutes (unhealthy)   127.0.0.1:5601->5601/tcp             localtesting_8.4.1_kibana
4eef98f32f5d   docker.elastic.co/elasticsearch/elasticsearch:8.4.1-SNAPSHOT   "/bin/tini -- /usr/l…"   2 days ago   Up 8 minutes (healthy)     127.0.0.1:9200->9200/tcp, 9300/tcp   localtesting_8.4.1_elasticsearch

So I try running kibana locally with yarn start in the kibana folder, but I encounter this error:

[ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: unable to authenticate user [kibana_system] for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]

I tried adding the kibana_system user to kibana.yml like this:

elasticsearch.username: 'kibana_system'

but with no luck, If someone encountered a similar issue or got apm-integration-testing to work locally with kibana, I'd be grateful for the help

Omar Ayman
  • 29
  • 4

0 Answers0