OpenCTI-Platform / opencti

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

K8 Helm deployment failing with UNKNOWN_ERROR: Invalid URL\n #6907

Open mkay2999 opened 4 months ago

mkay2999 commented 4 months ago

So ive been trying to deploy via helm chart, the elastic, minio, rabbitmq and redis are all running and all init containers pass but when the server starts to launch, I get the error below and the container goes into a crash loop.

{"category":"APP","level":"info","message":"[OPENCTI] Starting platform","timestamp":"2024-05-07T14:06:01.761Z","version":"6.0.5"} {"category":"APP","level":"info","message":"[OPENCTI] Checking dependencies statuses","timestamp":"2024-05-07T14:06:01.763Z","version":"6.0.5"} {"category":"APP","level":"info","message":"[SEARCH] Engine client not specified, trying to discover it with opensearch client","timestamp":"2024-05-07T14:06:01.763Z","version":"6.0.5"} {"category":"APP","level":"info","message":"[SEARCH] Engine detected to elk","timestamp":"2024-05-07T14:06:01.804Z","version":"6.0.5"} {"category":"APP","level":"info","message":"[SEARCH] elk (8.12.2) client selected / runtime sorting enabled / attachment processor enabled","timestamp":"2024-05-07T14:06:01.824Z","version":"6.0.5"} {"category":"APP","level":"info","message":"[CHECK] Search engine is alive","timestamp":"2024-05-07T14:06:01.824Z","version":"6.0.5"} {"category":"APP","errors":[{"attributes":{"genre":"TECHNICAL","http_status":500},"message":"Invalid URL","name":"UNKNOWN_ERROR","stack":"UNKNOWN_ERROR: Invalid URL\n at error (/opt/opencti/build/src/config/errors.js:8:10)\n at UnknownError (/opt/opencti/build/src/config/errors.js:76:47)\n at Object._logWithError (/opt/opencti/build/src/config/conf.js:331:23)\n at Object.error (/opt/opencti/build/src/config/conf.js:341:48)\n at platformStart (/opt/opencti/build/src/boot.js:21:12)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"},{"message":"Invalid URL","name":"TypeError","stack":"TypeError: Invalid URL\n at new URL (node:internal/url:775:36)\n at parseUrl (/opt/opencti/build/node_modules/@smithy/url-parser/dist-cjs/index.js:29:21)\n at toEndpointV1 (/opt/opencti/build/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:112:32)\n at i (/opt/opencti/build/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:232:65)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"}],"level":"error","message":"Platform unmanaged direct error","timestamp":"2024-05-07T14:06:01.831Z","version":"6.0.5"}

Environment

Kubernetes RKE v1.21.9 OpenCTI 1.2.1

these are the environmental variables set in my values.yaml. env:

Plain vars

foo: bar

my_env: my_value

APP OPENCTI

APPBASE_URL: http://opencti:4000 APPADMINEMAIL: admin@opencti.io APPADMINPASSWORD: 1Password@ APPADMINTOKEN: b1976749-8a53-4f49-bf04-cafa2a3458c1 APP__BASE_PATH: "/" APPSESSION_COOKIE: "true"

MINIO:

MINIO__ENDPOINT: opencti-minio:9000 MINIO_ACCESS_KEY: key12345 MINIO_SECRET_KEY: pwd12345

ELASTICSEARCH

ELASTICSEARCH__ENGINE_SELECTOR: auto ELASTICSEARCH__URL: http://opencti-elasticsearch:9200

RABBITMQ

RABBITMQHOSTNAME: opencti-rabbitmq RABBITMQPORT_MANAGEMENT: 15672 RABBITMQPORT: 5672 RABBITMQUSERNAME: user RABBITMQ__PASSWORD: Password

REDIS

REDISHOSTNAME: opencti-redis-master REDISPORT: 6379 REDIS__MODE: single

METRICS AND HEALTHCHECK

APPTELEMETRYMETRICSENABLED: true APPHEALTH_ACCESS_KEY: Password

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. helm install -f Chart.yaml opencti ./
Hades-p commented 4 months ago

May I ask if your problem has been resolved? I also encountered the same problem

mkay2999 commented 4 months ago

May I ask if your problem has been resolved? I also encountered the same problem

No, I still have the problem