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

elasticsearch unable to start due to wrong ownership #459

Open
1 task done
thoughtbox opened this issue Mar 24, 2024 · 1 comment
Open
1 task done

elasticsearch unable to start due to wrong ownership #459

thoughtbox opened this issue Mar 24, 2024 · 1 comment
Labels
Docker SELKS on Docker

Comments

@thoughtbox
Copy link

thoughtbox commented Mar 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

A fresh build will fail to bring up the container running Elasticsearch.

Expected Behavior

The container running Elasticsearch should start without errors.

Steps To Reproduce

Follow basic installation steps in https://github.com/StamusNetworks/SELKS/wiki/Docker

Docker version

Docker version 26.0.0, build 2ae903e

Docker version

No docker compose.

OS Version

Description: Debian GNU/Linux 10 (buster)

Content of the environnement File

COMPOSE_PROJECT_NAME=selks
INTERFACES= -i ens19
ELASTIC_DATAPATH=/local/selks/
SCIRIUS_SECRET_KEY=
ML_ENABLED=false
PWD=${PWD}

Version of SELKS

commit 2fc5391 (HEAD -> master, origin/master, origin/HEAD)
Merge: a030b9a 16fc908
Author: Eric Leblond [email protected]
Date: Mon Sep 11 08:35:37 2023 +0000

Merge branch 'Arkime-fix-v1' into 'master'

Add oui file for Arkime

See merge request devel/SELKS!5

Anything else?

The fix is to change the ownership of /usr/share/elasticsearch/data to elasticsearch.

# docker ps |grep -i elasticsearch
f89a70a25633   elastic/elasticsearch:7.16.1                 "/bin/tini -- /usr/l…"   43 hours ago   Up 43 hours (healthy)   9200/tcp, 9300/tcp                                              elasticsearch
# docker exec f89 chown elasticsearch /usr/share/elasticsearch/data
@thoughtbox thoughtbox added the Docker SELKS on Docker label Mar 24, 2024
@thoughtbox thoughtbox changed the title elasticsearch unable to start due to wrong ownership 🐞🐋 <title> elasticsearch unable to start due to wrong ownership Mar 24, 2024
@pevma
Copy link
Member

pevma commented Mar 24, 2024

I cant seem to reproduce that.
Is there an error in the elasticsearch logs ?

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

No branches or pull requests

2 participants