dmarc-visualizer icon indicating copy to clipboard operation
dmarc-visualizer copied to clipboard

Unable to start elasticsearch

Open AlessioRosi opened this issue 1 year ago • 1 comments

elasticsearch stop working after less tha 20 seconds, so grafana can not load data

that's my doker compose

version: '3.5' services: parsedmarc: build: ./parsedmarc/ volumes: - ./files:/input:ro - ./output_files:/output command: parsedmarc -c /parsedmarc.ini /input/* --debug depends_on: - elasticsearch restart: on-failure

elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5 environment: - discovery.type=single-node volumes: - ./elastic_data:/usr/share/elasticsearch/data

grafana: build: ./grafana/ ports: - 3000:3000 user: root environment: GF_INSTALL_PLUGINS: grafana-piechart-panel,grafana-worldmap-panel GF_AUTH_ANONYMOUS_ENABLED: 'true'

and that's my parsedmarc.ini [general] save_aggregate = True save_forensic = True output = /output/

[elasticsearch] hosts = elasticsearch:9200 ssl = False

AlessioRosi avatar Jan 24 '24 00:01 AlessioRosi

The elastic_data dir needs to be owned by uid 1000 as that is the userid that is run as in the container.

chown -R 1000:root elastic_data/

sgocken avatar Feb 14 '24 20:02 sgocken