You are reading the documentation of OpenCTI 7.260811 LTS · 7.260811.0-lts.1, supported until 2027-09.Latest is 7.261119.0 →
How-to guide

Troubleshoot XTM Composer

Find why XTM Composer does not start, does not register with OpenCTI or OpenAEV, or does not deploy an integration, from the messages it logs.

OpenCTIOpenAEVXTM ComposerFor platform engineers

This page helps you find why XTM Composer or an integration it manages does not work. Start from the logs of XTM Composer: almost every problem shows there as one of the messages below, with what to do about it. For how XTM Composer works, see XTM Composer architecture.

SYMPTOMWHERE TO LOOKStops at startKey, selector, logger valuesDoes not registerPlatform URL, token, enableNot deployed or updatedKey, image, network, socketStarts then failsPlatform or RabbitMQ unreachable, asettingLogs of XTM Composerdocker compose logs -f xtm-composerOpenAEV catalogIntegrations > CatalogLogs of the integrationLogs tab, or docker logs
  1. Stops at start → Logs of XTM Composer: at start
  2. Does not register → Logs of XTM Composer: Fail to fetch version
  3. Does not register → OpenAEV catalog: with OpenAEV
  4. Not deployed or updated → Logs of XTM Composer: Cannot pull
  5. Not deployed or updated → Logs of the integration: image cannot be pulled
  6. Starts then fails → Logs of XTM Composer: Reboot loop detected
  7. Starts then fails → Logs of the integration: the cause
Each symptom shows first in the logs of XTM Composer, OpenAEV adds its own messages in its catalog, and an integration that starts then fails gives its cause in its own logs

Read the logs

Where XTM Composer runsCommand
XTM stackdocker compose logs -f xtm-composer
Dockerdocker logs -f xtm-composer
Podmanpodman logs -f xtm-composer
Kuberneteskubectl -n xtm-composer logs -f deploy/xtm-composer

For more detail, set MANAGER__LOGGER__LEVEL=debug and restart it. MANAGER__LOGGER__FORMAT=pretty makes the console easier to read than JSON.

