When something fails, do not rush to reinstall.
A stuck container, an unreachable page, or a running Connector with no new data can make you wonder what you missed. Put that thought aside for a moment. Troubleshooting is not proof that you never make mistakes; it is a method for narrowing the problem so your next decision has evidence behind it.
This chapter provides a layered diagnostic workflow from Docker through the platform to data content. Messages and output in the table are diagnostic examples. Only separately identified verification records describe observations from this lab. Similar wording is not a reason to skip checking the environment and timing.
Preserve the evidence before changing settings.
Record the time, most recent change, affected function, and versions. “Import jobs have kept failing since a source was added three minutes ago” is more useful than “OpenCTI is broken.” Collect only the information you need at first; do not reset Connector state or delete data yet.
cd lab
docker context show
docker version
docker compose version
docker compose config --quiet
docker compose ps -a
docker compose logs --since 15m --tail 100 opencti workerdocker version must return Server information before you can conclude that the CLI is connected to the engine. config --quiet validates Compose configuration and normally prints nothing on success; it does not prove that services will start. ps -a includes stopped containers so you do not overlook those that are no longer running. Read the Compose ps documentation.
Limit logs by time and line count first, then trace backward to the first meaningful error. Before sharing, remove Tokens, passwords, internal organizational data, and complete request contents. Do not paste the full output of docker compose config, because expanded configuration may contain secrets from environment variables. Read the log-filtering options.
Locate the layer from the symptom; do not change ten things at once.
| Symptom | First layer to check | Next useful evidence |
|---|---|---|
| Cannot connect to the Docker daemon | Container engine and context | Whether the engine is running and which endpoint the CLI uses |
| No matching architecture manifest | Image and CPU architecture | Whether the pinned tag supports the current architecture |
| Missing variables or invalid Compose configuration | Compose and .env | Working directory, variable names, and YAML indentation |
| Container repeatedly restarts | Startup logs and resources | First error, exit status, and memory limits |
| Web connection refused | Service, port mapping, and ingress | Whether the platform started and its external bind address |
| Login failure or API permission error | Account, Token, and capabilities | Account status, Token identity, and authorization |
| Connector is alive but no new data appears | Source, schedule, queue, and Worker | Last job time, source response, and job failure messages |
| Imported data cannot be found | Write results, permissions, and content | Job completion, object ID, markings, and query criteria |
Form one hypothesis, perform one check, and record one result at a time. If you suspect the platform is not listening, check the service and port first. Do not change DNS, reset passwords, and clear indexes simultaneously; even if the problem disappears, you will not know which action mattered.
If the platform will not start, follow its dependencies.
cd lab
docker compose logs --tail 80 elasticsearch
docker compose logs --tail 80 rabbitmq
docker compose logs --tail 80 redis
docker compose logs --tail 80 minio
docker compose stats --no-streamIt is unsurprising for the platform to wait while Elasticsearch is not ready. Read the search engine's own messages to distinguish startup in progress, unsuitable kernel settings, insufficient disk space, permission problems, and exhausted memory. On macOS, Linux kernel settings belong to the container VM; pasting Linux commands directly into macOS does not configure them.
For RabbitMQ connection errors, check the hostname, account, and port. For S3-related errors, separately check the endpoint, access credentials, and file-operation permissions. Exposing every service publicly “just to try it” will not fix incorrect configuration between containers.
If the platform repeatedly exits, retain the exit status and a small amount of log context around the error. For memory failures, check limits at the host, VM, container, and application layers. Ample host memory does not mean the VM has been allocated enough. For disk problems, inventory data and backups before choosing a cleanup method; a data volume is not disposable cache.
A registered Connector does not prove every record reached storage.
Think of ingestion as a relay: the source returns data, the Connector converts it or submits work, the queue transports it, and the Worker and platform process it before it becomes queryable knowledge. One participant still running does not mean the relay finished. Check the source response, Connector's last run, work status, and Worker errors.
Reproduce the problem with a small sample whose contents you know. If the small sample succeeds but bulk data fails, investigate batch sizes, rates, and resources. If every attempt stops at the same object, inspect STIX types, fields, references, and conflicts. The official troubleshooting documentation distinguishes missing references, object-resolution conflicts, and concurrent-operation timeouts; each needs a different response. Read the official ingestion-error guidance.
Resetting Connector state may restart a source from the beginning, causing extensive reprocessing and external API requests. Record the original state and confirm source behavior and test scope first. Without understanding the cause, a reset merely postpones the problem.
More Workers do not necessarily make ingestion faster. If the search engine is the bottleneck or jobs contend for the same objects, greater concurrency may worsen congestion. Choose a comparable sample and time window, then observe completion time, error count, and queue trends.
“Not visible” and “does not exist” are different findings.
Record the object ID, check it using the account that created it, then reproduce the issue with the affected account. If results differ, inspect groups, allowed markings, and relevant permissions. If no account can find it, confirm that the job actually completed and that search criteria are not excluding it.
HTTP 200 does not prove that a GraphQL operation succeeded. Check whether the response includes errors and whether the required data exists. If login succeeds but a write fails, inspect maximum confidence and required fields as well as capabilities. An administrator's success does not prove a regular user's configuration is correct.
For intermittent 502 errors behind a proxy, compare proxy and platform timestamps, timeouts, and upstream connection settings. Failures at a regular interval are especially good reasons to retain timing evidence. Read the platform connection and timeout settings.
Write a support request someone else can act on.
Environment: operating system, CPU architecture, Docker / Compose versions
Versions: pinned platform, Worker, and relevant Connector versions
Expected: the tutorial report is retrievable by object ID after sample submission
Actual: failing step, occurrence time, and error summary
Reproduction: minimal steps and a test sample containing no secrets
Checked: service state, source response, permissions, and Worker logs
Change: the last configuration change before the failure
Attachments: necessary de-identified log excerptsA useful report explains what is confirmed and acknowledges what remains unknown. You do not need to guess the answer before asking for help. Once the cause is found, append the correction and acceptance results to the same record so the next similar incident does not start from zero.
Your troubleshooting exercise
In an isolated lab, practice with a small reversible problem, such as stopping only the Worker. Observe the difference between the service list and actual work processing, then restore it. Record the expected impact first, and do not trigger bulk redelivery from production sources. After recovery, confirm that work completes, not just that a container says Running again.
Finish with five statements: symptom, scope, evidence, correction, and verification. Explaining those clearly builds a more dependable skill than “try restarting.” To keep developing it, explore security tools and practical articles on SecTools.tw.
Finished this chapter?
Mark it when you are ready. Opening or scrolling through a chapter does not complete it automatically. You can undo your choice.
Progress is saved only in this browser. No account or automatic device sync. Clearing site data also removes progress.