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 container error. #76720

Closed
BenCoughlan15 opened this issue Jan 28, 2025 · 3 comments
Closed

ELasticsearch container error. #76720

BenCoughlan15 opened this issue Jan 28, 2025 · 3 comments
Assignees
Labels
elasticsearch solved tech-issues The user has a technical issue about an application

Comments

@BenCoughlan15
Copy link

BenCoughlan15 commented Jan 28, 2025

Name and Version

bitnami/elasticsearch:8.17.1

What architecture are you using?

None

What steps will reproduce the bug?

elasticsearch 14:43:59.08 INFO  ==>
elasticsearch 14:43:59.08 INFO  ==> Welcome to the Bitnami elasticsearch container
elasticsearch 14:43:59.08 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
elasticsearch 14:43:59.08 INFO  ==> Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bitnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami/ for more information.
elasticsearch 14:43:59.08 INFO  ==>
elasticsearch 14:43:59.08 INFO  ==> ** Starting Elasticsearch setup **
elasticsearch 14:43:59.10 WARN  ==> Setting ELASTICSEARCH_IS_DEDICATED_NODE is disabled.
elasticsearch 14:43:59.10 WARN  ==> ELASTICSEARCH_NODE_ROLES will be ignored and Elasticsearch will asume all different roles.
elasticsearch 14:43:59.10 INFO  ==> Configuring/Initializing Elasticsearch...
elasticsearch 14:43:59.11 INFO  ==> Custom configuration file detected, using it...

elasticsearch 14:43:59.11 INFO  ==> ** Elasticsearch setup finished! **
elasticsearch 14:43:59.12 INFO  ==> ** Starting Elasticsearch **
Picked up JAVA_TOOL_OPTIONS: -Djava.security.egd=file:/dev/./urandom
warning: ignoring JAVA_TOOL_OPTIONS=-Djava.security.egd=file:/dev/./urandom
warning: ignoring JAVA_HOME=/opt/bitnami/java; using ES_JAVA_HOME
Error occurred during initialization of boot layer
java.lang.module.FindException: Module jdk.attach not found, required by org.elasticsearch.entitlement

ERROR: Elasticsearch died while starting up, with exit code 1

Docker-compose snippet:

  elasticsearch:
    build:
      context: ./tests/search/elasticsearch
      dockerfile: Dockerfile
      tags: [<acmecorp>/elasticsearch]
    command: sh -c "/opt/bitnami/scripts/elasticsearch/entrypoint.sh /opt/bitnami/scripts/elasticsearch/run.sh"
    volumes:
      - elasticsearch_data:/bitnami/elasticsearch/data
      - ./tests/search/elasticsearch/elasticsearch.yml:/opt/bitnami/elasticsearch/config/elasticsearch.yml
    ports:
      - 9200:9200
    environment:
      - ELASTICSEARCH_HEAP_SIZE=512m
      - ES_JAVA_OPTS=-Xms512m -Xmx512m
      - JAVA_TOOL_OPTIONS=-Djava.security.egd=file:/dev/./urandom
      - ELASTICSEARCH_STARTUP_SLEEP=10

    restart: unless-stopped
    deploy:
      resources:
        limits:
          cpus: '2'
          memory: 4G

What is the expected behavior?

I'd expect container to start, this isn't giving me much to go by.

What do you see instead?

warning: ignoring JAVA_TOOL_OPTIONS=-Djava.security.egd=file:/dev/./urandom
warning: ignoring JAVA_HOME=/opt/bitnami/java; using ES_JAVA_HOME
Error occurred during initialization of boot layer
java.lang.module.FindException: Module jdk.attach not found, required by org.elasticsearch.entitlement

ERROR: Elasticsearch died while starting up, with exit code 1

Additional information

this happened 2 hours ago, when version: 8.17.1 rolled out

@BenCoughlan15 BenCoughlan15 added the tech-issues The user has a technical issue about an application label Jan 28, 2025
@github-actions github-actions bot added the triage Triage is needed label Jan 28, 2025
@roniemartinez
Copy link

roniemartinez commented Jan 28, 2025

We are also getting the same error with bitnami/elasticsearch:8.17.1

2025-01-28 14:55:06 elasticsearch 14:55:06.70 INFO  ==> ** Elasticsearch setup finished! **
2025-01-28 14:55:06 elasticsearch 14:55:06.71 INFO  ==> ** Starting Elasticsearch **
2025-01-28 14:55:06 warning: ignoring JAVA_HOME=/opt/bitnami/java; using ES_JAVA_HOME
2025-01-28 14:55:07 
2025-01-28 14:55:07 ERROR: Elasticsearch died while starting up, with exit code 1
2025-01-28 14:55:06 
2025-01-28 14:55:07 Error occurred during initialization of boot layer
2025-01-28 14:55:07 java.lang.module.FindException: Module jdk.attach not found, required by org.elasticsearch.entitlement
2025-01-28 14:55:07 ERROR: Elasticsearch died while starting up, with exit code 1

@github-actions github-actions bot removed the triage Triage is needed label Jan 29, 2025
@github-actions github-actions bot assigned dgomezleon and unassigned carrodher Jan 29, 2025
@dgomezleon
Copy link
Member

Working on releasing a fix ASAP.

@dgomezleon
Copy link
Member

Fixed in 8.17.1-debian-12-r2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
elasticsearch solved tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

4 participants