A healthy start logs, in this order:

  1. Starting XTM composer, with the version and the image_tag_suffix it adds to the integration images, empty when there is none.
  2. Successfully loaded RSA private key (PKCS#8 format).
  3. Manager registered, once for each platform it serves.

Then, every few seconds for each integration, Nothing to execute when all is in place, or the action it takes: Deploying the container, Starting, Stopping, Refreshing.

XTM Composer stops at start

When XTM Composer serves OpenAEV alone, the key messages of this table appear at its first registration instead of at start, and XTM Composer keeps running without registering.

MessageCauseFix
No credentials key provided!No key configuredSet MANAGER__CREDENTIALS_KEY_FILEPATH to the path of the key in the container, or MANAGER__CREDENTIALS_KEY
Failed to read credentials key fileThe file is not at that pathCheck the volume that mounts the key and the path. In xtm-docker, the key is in the rsakeys volume, made by rsa-key-generator
Invalid private key format. Expected PKCS#8 PEM formatThe key is PKCS#1 (BEGIN RSA PRIVATE KEY), as older openssl genrsa versions writeConvert it, as below
Invalid daemon configurationOPENCTI__DAEMON__SELECTOR or OPENAEV__DAEMON__SELECTOR has another valueUse docker, podman, kubernetes, swarm or portainer
Missing swarm configuration, Missing portainer configurationThe block of the selector is absentAdd the daemon.swarm or daemon.portainer block: see Configure XTM Composer
Invalid portainer type configurationdaemon.portainer.env_type is not dockerSet it to docker: XTM Composer deploys through Portainer on Docker environments only
Invalid log level, Invalid log formatA logger value is misspelledtrace, debug, info, warn or error; json or pretty
invalid image_tag_suffix "-alpine", expected one of: -fips, -ubi9MANAGER__IMAGE_TAG_SUFFIX has another valueSet -fips or -ubi9, or leave it empty for no suffix: see Configure XTM Composer

To convert a PKCS#1 key without changing it, which keeps the integrations the platform already encrypted for it:

head -n 1 private_key.pem
openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in private_key.pem -out private_key_pkcs8.pem

The first command shows -----BEGIN RSA PRIVATE KEY----- for PKCS#1. Point MANAGER__CREDENTIALS_KEY_FILEPATH to the new file, or replace the old one with it, and restart XTM Composer.

XTM Composer does not register

XTM Composer retries every ping_alive_schedule seconds, 60 by default, until the platform answers.

OpenCTI shows no list of the XTM Composer instances. It counts one as active while it has reported in the last 5 minutes: until then, and again 5 minutes after XTM Composer stops, the catalog of an Enterprise Edition platform says that deploying requires the Integration Manager.

MessageCauseFix
Fail to fetch version, check your configuration (OpenCTI), Failed to fetch version, check your configuration (OpenAEV)XTM Composer cannot reach the platform URLCheck OPENCTI__URL or OPENAEV__URL from where XTM Composer runs: the host name, the port, the network. Behind a proxy, put the platform host in OPENCTI__NO_PROXY or OPENAEV__NO_PROXY when XTM Composer must reach it directly
GraphQL operation failed (OpenCTI), Failed to fetch version: non-success status code (OpenAEV)The platform answers but refuses the requestCheck the token: OPENCTI__TOKEN or OPENAEV__TOKEN
OpenCTI backend does not support XTM composer manager registrationOpenCTI is older than 6.8.17Upgrade OpenCTI
OpenCTI connectors orchestration disabled, OpenAEV connectors orchestration disabledThe platform block has enable: falseSet OPENCTI__ENABLE or OPENAEV__ENABLE to true. xtm-docker sets both to true

A certificate the platform presents that XTM Composer does not trust also fails the connection. Fix the certificate: see Trust your certificate authority and proxy. To test with a self-signed certificate only, set OPENCTI__UNSECURED_CERTIFICATE=true.

Test the URL and the token from the network of XTM Composer, here the network of the XTM stack:

set -a; . ./.env; set +a
docker run --rm --network xtm_default curlimages/curl:8.11.1 -s -H "Authorization: Bearer $OPENCTI_ADMIN_TOKEN" -H 'Content-Type: application/json' -d '{"query":"{ about { version } }"}' http://opencti:8080/graphql
docker run --rm --network xtm_default curlimages/curl:8.11.1 -s -H "Authorization: Bearer $OPENAEV_ADMIN_TOKEN" http://openaev:8080/api/settings/version
Check that it worked

Each command prints the version of the platform: in a small JSON document for OpenCTI, as text for OpenAEV. An error or nothing means XTM Composer gets the same answer.

What OpenAEV says

OpenAEV shows its own messages when you deploy from Integrations > Catalog:

MessageCauseFix
XTM Composer is not configured in the platform settingsNo XTM Composer ever registeredStart XTM Composer with OPENAEV__ENABLE=true and check it logs Manager registered
XTM Composer is not reachableXTM Composer has not pinged OpenAEV for two hoursCheck that XTM Composer runs and reaches OpenAEV
Invalid xtm-composer identifierAnother XTM Composer, or the same one with a new manager.id, registered sinceRun a single XTM Composer per OpenAEV, with a stable MANAGER__ID

An integration is not deployed or not updated

Message in the logs of XTM ComposerCauseFix
Refusing to deploy connector: some encrypted configuration values cannot be decrypted (or refresh)The key of XTM Composer is not the one the platform encrypted the secrets with, for example after a new keyPut the previous key back. Otherwise, enter the secrets of the integration again with Update
Connector name collision detectedA container, Kubernetes Deployment or Swarm service of the same name belongs to another integration, or was created by handRename the instance, or remove the other workload. The Logs tab of the instance names it: [XTM Composer] Connector not deployed: a deployment named "<name>" already exists and belongs to another owner (<id>).
Kubernetes creation api error, Error creating swarm serviceThe engine refused the workload, for the reason in the error field. XTM Composer 3.261120.0 and earlier named it after the instance as is, so the engine refused a name longer than 63 characters, as many OpenAEV integrations haveUpgrade XTM Composer to 3.261121.0 or later, which shortens such names. Otherwise, fix what the error field names
Cannot pull the workload image, deployment canceledThe engine cannot pull the image in the image field, for the reason in the error field. XTM Composer deploys nothing and tries again at its next passSee The image cannot be pulled
Cannot pull the workload image, refresh canceledThe same, after a change of the configuration of the integration. The previous container keeps running, with the previous configurationSee The image cannot be pulled. XTM Composer applies the change once the pull works
Error creating containerDocker refused the container, for the reason in the error field, such as a network that does not existSet OPENCTI__DAEMON__DOCKER__NETWORK_MODE or OPENAEV__DAEMON__DOCKER__NETWORK_MODE to a network that docker network ls lists, such as xtm_default in xtm-docker
Cannot query the Docker APIXTM Composer cannot use the Docker socketMount /var/run/docker.sock in its container, and check that the Docker daemon runs
Portainer error fetching containers, Error deploying the container (Portainer)Portainer refused the request: wrong api, api_key, env_id or api_version. The error field gives the answer of PortainerTest the same request from where XTM Composer runs, as below
No Podman API socket foundNo Podman socket exists at the paths it checksEnable the socket, then mount it at /run/podman/podman.sock: see Install XTM Composer

With the portainer selector, XTM Composer calls the Docker API that Portainer exposes for the environment, with the API key in the X-API-KEY header. It does not check the certificate of Portainer. Run the same call with the values of your daemon.portainer block:

curl -sk -H "X-API-KEY: $PORTAINER_API_KEY" https://portainer.example.com:9443/api/endpoints/3/docker/v1.44/containers/json
Check that it worked

It prints a JSON list of the containers of the environment. An error message names what Portainer refused: the key, or an environment ID that does not exist.

On Kubernetes, a forbidden error means the role of XTM Composer misses a permission. Check it:

kubectl -n xtm-composer auth can-i create deployments --as=system:serviceaccount:xtm-composer:xtm-composer
kubectl -n xtm-composer auth can-i get pods --subresource=log --as=system:serviceaccount:xtm-composer:xtm-composer
Check that it worked

Both commands answer yes. Otherwise, apply the role of Install XTM Composer.

The image cannot be pulled

With Docker, Podman, Docker Swarm and Portainer, XTM Composer pulls the image of the integration before it deploys or updates it. When the pull fails, it changes nothing, and writes the reason in the Logs tab of the integration in the platform:

  • [XTM Composer] Connector not deployed: the image "<image>" cannot be pulled: <error>: nothing runs. An integration the platform showed as started is set to stopped.
  • [XTM Composer] Connector not updated, the previous deployment is kept: the image "<image>" cannot be pulled: <error>: the previous container keeps running.

XTM Composer 3.261021.1 and earlier logged Error fetching container image with Docker, and removed the running container before a failed update.

On Kubernetes, the nodes pull the image. A pod that cannot get it waits in ErrImagePull, ImagePullBackOff, InvalidImageName or ErrImageNeverPull, and XTM Composer reports it in the Logs tab:

  • [XTM Composer] Connector waiting for its image: ...: no pod of the integration runs, and its status is stopped. XTM Composer does not start it again while the image is missing, but stopping the integration in the platform still scales the Deployment down to zero.
  • [XTM Composer] Connector not updated, the previous deployment is kept: ...: the pod of the previous version keeps running during the update.

The answer of the registry is in the events of the pod:

kubectl -n xtm-composer get pods
kubectl -n xtm-composer describe pod <pod name>

The usual causes:

  • The image name or its tag is wrong. The image field, or the message, gives the name XTM Composer asked for.
  • MANAGER__IMAGE_TAG_SUFFIX adds -fips or -ubi9 to the tag, and the integration is not published with that tag. OpenAEV publishes no FIPS images. See Configure XTM Composer.
  • The registry refuses the credentials, or XTM Composer pulls from Docker Hub when your images are in a private registry. Each platform pulls with the registry of its own block: since XTM Composer 3.261120.0, an OpenAEV integration on Kubernetes, Docker Swarm or Portainer no longer uses OPENCTI__DAEMON__REGISTRY__*. On Kubernetes, the pull secret is named after the server and the platform, such as registry-example-com-openaev. See Pull integrations from a private registry.
  • A proxy blocks the registry. See Run integrations behind a proxy.

An integration starts, then fails

XTM Composer reports Reboot loop detected when a container has restarted more than three times and has been up for less than five minutes. The cause is in the logs of the integration itself: its Logs tab in the platform, or the container.

docker ps -a --filter label=opencti-manager --format '{{.Names}} {{.Status}}'
docker logs --tail 50 <container name>

XTM Composer labels each container with xtm-manager and, until a future version drops it, with opencti-manager. Containers deployed before XTM Composer 3.261120.0 carry opencti-manager only, so the filter above lists them all.

On Kubernetes, the integration is a Deployment named after the instance: kubectl -n xtm-composer logs deploy/<name>. The name is the instance name in lower case, with - for every symbol and space. Since XTM Composer 3.261121.0, when that name is not a valid Kubernetes name, XTM Composer shortens it. This happens when the name is longer than 63 characters, has an accented letter, or starts or ends with a symbol. XTM Composer then keeps up to 54 characters and adds - and 8 hexadecimal characters. For example, an OpenAEV integration, named after its title and the ID of the instance, becomes dns-enumeration--subdomains-and-dns-records--7653e749- followed by those 8 characters. A name that was already valid does not change. To find the Deployment of an integration, list them with the ID of their instance, in opencti-connector-id for the Deployments made before XTM Composer 3.261120.0:

kubectl -n xtm-composer get deployments -L xtm-workload-id,opencti-connector-id

On Docker Swarm, the service follows the same rule: docker service logs <name>.

The usual causes:

  • The integration cannot reach the platform. It uses the URL XTM Composer uses, OPENCTI__URL or OPENAEV__URL, so it must run on a network where that URL resolves: set OPENCTI__DAEMON__DOCKER__NETWORK_MODE or OPENAEV__DAEMON__DOCKER__NETWORK_MODE to the network of the platform, xtm_default in xtm-docker.
  • The integration cannot reach RabbitMQ at the address the platform gives it. See Networking.
  • A required setting of the integration is empty or wrong. Fix it with Update.

Logs do not show in the platform

  • Only the instances XTM Composer manages show logs in the interface.
  • XTM Composer sends the last 100 lines of the integration every logs_schedule seconds, 10 by default: wait a few seconds.
  • On Kubernetes, XTM Composer reads the container of the integration, in the pod where that container runs before a pod still waiting or left over from an update, the newest first. The restart count and the start time come from the same pod. When it cannot read any pod, the Logs tab shows [XTM Composer] Cannot read the connector logs: with the answer of Kubernetes. A forbidden answer means the role must allow reading pods/log.

The configuration file is not read

  • XTM Composer reads /opt/xtm-composer/config/<COMPOSER_ENV>.yaml, production.yaml by default. A file mounted at /config is ignored.
  • Mount the file, not the config folder, which would hide default.yaml.
  • Environment variables win over the file. They use __ between levels: MANAGER__LOGGER__LEVEL, not MANAGER.LOGGER.LEVEL.

What's next

NextXTM Composer architecture
Deploy
Install, configure, secure, scale and upgrade the platform.

Published

Overview
Run the XTM platform locally
OverviewDeploy with an AI agent