OpenCTI-Platform / opencti

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

OpenCTI can't be brought up #3218

Closed Bella-chris closed 1 year ago

Bella-chris commented 1 year ago

Description

I have installed Docker Swarm OpenCTI via portainer and I can't bring the machine up. I have Ubuntu 22.04 Jammy and I have 2 nodes for swarm I installed perquisites from manual installation page https://filigran.notion.site/Manual-deployment-b911beba44234f179841582ab3894bb1

Environment

  1. OS (where OpenCTI server runs): Ubuntu 22.04
  2. OpenCTI version: 5.7.2
  3. OpenCTI client: portainer dowker swarm 2 nodes
  4. Other environment details:

Reproducible Steps

Compose.yml file: version: '3' services: redis: image: redis:7.0.9 restart: always volumes:

volumes: esdata: s3data: redisdata: amqpdata:

Env file: OPENCTI_ADMIN_EMAIL=**@*.com OPENCTI_ADMIN_PASSWORD=***** OPENCTI_ADMIN_TOKEN=af2b7a3c-05c0-49ed-9f08-4a7c87886197 OPENCTI_BASE_URL=http://localhost:8080 MINIO_ROOT_USER=opencti MINIO_ROOT_PASSWORD= RABBITMQ_DEFAULT_USER=opencti RABBITMQ_DEFAULT_PASS= CONNECTOR_EXPORT_FILE_STIX_ID=dd817c8b-abae-460a-9ebc-97b1551e70e6 CONNECTOR_EXPORT_FILE_CSV_ID=7ba187fb-fde8-4063-92b5-c3da34060dd7 CONNECTOR_EXPORT_FILE_TXT_ID=ca715d9c-bd64-4351-91db-33a8d728a58b CONNECTOR_IMPORT_FILE_STIX_ID=72327164-0b35-482b-b5d6-a5a3f76b845f CONNECTOR_IMPORT_DOCUMENT_ID=c3970f8a-ce4b-4497-a381-20b7256f56f0 ELASTIC_MEMORY_SIZE=10G CONSUMER_TIMEOUT=8600000 REDIS_TRIMMING=500000

Additional information

Worker Error: INFO:pycti.entities:Listing Threat-Actors with filters null. Traceback (most recent call last): File "/opt/opencti-worker/worker.py", line 522, in worker = Worker() File "", line 6, in init File "/opt/opencti-worker/worker.py", line 430, in __post_init self.api = OpenCTIApiClient( File "/usr/local/lib/python3.9/site-packages/pycti/api/opencti_api_client.py", line 207, in init__ raise ValueError( ValueError: OpenCTI API is not reachable. Waiting for OpenCTI API to start or check your configuration... image

Bella-chris commented 1 year ago

@nor3th @richard-julien @SamuelHassine

SamuelHassine commented 1 year ago

Hello @Bella-chris,

Can you please share the logs of your platform instance?

Kind regards, Samuel

Bella-chris commented 1 year ago

@SamuelHassine Currently I don't have it after following this issue:https://github.com/OpenCTI-Platform/opencti/issues/1445

But Worker has the below error: INFO:pycti.entities:Listing Threat-Actors with filters null. Traceback (most recent call last): File "/opt/opencti-worker/worker.py", line 522, in worker = Worker() File "", line 6, in init File "/opt/opencti-worker/worker.py", line 430, in __post_init self.api = OpenCTIApiClient( File "/usr/local/lib/python3.9/site-packages/pycti/api/opencti_api_client.py", line 207, in init__ raise ValueError( ValueError: OpenCTI API is not reachable. Waiting for OpenCTI API to start or check your configuration...

Bella-chris commented 1 year ago

@SamuelHassine if there is any recommendation for this error please tell me as I'm migrating from single node to swarm and I'm stuck in this error for couple of days. Also I tried to stop containers and start them again to bring platform container again but it doesn't show up :/

Bella-chris commented 1 year ago

@SamuelHassine I restarted my VM and now everything is working fine :)