Closed bakhtawarw closed 2 years ago
Just added a more explicit message in the code.
[INIT] Fail initialize schema, index already exists, previous initialization fail '
- 'because you kill the platform before the end of the initialization. Please remove your '
- 'elastic/opensearch data and restart.
Hope the explanation is clear enough now :)
I have installed opencti via docker-compose on ubuntu. I am encountering an error :
{"category":"APP","error":{"_error":{},"_showLocations":false,"_showPath":false,"data":{"category":"technical","http_status":500,"reason":"[INIT] Fail initialize schema, index already exists"},"internalData":{},"name":"ConfigurationError","time_thrown":"2022-05-21T05:52:59.149Z"},"level":"error","message":"[OPENCTI] Platform initialization fail","timestamp":"2022-05-21T05:52:59.149Z","version":"5.2.4"} ConfigurationError: A configuration error has occurred at error (/opt/opencti/build/src/config/errors.js:8:10) at ConfigurationError (/opt/opencti/build/src/config/errors.js:47:53) at initializeSchema (/opt/opencti/build/src/initialization.js:146:11) at processTicksAndRejections (node:internal/process/task_queues:96:5) at platformInit (/opt/opencti/build/src/initialization.js:377:7) at boot (/opt/opencti/build/src/boot.js:9:3)
I have configured the .env as per the instllation guide, here is the docker compose file:
version: '3' services: redis: image: redis:6.2.6 restart: always volumes:
command: server /data healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] interval: 30s timeout: 20s retries: 3 restart: always rabbitmq: image: rabbitmq:3.9-management environment:
volumes: esdata: s3data: redisdata: amqpdata: