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

Error running elastic container in OpenCTI Dev Compose setup🐳 #88

Closed
yaya2devops opened this issue May 25, 2023 · 2 comments
Closed

Comments

@yaya2devops
Copy link

Hello team,

I'm having an error while using the OpenCTI platform with the Dev Compose setup.

The elastic container is unable to run and returns no logs.

Steps Taken

  • Checked and confirmed RabbitMQ service accessibility.
  • Confirmed MINIO service accessibility.
  • Attempted to run the elastic container.
  • Encountered error preventing the successful initialization of elastic.
  • Noted that Kibana exhibits similar issues as it follows the error encountered with elastic.

The error returned is below:

Container opencti-dev-elasticsearch Starting 0.9s 
Error response from daemon: failed to create shim task: 
OCI runtime create failed: runc create failed: unable to start container process: 
error during container init: error setting rlimits for ready process: error setting rlimit type 8: operation not permitted: unknown

Here is my environment variable setup:

OPENCTI_ADMIN_EMAIL=dev@yahya-abulhaj.dev
OPENCTI_ADMIN_PASSWORD=yayaindev7
OPENCTI_ADMIN_TOKEN=8fac290c-c5b5-45f1-8e8a-223022e13d4d
OPENCTI_BASE_URL=https://yaya2devops-secopencti-l6yzp33sw9p.ws-eu97.gitpod.io/
MINIO_ROOT_USER=opencti
MINIO_ROOT_PASSWORD=adminaccess
RABBITMQ_DEFAULT_USER=opencti
RABBITMQ_DEFAULT_PASS=yayaindev7
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
SMTP_HOSTNAME=yaya2devops-secopencti-l6yzp33sw9p.ws-eu97.gitpod.io
ELASTIC_MEMORY_SIZE=4G

I have tried many solutions trying to resolve docker related incl. updated the engine, prune the container, image, and network, but it persists.

Thank you.

@yaya2devops
Copy link
Author

So now, i'm trying to get this going in gitpod

$ sudo sysctl -w vm.max_map_count=1048575

Thoughts? sysctl is read only.

@yaya2devops
Copy link
Author

I moved it to an Azure VM.
The platform is prod ready and established now.

Product setup → opencti.yahya-abulhaj.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant