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

Can't connect to ElasticSearch (docker based installation) - Unexpected token 'F', "File /deja"... is not valid JSON #467

Open
netandreus opened this issue Apr 18, 2023 · 0 comments
Assignees
Labels

Comments

@netandreus
Copy link

Describe the bug
When I open Dejavu there is an error message:

Unexpected token 'F', "File /deja"... is not valid JSON

Dejavu Version
appbaseio/dejavu:3.6.1

To Reproduce
Steps to reproduce the behavior:
Content of docker-compose.yml

  ###################
  #  Elasticsearch  #
  ###################
  elasticsearch:
    container_name: mailarchive_elasticsearch
    image: mailarchive_elasticsearch
    build:
      context: ./build/elasticsearch
      args:
        DOCKER_PLATFORM: ${ELASTIC_DOCKER_PLATFORM}
        CURATOR_VERSION: ${CURATOR_VERSION}
        ELASTIC_VERSION: ${ELASTIC_VERSION}
        HOST_UID: ${HOST_UID}
        HOST_GID: ${HOST_GID}
    ports:
      - "9300:9300" # ??
      - "9200:9200" # Elasticsearch JSON interface
    environment:
      - MAX_MAP_COUNT=262144
      - OPTIMIZE_EVERY=1
      - MAX_INDEX_AGE=3
      - discovery.type=single-node
      - ES_JAVA_OPTS=-Xms750m -Xmx750m
      - xpack.security.enabled=false
      - http.max_content_length=10MB
      - http.cors.enabled=true
      - http.cors.allow-origin=\*
      - http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
      - http.cors.allow-credentials=true
      - network.publish_host=localhost
    healthcheck:
      test: [ "CMD-SHELL", "/bin/nc -z 127.0.0.1 9200" ]
      interval: 20s
      timeout: 3s
      start_period: 5s
      retries: 3
    volumes:
      - elasticsearch_data:/usr/share/elasticsearch/data
      - elasticsearch_backups:/var/backups


  ####################################
  #  Dejavu (elasticsearch browser)  #
  ####################################
  dejavu:
    container_name: mailarchive_dejavu
    image: appbaseio/dejavu:3.6.1
    ports:
      - '1358:1358'
    depends_on:
      elasticsearch: { condition: service_healthy }
    links:
      - elasticsearch

Expected behavior
Connecting to ElasticSearch.

Screenshots
dejavu

Desktop (please complete the following information):

  • OS: MacOS Ventura 13.1
  • Browser Chrome
  • Version 112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants