Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-Compose issue "Kibana server is not ready yet" #663

Open
Dbz opened this issue Apr 16, 2024 · 6 comments
Open

Docker-Compose issue "Kibana server is not ready yet" #663

Dbz opened this issue Apr 16, 2024 · 6 comments

Comments

@Dbz
Copy link

Dbz commented Apr 16, 2024

When I try the docker-compose up -d setup, I run into an issue where localhost says "Kibana server is not ready yet"

Machine is an Apple M1

If I run the command docker logs docker-compose-elasticsearch-1 I see an error like this:

...
[2024-04-15T22:49:46,864][WARN ][o.e.b.JNANatives         ] [unknown] unable to install syscall filter:
java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
	at org.elasticsearch.bootstrap.SystemCallFilter.linuxImpl(SystemCallFilter.java:342) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.SystemCallFilter.init(SystemCallFilter.java:617) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.JNANatives.tryInstallSystemCallFilter(JNANatives.java:260) [elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Natives.tryInstallSystemCallFilter(Natives.java:113) [elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:108) [elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) [elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.8.6.jar:6.8.6]
	at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) [elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.8.6.jar:6.8.6]
...
...
...
[1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
[2024-04-16T06:59:21,262][INFO ][o.e.n.Node               ] [2A7VWtj] stopping ...
[2024-04-16T06:59:21,374][INFO ][o.e.n.Node               ] [2A7VWtj] stopped
[2024-04-16T06:59:21,375][INFO ][o.e.n.Node               ] [2A7VWtj] closing ...
[2024-04-16T06:59:21,390][INFO ][o.e.n.Node               ] [2A7VWtj] closed

Is there a suggestion on what the best course of action is here?

Thank you so much for your help and for creating this software. I am looking forward to using it!

@Dbz
Copy link
Author

Dbz commented Apr 16, 2024

I fixed this by setting the image for elastic-search to be image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2-arm64 in the docker-compose file, and then I needed to solve another startup issue with adding the following to the elastic search environment:

        - node.name=node-1
        - cluster.initial_master_nodes=node-1

I'm happy to close this issue. Do you want me to update any documentation and create a PR to give back to the community?

@sduenas
Copy link
Member

sduenas commented Apr 16, 2024

I fixed this by setting the image for elastic-search to be image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2-arm64 in the docker-compose file, and then I needed to solve another startup issue with adding the following to the elastic search environment:

        - node.name=node-1
        - cluster.initial_master_nodes=node-1

I'm happy to close this issue. Do you want me to update any documentation and create a PR to give back to the community?

Happy to have a PR that fixes this issue!

@Dbz
Copy link
Author

Dbz commented Apr 17, 2024

I'm working on getting it working on my other laptop which is an M2 (vs my M1) and running into some more issues that I will work out before submitting a PR.

@sduenas
Copy link
Member

sduenas commented Apr 18, 2024

If you are able to run it in a M2 that will be so helpful because we don't have that processor on our computers, so we don't have a way to try everything there.

@loreckc
Copy link

loreckc commented Apr 22, 2024

I'm working on getting it working on my other laptop which is an M2 (vs my M1) and running into some more issues that I will work out before submitting a PR.

I'm running into the same issues, but on M3. If you find a general fix, I'll happy to test it on M3.

@AnimiVulpis
Copy link

On my M2 based MacBook I got the example (default) docker compose setup working by changing the docker-compose/docker-compose.yml file in the following ways:

  • Changing the elasticsearch image to docker.elastic.co/elasticsearch/elasticsearch:7.17.21-arm64
  • Adding the environment key discovery.type=single-node

The complete elasticsearch sections looks now like this:

    elasticsearch:
      image: docker.elastic.co/elasticsearch/elasticsearch:7.17.21-arm64
      command: elasticsearch -Enetwork.bind_host=0.0.0.0 -Ehttp.max_content_length=2000mb
      ports:
        - 9200:9200
      environment:
        - discovery.type=single-node
        - ES_JAVA_OPTS=-Xms2g -Xmx2g
        - ANONYMOUS_USER=true

Further testing would be needed to check if "everything" is really working is expected 🤞🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants