Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Is the Docker implementation flawed in Unraid? Unable to use Elasticsearch 8.15 (works with Docker Desktop)

Featured Replies

I have followed this official guide https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

 

It is simple enough, run this to download and create the container

docker run --name es01 -p 9200:9200 -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:8.15.0

 

That fails with some error messages which is already different from how it should be. With some fiddling around, this starts a server at least:

docker run --name es01 -e "xpack.security.enabled=true" -e "xpack.security.enrollment.enabled=true" -e "discovery.type=single-node" --net elastic -p 9200:9200 -it -m 2GB docker.elastic.co/elasticsearch/elasticsearch:8.15.0

 

The server starts but with the following issues in the console, so it's not possible to enroll Kibana:

 Unable to generate an enrollment token for Kibana instances, try invoking `bin/elasticsearch-create-enrollment-token -s kibana`.

 An enrollment token to enroll new nodes wasn't generated. To add nodes and enroll them into this cluster:
• On this node:
  ⁃ Create an enrollment token with `bin/elasticsearch-create-enrollment-token -s node`.
  ⁃ Restart Elasticsearch.
• On other nodes:
  ⁃ Start Elasticsearch with `bin/elasticsearch --enrollment-token <token>`, using the enrollment token that you generated.

 

To connect Kibana to the Elasticsearch server I need to create an enrollment token using this command

docker exec -it es01 /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

 

This last command fails with the error

Unable to create enrollment token for scope [kibana]

ERROR: Unable to create an enrollment token. Elasticsearch node HTTP layer SSL configuration is not configured with a keystore, with exit code 73

This last command also works perfectly fine with Docker Desktop but not on unraid, which leaves me to believe that something is different with the Unraid implementation.

 

I can't believe Elasticsearch wouldn't be able to run on Unraid, but so far the commands obviously don't work even though I can run them on Windows with Docker Desktop.

 

Is there a bug or an issue in the Unraid implementation of Docker?

  • Community Expert
39 minutes ago, Motsols said:

Is there a bug or an issue in the Unraid implementation of Docker?

Unlikely to be anything specific to the unRAID OS. Its possible that it is meant for a different version of the docker engine than unRAID has installed.  What version of unRAID are your running (and more to the point what version of the Docker engine does it contain). What version of the docker engine do you have in Docker desktop? 

  • Author

Good input.

 

I am running the latest Unraid, version 6.12.11 which has Docker version 24.0.9.

My Docker Desktop on Windows has Docker version 27.1.1.

 

After glancing at the last few versions I don't see something that means Elasticsearch would stop working as it seems like unrelated changes https://docs.docker.com/engine/release-notes/27.0/

 

Edit:

Elasticsearch v8 which started with this enrollment launched in february last year.

Docker desktop got docker engine version 24.0.7 only in december last year, so it should definitely have been working already by that version.

Edited by Motsols

  • Community Expert

Their instructions say to create a network and connect both to this network, it's probably required for them to discover each other. When you run a compose stack one is made by default for the stack if none is supplied, if you run them separately it's your job to do it. 

  • Author

The network was created already before this, but didn't mention it since it's not relevant.

I didn't write it since the container does start, but can't create an enrollment token. SInce it only happens on Unraid I suspect an issue with Unraid.

  • Community Expert

Try to do it in compose with the compose manager plugin

  • Author

Correct me if I'm wrong, but why would docker compose manager help here if I'm not using docker compose?

Does the app itself have an option to start individual docker containers as well without compose? Not from what I saw on the app info.

  • Community Expert
33 minutes ago, Motsols said:

Correct me if I'm wrong, but why would docker compose manager help here if I'm not using docker compose?

Because I'm suggesting you try doing it in compose instead

Edited by Kilrah

23 hours ago, Motsols said:

Good input.

 

I am running the latest Unraid, version 6.12.11 which has Docker version 24.0.9.

My Docker Desktop on Windows has Docker version 27.1.1.

 

After glancing at the last few versions I don't see something that means Elasticsearch would stop working as it seems like unrelated changes https://docs.docker.com/engine/release-notes/27.0/

 

Edit:

Elasticsearch v8 which started with this enrollment launched in february last year.

Docker desktop got docker engine version 24.0.7 only in december last year, so it should definitely have been working already by that version.

Try downgrading your version of docker desktop to 24.x and compare.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.