OpenCTI-Platform / opencti

Open Cyber Threat Intelligence Platform
https://opencti.io
Other
6.32k stars 932 forks source link

Opencti failed to initialize. #2096

Closed bakhtawarw closed 2 years ago

bakhtawarw commented 2 years ago

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:

volumes: esdata: s3data: redisdata: amqpdata:

richard-julien commented 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 :)